This commit is contained in:
Paula V. Quispe
2016-03-28 17:04:52 -04:00
parent 421fa7339f
commit 45f9b7e652
2 changed files with 41 additions and 2 deletions

View File

@@ -3674,6 +3674,25 @@ class Processes
return;
}
/**
* Get Task User Rows from an array of data
*
* @param array $aTaskUser
* @return array $aStepTrigger
*/
public function addNewTaskUserRows($aTaskUser)
{
if (is_array($aTaskUser)) {
foreach ($aTaskUser as $key => $row) {
$oTaskUser = new TaskUser();
if (!$oTaskUser->TaskUserExists($row['TAS_UID'], $row['USR_UID'], $row['TU_TYPE'], $row['TU_RELATION'])) {
$res = $oTaskUser->create($row);
}
}
}
return;
}
/**
* Get Task User Rows from an array of data
*
@@ -3691,6 +3710,22 @@ class Processes
}
}
/**
* Create User Rows from an array of data if does not exist
*
* @param array $aGroupwf
* @return array $res
*/
public function addNewGroupRow($aGroupwf)
{
foreach ($aGroupwf as $key => $row) {
$oGroupwf = new Groupwf();
if (!$oGroupwf->GroupwfExists($row['GRP_UID'])) {
$res = $oGroupwf->create($row);
}
}
}
/**
* Create DB Connections rows from an array of data
*