Merged in paulis/processmaker/HOR-1925 (pull request #4956)

HOR-1925
This commit is contained in:
Julio Cesar Laura Avendaño
2016-09-23 10:30:17 -04:00

View File

@@ -3598,9 +3598,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.
*
@@ -3620,6 +3621,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
*