HOR-1098-B "PMFuncion para remover usuarios..." SOLVED

This commit is contained in:
root
2016-06-20 12:11:20 -04:00
parent d541f4d583
commit 523b9af898
2 changed files with 84 additions and 0 deletions

View File

@@ -3519,3 +3519,31 @@ function PMFAssociateUploadedFilesWithInputFile($inputDocumentUid, $gridVariable
}
}
/**
* @method
*
* Remove users from a group
*
* @name PMFRemoveUsersToGroup
* @label PMF Remove users from a group
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFRemoveUsersToGroup.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 PMFRemoveUsersToGroup($groupUid, array $users)
{
try {
$user = new \ProcessMaker\BusinessModel\Group\User();
$result = $user->unassignUsers($groupUid, $users);
//Return
return $result;
} catch (Exception $e) {
throw $e;
}
}