/**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }