/** * Add the current row to a (possibly separate) batch that does the importing. * * @param \MUtil_Task_TaskBatch $importBatch The import batch to impor this row into * @param string $key The current iterator key * @param array $row translated and validated row * @return \MUtil_Model_ModelTranslatorAbstract (continuation pattern) */ public function addSaveTask(\MUtil_Task_TaskBatch $importBatch, $key, array $row) { $importBatch->setTask($this->saveTask, 'import-' . $key, $row, $this->getNoToken(), $this->getTokenCompleted()); return $this; }
/** * Add the current row to a (possibly separate) batch that does the importing. * * @param \MUtil_Task_TaskBatch $importBatch The import batch to impor this row into * @param string $key The current iterator key * @param array $row translated and validated row * @return \MUtil_Model_ModelTranslatorAbstract (continuation pattern) */ public function addSaveTask(\MUtil_Task_TaskBatch $importBatch, $key, array $row) { $importBatch->setTask($this->saveTask, 'import-' . $key, $row); return $this; }