HOR-1925
This commit is contained in:
Paula V. Quispe
2016-09-22 16:44:23 -04:00
parent 1742ad56a7
commit fcc7a58eca

View File

@@ -3583,9 +3583,10 @@ function PMFAssociateUploadedFilesWithInputFile($inputDocumentUid, $gridVariable
* Remove users from a group
*
* @name PMFRemoveUsersToGroup
* @label PMF Remove users from a group
* @label PMF Remove users from a group (deprecated)
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFRemoveUsersToGroup.28.29
*
* @deprecated we corrected the name
* @param string | $groupId | Group Uid | The unique Uid of the group.
* @param array | $users | Array of users | Array of users to remove.
*
@@ -3605,6 +3606,34 @@ function PMFRemoveUsersToGroup($groupUid, array $users)
}
}
/**
* @method
*
* Remove users from a group
*
* @name PMFRemoveUsersFromGroup
* @label PMF Remove users from a group
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFRemoveUsersFromGroup.28.29
*
* @param string | $groupId | Group Uid | The unique Uid of the group.
* @param array | $users | Array of users | Array of users to remove.
*
* @return array | $result | array
*/
function PMFRemoveUsersFromGroup($groupUid, array $users)
{
try {
$user = new \ProcessMaker\BusinessModel\Group\User();
$result = $user->unassignUsers($groupUid, $users);
//Return
return $result;
} catch (Exception $e) {
throw $e;
}
}
/**
* @method
*