Fix the new import methods.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-03-28 14:48:33 -04:00
parent 616e24d32b
commit 7a2fd9a225
11 changed files with 183 additions and 16 deletions

View File

@@ -147,6 +147,24 @@ class Tasks
return;
}
/**
* updates row tasks from an Task Array
*
* @param string $aTasks
* @return array
*/
public function addNewTaskRows($aTask)
{
foreach ($aTask as $key => $row) {
$oTask = new Task();
if (!$oTask->taskExists($row['TAS_UID'])) {
$res = $oTask->create($row);
}
}
return;
}
/**
* Get all Routes for any Process
*