This commit is contained in:
Paula V. Quispe
2016-03-28 14:09:49 -04:00
parent 5f05e3a758
commit 0bb1ebec33
3 changed files with 29 additions and 6 deletions

View File

@@ -3926,6 +3926,29 @@ class Processes
}
}
/**
* Create if the new Files Managers does not exist
*
* @param string $processUid Unique id of Process
* @param array $arrayData Data
*
* return void
*/
public function addNewFilesManager($processUid, array $arrayData)
{
try {
$filesManager = new \ProcessMaker\BusinessModel\FilesManager();
foreach ($arrayData as $value) {
if(!$filesManager->existsProcessFile($value['PRF_UID'])){
$filesManager->addProcessFilesManagerInDb($value);
}
}
} catch (Exception $e) {
throw $e;
}
}
/**
* @param array $arrayData
* @throws Exception