/**
 *
 * @method
 *
 * Retrieves information about a user with a given ID.
 *
 * @name PMFInformationUser
 * @label PMF Information User
 * @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFInformationUser.28.29
 *
 * @param string(32) | $userUid | User UID | The user UID.
 * @return array | $info | Information of user | An associative array with Information.
 *
 */
function PMFInformationUser($userUid)
{
    G::LoadClass("wsBase");
    $ws = new wsBase();
    $result = $ws->informationUser($userUid);
    $info = array();
    if ($result->status_code == 0 && isset($result->info)) {
        $info = $result->info;
    }
    return $info;
}
Exemple #2
0
function informationUser($params)
{
    $result = isValidSession($params->sessionId);
    if ($result->status_code != 0) {
        return $result;
    }
    if (ifPermission($params->sessionId, "PM_USERS") == 0) {
        $result = new wsResponse(2, G::LoadTranslation('ID_NOT_PRIVILEGES'));
        return $result;
    }
    $ws = new wsBase();
    $result = $ws->informationUser($params->userUid);
    return $result;
}
Exemple #3
0
function informationUser($params)
{
    $result = isValidSession($params->sessionId);
    if ($result->status_code != 0) {
        return $result;
    }
    if (ifPermission($params->sessionId, "PM_USERS") == 0) {
        $result = new wsResponse(2, "You do not have privileges");
        return $result;
    }
    $ws = new wsBase();
    $result = $ws->informationUser($params->userUid);
    return $result;
}