Exemple #1
0
function &getUsersByName($session_ser, $user_names)
{
    continue_session($session_ser);
    $usrs =& user_get_objects_by_name($user_names);
    if (!$usrs) {
        return new soap_fault('3002', 'user', 'Could Not Get Users By Name', 'Could Not Get Users By Name');
    }
    return users_to_soap($usrs);
}
Exemple #2
0
function &getArtifactTechnicians($session_ser, $group_id, $group_artifact_id)
{
    continue_session($session_ser);
    $grp =& group_get_object($group_id);
    if (!$grp || !is_object($grp)) {
        return new soap_fault('', 'getArtifactTechnicians', 'Could Not Get Group', 'Could Not Get Group');
    } elseif ($grp->isError()) {
        return new soap_fault('', 'getArtifactTechnicians', $grp->getErrorMessage(), $grp->getErrorMessage());
    }
    $at = new ArtifactType($grp, $group_artifact_id);
    if (!$at || !is_object($at)) {
        return new soap_fault('', 'getArtifactTechnicians', 'Could Not Get ArtifactType', 'Could Not Get ArtifactType');
    } elseif ($at->isError()) {
        return new soap_fault('', 'getArtifactTechnicians', $at->getErrorMessage(), $at->getErrorMessage());
    }
    return users_to_soap($at->getTechnicianObjects());
}