ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
login ($client, $username, $password) | |
Soap login type $ilUser. More... | |
loginCAS ($client, $PT, $username) | |
loginLDAP ($client, $username, $password) | |
Not required anymode. More... | |
loginStudipUser ($sid, $user_id) | |
login as user from Stud.IP More... | |
logout ($sid) | |
Logout user destroy session. More... | |
lookupUser ($sid, $user_name) | |
getUser ($sid, $user_id) | |
deleteUser ($sid, $user_id) | |
__readUserData (\ilObjUser &$usr_obj) | |
importUsers ($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail) | |
define ("IL_FAIL_ON_CONFLICT", 1); define ("IL_UPDATE_ON_CONFLICT", 2); define ("IL_IGNORE_ON_CONFLICT", 3); More... | |
getUsersForContainer ($sid, $ref_id, $attachRoles, $active) | |
return list of users following dtd users_3_7 More... | |
getUserForRole ($sid, $role_id, $attachRoles, $active) | |
__getImportProtocolAsXML ($a_array) | |
Create XML ResultSet. More... | |
__getUserMappingAsXML ($a_array) | |
return user mapping as xml More... | |
searchUser ($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active) | |
return user xml following dtd 3.7 More... | |
__buildSearchQuery ($a_keyfields, $queryOperator, $a_keyvalues) | |
create search term according to parameters More... | |
getUserXML ($sid, $a_user_ids, $attach_roles) | |
return user xmls for given user ids (csv separated ids) as xml based on usr dtd. More... | |
hasNewMail ($sid) | |
getUserIdBySid ($sid) | |
Public Member Functions inherited from ilSoapAdministration | |
__construct ($use_nusoap=true) | |
Constructor. More... | |
initErrorWriter () | |
Overwrite error handler. More... | |
__explodeSid ($sid) | |
__setMessage ($a_str) | |
__getMessage () | |
__appendMessage ($a_str) | |
__setMessageCode ($a_code) | |
__getMessageCode () | |
initAuth ($sid) | |
Init authentication. More... | |
initIlias () | |
__initAuthenticationObject ($a_auth_mode=AUTH_LOCAL) | |
__raiseError ($a_message, $a_code) | |
getNIC ($sid) | |
get client information from current as xml result set More... | |
isFault ($object) | |
checkObjectAccess ($ref_id, $expected_type, $permission, $returnObject=false) | |
check access for ref id: expected type, permission, return object instance if returnobject is true More... | |
getInstallationInfoXML () | |
getClientInfoXML ($clientid) | |
Protected Member Functions | |
isPermittedRole ($a_folder, $a_role) | |
check if assignment is allowed More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilSoapAdministration | |
static | return_bytes ($val) |
calculate bytes from K,M,G modifiers e.g: 8M = 8 * 1024 * 1024 bytes More... | |
Data Fields inherited from ilSoapAdministration | |
$sauth = null | |
$error_method = null | |
Protected Attributes inherited from ilSoapAdministration | |
$soap_check = true | |
Definition at line 35 of file class.ilSoapUserAdministration.php.
ilSoapUserAdministration::__buildSearchQuery | ( | $a_keyfields, | |
$queryOperator, | |||
$a_keyvalues | |||
) |
create search term according to parameters
array | of string $a_keyfields | |
string | $queryOperator | |
array | of string $a_keyValues |
Definition at line 952 of file class.ilSoapUserAdministration.php.
References $DIC, $ilDB, and $query.
Referenced by searchUser().
ilSoapUserAdministration::__getImportProtocolAsXML | ( | $a_array | ) |
Create XML ResultSet.
Definition at line 795 of file class.ilSoapUserAdministration.php.
References $message, $messages, and ilSoapAdministration\__raiseError().
Referenced by importUsers().
ilSoapUserAdministration::__getUserMappingAsXML | ( | $a_array | ) |
return user mapping as xml
array | (user_id => login) $a_array |
Definition at line 833 of file class.ilSoapUserAdministration.php.
References $message, and ilSoapAdministration\__raiseError().
Referenced by importUsers().
ilSoapUserAdministration::__readUserData | ( | \ilObjUser & | $usr_obj | ) |
Definition at line 299 of file class.ilSoapUserAdministration.php.
References ilObjUser\getActive(), ilObjUser\getApproveDate(), ilObjUser\getAuthMode(), ilObjUser\getCity(), ilObjUser\getComment(), ilObjUser\getCountry(), ilObject\getCreateDate(), ilObjUser\getDepartment(), ilObjUser\getEmail(), ilObjUser\getFax(), ilObjUser\getFirstname(), ilObjUser\getGender(), ilObjUser\getHobby(), ilObject\getId(), ilObject\getImportId(), ilObjUser\getInstitution(), ilObjUser\getLanguage(), ilObjUser\getLastLogin(), ilObjUser\getLastname(), ilObjUser\getLastUpdate(), ilObjUser\getLogin(), ilObjUser\getMatriculation(), ilObjUser\getPasswd(), ilObjUser\getPasswdType(), ilObjUser\getPhoneHome(), ilObjUser\getPhoneMobile(), ilObjUser\getPhoneOffice(), ilObjUser\getPref(), ilObjUser\getSecondEmail(), ilObjUser\getStreet(), ilObjUser\getTimeLimitFrom(), ilObjUser\getTimeLimitMessage(), ilObjUser\getTimeLimitOwner(), ilObjUser\getTimeLimitUnlimited(), ilObjUser\getTimeLimitUntil(), ilObjUser\getUTitle(), ilObjUser\getZipcode(), and ilObjUser\hasToAcceptTermsOfService().
Referenced by getUser().
ilSoapUserAdministration::deleteUser | ( | $sid, | |
$user_id | |||
) |
Definition at line 259 of file class.ilSoapUserAdministration.php.
References $DIC, $ilUser, $log, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUser | ( | $sid, | |
$user_id | |||
) |
Definition at line 228 of file class.ilSoapUserAdministration.php.
References $DIC, $ilUser, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), __readUserData(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUserForRole | ( | $sid, | |
$role_id, | |||
$attachRoles, | |||
$active | |||
) |
Definition at line 715 of file class.ilSoapUserAdministration.php.
References $data, $DIC, $ilDB, $ilUser, $tree, $type, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjUser\_getUsersForRole(), ilObject\_lookupType(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUserIdBySid | ( | $sid | ) |
Definition at line 1060 of file class.ilSoapUserAdministration.php.
References $data, $DIC, $ilDB, $query, $res, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapUserAdministration::getUsersForContainer | ( | $sid, | |
$ref_id, | |||
$attachRoles, | |||
$active | |||
) |
return list of users following dtd users_3_7
Definition at line 635 of file class.ilSoapUserAdministration.php.
References $data, $DIC, $ilDB, $tree, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjUser\_getUsersForFolder(), ilObjUser\_getUsersForGroup(), ilObjUser\_getUsersForIds(), ilObject\_lookupObjId(), ilSoapAdministration\checkObjectAccess(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), ilSoapAdministration\isFault(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUserXML | ( | $sid, | |
$a_user_ids, | |||
$attach_roles | |||
) |
return user xmls for given user ids (csv separated ids) as xml based on usr dtd.
string | sid session id |
string | a_userids array of user ids, may be numeric or ilias ids |
boolean | attachRoles if true, role assignments will be attached, nothing will be done otherwise |
Definition at line 990 of file class.ilSoapUserAdministration.php.
References $data, $DIC, $ilDB, $ilUser, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjUser\_getUserData(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and USER_FOLDER_ID.
ilSoapUserAdministration::hasNewMail | ( | $sid | ) |
Definition at line 1039 of file class.ilSoapUserAdministration.php.
References $DIC, $ilUser, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilMailGlobalServices\getNumberOfNewMailsByUserId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapUserAdministration::importUsers | ( | $sid, | |
$folder_id, | |||
$usr_xml, | |||
$conflict_rule, | |||
$send_account_mail | |||
) |
define ("IL_FAIL_ON_CONFLICT", 1); define ("IL_UPDATE_ON_CONFLICT", 2); define ("IL_IGNORE_ON_CONFLICT", 3);
Definition at line 350 of file class.ilSoapUserAdministration.php.
References $DIC, $ilLog, $ilUser, $lng, $tree, ilUtil\__extractId(), __getImportProtocolAsXML(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), __getUserMappingAsXML(), ilSoapAdministration\__raiseError(), ilObjRole\_getAssignUsersStatus(), ilObject\_lookupTitle(), domxml_open_mem(), ilObjectFactory\getInstanceByRefId(), IL_EXTRACT_ROLES, IL_FAIL_ON_CONFLICT, IL_IGNORE_ON_CONFLICT, IL_IMPORT_FAILURE, IL_IMPORT_SUCCESS, IL_IMPORT_WARNING, IL_UPDATE_ON_CONFLICT, IL_USER_IMPORT, IL_USER_MAPPING_ID, IL_VERIFY, ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), isPermittedRole(), and USER_FOLDER_ID.
|
protected |
check if assignment is allowed
protected
Definition at line 541 of file class.ilSoapUserAdministration.php.
References $DIC, $ilLog, $ilUser, $location, $tree, ilObjRole\_getAssignUsersStatus(), and USER_FOLDER_ID.
Referenced by importUsers().
ilSoapUserAdministration::login | ( | $client, | |
$username, | |||
$password | |||
) |
Soap login type $ilUser.
type | $client | |
type | $username | |
type | $password |
Definition at line 46 of file class.ilSoapUserAdministration.php.
References $_COOKIE, $client, $GLOBALS, $password, ilSoapAdministration\__raiseError(), ilAuthFrontendFactory\CONTEXT_CLI, ilAuthStatus\getInstance(), ilLoggerFactory\getLogger(), ilSoapAdministration\initIlias(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Referenced by loginLDAP().
ilSoapUserAdministration::loginCAS | ( | $client, | |
$PT, | |||
$username | |||
) |
Definition at line 99 of file class.ilSoapUserAdministration.php.
References $client, ilSoapAdministration\__initAuthenticationObject(), ilSoapAdministration\__raiseError(), and AUTH_CAS.
ilSoapUserAdministration::loginLDAP | ( | $client, | |
$username, | |||
$password | |||
) |
Not required anymode.
This method is a simple alias for login()
type | $client | |
type | $username | |
type | $password |
Definition at line 126 of file class.ilSoapUserAdministration.php.
References $client, $password, and login().
ilSoapUserAdministration::loginStudipUser | ( | $sid, | |
$user_id | |||
) |
login as user from Stud.IP
string | $sid | |
int | $user_id |
Definition at line 138 of file class.ilSoapUserAdministration.php.
References $_COOKIE, $client, $DIC, $GLOBALS, $ilIliasIniFile, $ilUser, ilSoapAdministration\__explodeSid(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), ilSession\SESSION_CLOSE_USER, and ilSession\setClosingContext().
ilSoapUserAdministration::logout | ( | $sid | ) |
Logout user destroy session.
string | $sid |
Definition at line 183 of file class.ilSoapUserAdministration.php.
References $GLOBALS, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), ilSession\SESSION_CLOSE_USER, and ilSession\setClosingContext().
ilSoapUserAdministration::lookupUser | ( | $sid, | |
$user_name | |||
) |
Definition at line 198 of file class.ilSoapUserAdministration.php.
References $DIC, $ilUser, ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjUser\getUserIdByLogin(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and USER_FOLDER_ID.
ilSoapUserAdministration::searchUser | ( | $sid, | |
$a_keyfields, | |||
$query_operator, | |||
$a_keyvalues, | |||
$attach_roles, | |||
$active | |||
) |
return user xml following dtd 3.7
String | $sid | session id |
String | array $a_keyfields array of user fieldname, following dtd 3.7 | |
String | $queryOperator | any logical operator |
String | array $a_keyValues values separated by space, at least 3 chars per search term |
Definition at line 873 of file class.ilSoapUserAdministration.php.
References $data, $DIC, $ilDB, $query, $r, $row, __buildSearchQuery(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and USER_FOLDER_ID.