19 foreach ( $datas as $row ) {
20 if ($batch < $this->batchSize) {
24 $batchRows[]=$this->
batchRows($rows, $fields);
29 if (\
sizeof($rows) > 0) {
30 $batchRows[]=$this->
batchRows($rows, $fields);
32 foreach ( $batchRows as $batchRow ) {
35 return \implode(
";\n", $result) .
";";
44 foreach ( $rows as $row ) {
45 $result[]=
"(" . $this->
batchOneRow($row, $fields) .
")";
47 return \implode(
",", $result);
52 foreach ( $fields as $field ) {
53 $result[]=
"'" . $row->_rest[$field] .
"'";
55 return \implode(
",", $result);
static getFieldList($fields)
generateInsert($table, $fields, $datas)
batchRows($rows, $fields)
batchOneRow($row, $fields)
__construct($batchSize=20)
generateOneInsert($table, $fields, $datas)