Stud.IP
6.1
|
Public Member Functions | |
__construct ($index, $soap_path, $ilias_client='', $ilias_version='', $admin_login='', $admin_password='', $http_connection_timeout=NULL, $http_request_timeout=NULL) | |
setUserType ($user_type) | |
getSID () | |
call ($method, $params) | |
loadCacheData () | |
getCachingStatus () | |
setCachingStatus ($bool_value) | |
clearCache () | |
saveCacheData () | |
ParseXML ($data) | |
loginAdmin () | |
loginUser ($username, $password) | |
logout () | |
checkPassword ($username, $password) | |
parseIliasObject ($xml, $condition_field='', $condition_value='') | |
searchObjects ($types, $key, $combination, $user_id="") | |
getObjectByReference ($ref, $user_id=false) | |
getObjectByTitle ($key, $type="") | |
getReferenceByTitle ($key, $type="") | |
addObject ($object_data, $ref_id) | |
deleteObject ($reference_id) | |
addReference ($object_id, $ref_id) | |
addDesktopItems ($user_id, $ref_ids) | |
getTreeChilds ($ref_id, $types, $user_id) | |
getOperations () | |
getObjectTreeOperations ($ref_id, $user_id) | |
getUserRoles ($user_id) | |
getLocalRoles ($course_id) | |
getRoles (string $role_type, string $id) | |
addRole ($role_data, $ref_id) | |
addRoleFromTemplate ($role_data, $ref_id, $role_id) | |
deleteUserRoleEntry ($user_id, $role_id) | |
addUserRoleEntry ($user_id, $role_id) | |
grantPermissions ($operations, $role_id, $ref_id) | |
revokePermissions ($role_id, $ref_id) | |
lookupUser ($username) | |
getUser ($user_id) | |
getUserFullname ($user_id) | |
searchUser ($user_id) | |
addUser ($user_data, $role_id) | |
copyObject ($source_id, $target_id) | |
getStructure ($ref_id) | |
getPath ($ref_id) | |
getRawPath ($ref_id) | |
getInstallationInfoXML () | |
deleteUser ($user_id) | |
isMember ($user_id, $course_id) | |
addMember ($user_id, $type, $course_id) | |
addCourse ($course_data, $ref_id) | |
addGroup ($group_data, $ref_id) | |
updateGroup ($group_data, $ref_id) | |
assignGroupMember ($group_id, $user_id, $type="Member") | |
excludeGroupMember ($group_id, $user_id) | |
getGroup ($group_id) | |
getCourseXML ($course_data) | |
getGroupXML ($group_data) | |
getCoursesForUser ($user_id, $status=1) | |
getCoursesForUserStatus (string $user_id, string $status) | |
checkReferenceById ($id) | |
getTestResults ($ref_id, $sum_only=true) | |
![]() | |
__construct ($path, $options=['trace'=> 0]) | |
_call ($method, $params) | |
getError () | |
Data Fields | |
$separator_string | |
![]() | |
$soap_client | |
$error | |
$faultstring | |
__construct | ( | $index, | |
$soap_path, | |||
$ilias_client = '' , |
|||
$ilias_version = '' , |
|||
$admin_login = '' , |
|||
$admin_password = '' , |
|||
$http_connection_timeout = NULL , |
|||
$http_request_timeout = NULL |
|||
) |
addCourse | ( | $course_data, | |
$ref_id | |||
) |
add course
adds course public
array | course_data course-data |
string | ref_id target-id |
addDesktopItems | ( | $user_id, | |
$ref_ids | |||
) |
add references to desktop
adds references to personal desktop public
string | object_id source-object-id |
string | ref_id target-id |
addGroup | ( | $group_data, | |
$ref_id | |||
) |
add group
adds group public
array | group_data group data |
string | ref_id target id |
addMember | ( | $user_id, | |
$type, | |||
$course_id | |||
) |
add course member
adds user to course public
string | user_id user-id |
string | type member-type (Admin, Tutor or Member) |
string | course_id course-id |
addObject | ( | $object_data, | |
$ref_id | |||
) |
add object
adds new ilias-object public
array | object_data object-data |
string | ref_id reference-id |
addReference | ( | $object_id, | |
$ref_id | |||
) |
add reference
add a new reference to an existing ilias-object public
string | object_id source-object-id |
string | ref_id target-id |
addRole | ( | $role_data, | |
$ref_id | |||
) |
add role
adds a new role public
array | role_data data for role-object |
string | ref_id reference-id |
addRoleFromTemplate | ( | $role_data, | |
$ref_id, | |||
$role_id | |||
) |
add role from tremplate
adds a new role and adopts properties of the given role template public
array | role_data data for role-object |
string | ref_id reference-id |
string | role_id role-template-id |
addUser | ( | $user_data, | |
$role_id | |||
) |
add user by importUsers
adds new user and sets role-id public
array | user_data user-data |
string | role_id global role-id for new user |
addUserRoleEntry | ( | $user_id, | |
$role_id | |||
) |
add user role entry
adds a role entry for the given user public
string | user_id user-id |
string | role_id role-id |
assignGroupMember | ( | $group_id, | |
$user_id, | |||
$type = "Member" |
|||
) |
assign group member
assigns user to group public
string | group_id group id |
string | user_id user id |
string | type type |
call | ( | $method, | |
$params | |||
) |
call soap-function
calls soap-function with given parameters public
string | method method-name |
string | params parameters |
checkPassword | ( | $username, | |
$password | |||
) |
Check Auth
login to soap-webservice public
checkReferenceById | ( | $id | ) |
check reference by title
gets reference id by object id public
string | key keyword |
string | type object-type |
clearCache | ( | ) |
clear cache
clears cache public
copyObject | ( | $source_id, | |
$target_id | |||
) |
copy object
copy ilias-object public
string | source_id reference-id |
string | target_id reference-id |
deleteObject | ( | $reference_id | ) |
delete object
deletes ilias-object public
string | ref_id reference-id |
deleteUser | ( | $user_id | ) |
update user
update user-data public
array | user_data user-data |
update password with given string and write it uncrypted to the ilias-database public
string | user_id user-id |
string | password password |
deletes user-account public
string | $user_id | user-id |
deleteUserRoleEntry | ( | $user_id, | |
$role_id | |||
) |
delete user role entry
deletes a role entry from the given user public
string | user_id user-id |
string | role_id role-id |
excludeGroupMember | ( | $group_id, | |
$user_id | |||
) |
exclude group member
removes user from group public
string | group_id group id |
string | user_id user id |
getCachingStatus | ( | ) |
get caching status
gets caching-status public
getCoursesForUser | ( | $user_id, | |
$status = 1 |
|||
) |
get courses for given user
gets course xml-object for given course-data public
array | course_data course-data |
getCoursesForUserStatus | ( | string | $user_id, |
string | $status | ||
) |
get courses for given user by status
gets course array for given course data public
string | $user_id | ilias user id |
string | $status | MEMBER = 1, TUTOR = 2, ADMIN = 4, OWNER = 8 |
getCourseXML | ( | $course_data | ) |
get course-xml
gets course xml-object for given course-data public
array | course_data course-data |
getGroup | ( | $group_id | ) |
get group
returns group xml public
string | group_id group id |
getGroupXML | ( | $group_data | ) |
get group xml
gets group xml object for given group data public
array | group_data group data |
getInstallationInfoXML | ( | ) |
returns ILIAS-Server-Info
public
getLocalRoles | ( | $course_id | ) |
get local roles
gets local roles for given object public
string | course_id object-id |
getObjectByReference | ( | $ref, | |
$user_id = false |
|||
) |
get object by reference
gets object by reference-id public
ref | reference_id |
string | user_id ilias-user-id |
getObjectByTitle | ( | $key, | |
$type = "" |
|||
) |
get object by title
gets object by title public
string | key keyword |
string | type object-type |
getObjectTreeOperations | ( | $ref_id, | |
$user_id | |||
) |
get object tree operations
gets permissions for object at given tree-node public
string | ref_id reference-id |
string | user_id user-id for permissions |
getOperations | ( | ) |
get operation
gets all ilias operations public
getPath | ( | $ref_id | ) |
get path
returns repository-path to ilias-object public
string | ref_id reference id |
getRawPath | ( | $ref_id | ) |
returns repository-path to ilias-object
public
string | ref_id reference id |
getReferenceByTitle | ( | $key, | |
$type = "" |
|||
) |
get reference by title
gets reference-id by object-title public
string | key keyword |
string | type object-type |
getRoles | ( | string | $role_type, |
string | $id | ||
) |
get roles
gets roles of given type for given object
string | $role_type | type of role (global|local|user|user_login|template or empty) |
string | $id | reference id, user id, or -1 for all available roles of given type |
getSID | ( | ) |
get sid
returns soap-session-id public
getStructure | ( | $ref_id | ) |
get structure
returns structure for ilias content object public
string | ref_id reference id |
getTestResults | ( | $ref_id, | |
$sum_only = true |
|||
) |
string | $ref_id | |
bool | $sum_only |
Exception |
getTreeChilds | ( | $ref_id, | |
$types, | |||
$user_id | |||
) |
get tree childs
gets child-objects of the given tree node public
string | ref_id reference-id |
array | types show only childs with these types |
string | user_id user-id for permissions |
getUser | ( | $user_id | ) |
get user
gets user-data for given user-id public
string | $user_id | user-id |
getUserFullname | ( | $user_id | ) |
get user fullname
gets user-data for given user-id public
string | user_id user-id |
getUserRoles | ( | $user_id | ) |
get user roles
gets user roles public
string | user_id user-id |
grantPermissions | ( | $operations, | |
$role_id, | |||
$ref_id | |||
) |
grant permissions
grants permissions for given operations at role-id and ref-id public
array | operations operation-array |
string | role_id role-id |
string | ref_id reference-id |
isMember | ( | $user_id, | |
$course_id | |||
) |
is course member
checks if user is course-member public
string | user_id user-id |
string | course_id course-id |
loadCacheData | ( | ) |
load cache
load soap-cache public
string | cms cms-type |
loginAdmin | ( | ) |
login with admin account
login to ILIAS soap webservice with admin account public
loginUser | ( | $username, | |
$password | |||
) |
login with admin account
login to ILIAS soap webservice with current user public
logout | ( | ) |
logout
logout from soap-webservice public
lookupUser | ( | $username | ) |
lookup user
gets user-id for given username public
string | username username |
parseIliasObject | ( | $xml, | |
$condition_field = '' , |
|||
$condition_value = '' |
|||
) |
parse ILIAS object
parse XML and return ilias object(s) public
string | xml xml data |
string | parent_id get data for child references of parent_id |
ParseXML | ( | $data | ) |
parse xml
use xml-parser public
string | data xml-data |
revokePermissions | ( | $role_id, | |
$ref_id | |||
) |
revoke permissions
revokes all permissions role-id and ref-id public
string | role_id role-id |
string | ref_id reference-id |
saveCacheData | ( | ) |
save cache
saves soap-cache in session-variable public
searchObjects | ( | $types, | |
$key, | |||
$combination, | |||
$user_id = "" |
|||
) |
search objects
search for ilias-objects public
array | types types |
string | key keyword |
string | combination search-combination |
string | user_id ilias-user-id |
searchUser | ( | $user_id | ) |
search users
search for ilias users public
array | types types |
string | key keyword |
string | combination search-combination |
string | user_id ilias-user-id |
setCachingStatus | ( | $bool_value | ) |
set caching status
sets caching-status public
boolean | bool_value status |
setUserType | ( | $user_type | ) |
set usertype
sets usertype for soap-calls public
string | user_type usertype (admin or user) |
updateGroup | ( | $group_data, | |
$ref_id | |||
) |
update group
updates group public
array | group_data group data |
string | ref_id group id |
$separator_string |