|
Stud.IP
jlu_4.3 Revision 64286
|


Public Member Functions | |
| __construct ($index, $soap_path, $ilias_client='', $ilias_version='', $admin_login='', $admin_password='') | |
| 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="") | |
| 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) | |
| 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) | |
| checkReferenceById ($id) | |
Public Member Functions inherited from StudipSoapClient | |
| __construct ($path) | |
| _call ($method, $params) | |
| getError () | |
| __construct ($path) | |
| _call ($method, $params) | |
| getError () | |
Additional Inherited Members | |
Data Fields inherited from StudipSoapClient | |
| $soap_client | |
| $error | |
| __construct | ( | $index, | |
| $soap_path, | |||
$ilias_client = '', |
|||
$ilias_version = '', |
|||
$admin_login = '', |
|||
$admin_password = '' |
|||
| ) |
constructor
init class. @access public
| string | $index | ILIAS installation index |
| string | $soap_path | SOAP url |
| string | $ilias_client | ILIAS client |
| string | $ilias_version | ILIAS int client |
| string | $admin_login | ILIAS admin account login |
| string | $admin_password | ILIAS admin account password |

| addCourse | ( | $course_data, | |
| $ref_id | |||
| ) |
add course
adds course @access 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 @access public
| string | object_id source-object-id |
| string | ref_id target-id |

| addGroup | ( | $group_data, | |
| $ref_id | |||
| ) |
add group
adds group @access public
| array | group_data group data |
| string | ref_id target id |

| addMember | ( | $user_id, | |
| $type, | |||
| $course_id | |||
| ) |
add course member
adds user to course @access 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 @access 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 @access public
| string | object_id source-object-id |
| string | ref_id target-id |

| addRole | ( | $role_data, | |
| $ref_id | |||
| ) |
add role
adds a new role @access 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 @access 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 @access 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 @access 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 @access 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 @access public
| string | method method-name |
| string | params parameters |


| checkPassword | ( | $username, | |
| $password | |||
| ) |
Check Auth
login to soap-webservice @access public

| checkReferenceById | ( | $id | ) |
check reference by title
gets reference id by object id @access public
| string | key keyword |
| string | type object-type |

| clearCache | ( | ) |
clear cache
clears cache @access public

| copyObject | ( | $source_id, | |
| $target_id | |||
| ) |
copy object
copy ilias-object @access public
| string | source_id reference-id |
| string | target_id reference-id |

| deleteObject | ( | $reference_id | ) |
delete object
deletes ilias-object @access public
| string | ref_id reference-id |

| deleteUser | ( | $user_id | ) |
update user
update user-data @access public
| array | user_data user-data |
update password with given string and write it uncrypted to the ilias-database @access public
| string | user_id user-id |
| string | password password |
deletes user-account @access public
| string | user_id user-id |

| deleteUserRoleEntry | ( | $user_id, | |
| $role_id | |||
| ) |
delete user role entry
deletes a role entry from the given user @access public
| string | user_id user-id |
| string | role_id role-id |

| excludeGroupMember | ( | $group_id, | |
| $user_id | |||
| ) |
exclude group member
removes user from group @access public
| string | group_id group id |
| string | user_id user id |

| getCachingStatus | ( | ) |
get caching status
gets caching-status @access public
| getCourseXML | ( | $course_data | ) |
get course-xml
gets course xml-object for given course-data @access public
| array | course_data course-data |

| getGroup | ( | $group_id | ) |
get group
returns group xml @access public
| string | group_id group id |

| getGroupXML | ( | $group_data | ) |
get group xml
gets group xml object for given group data @access public
| array | group_data group data |

| getInstallationInfoXML | ( | ) |
returns ILIAS-Server-Info
@access public

| getLocalRoles | ( | $course_id | ) |
get local roles
gets local roles for given object @access public
| string | course_id object-id |

| getObjectByReference | ( | $ref, | |
$user_id = "" |
|||
| ) |
get object by reference
gets object by reference-id @access public
| ref | reference_id |
| string | user_id ilias-user-id |

| getObjectByTitle | ( | $key, | |
$type = "" |
|||
| ) |
get object by title
gets object by title @access 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 @access public
| string | ref_id reference-id |
| string | user_id user-id for permissions |

| getOperations | ( | ) |
get operation
gets all ilias operations @access public

| getPath | ( | $ref_id | ) |
get path
returns repository-path to ilias-object @access public
| string | source_id reference-id |
| string | target_id reference-id |

| getRawPath | ( | $ref_id | ) |
returns repository-path to ilias-object
@access public
| string | source_id reference-id |
| string | target_id reference-id |

| getReferenceByTitle | ( | $key, | |
$type = "" |
|||
| ) |
get reference by title
gets reference-id by object-title @access public
| string | key keyword |
| string | type object-type |

| getSID | ( | ) |
get sid
returns soap-session-id @access public


| getStructure | ( | $ref_id | ) |
get structure
returns structure for ilias content object @access public
| string | ref_id reference id |

| getTreeChilds | ( | $ref_id, | |
$types = "", |
|||
$user_id = "" |
|||
| ) |
get tree childs
gets child-objects of the given tree node @access 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 @access public
| string | user_id user-id |

| getUserFullname | ( | $user_id | ) |
get user fullname
gets user-data for given user-id @access public
| string | user_id user-id |

| getUserRoles | ( | $user_id | ) |
get user roles
gets user roles @access 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 @access 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 @access public
| string | user_id user-id |
| string | course_id course-id |

| loadCacheData | ( | ) |
load cache
load soap-cache @access public
| string | cms cms-type |

| loginAdmin | ( | ) |
login with admin account
login to ILIAS soap webservice with admin account @access public


| loginUser | ( | $username, | |
| $password | |||
| ) |
login with admin account
login to ILIAS soap webservice with current user @access public


| logout | ( | ) |
logout
logout from soap-webservice @access public

| lookupUser | ( | $username | ) |
lookup user
gets user-id for given username @access public
| string | username username |

| parseIliasObject | ( | $xml, | |
$condition_field = '', |
|||
$condition_value = '' |
|||
| ) |
parse ILIAS object
parse XML and return ilias object(s) @access public
| string | xml xml data |
| string | parent_id get data for child references of parent_id |

| ParseXML | ( | $data | ) |
parse xml
use xml-parser @access public
| string | data xml-data |
| revokePermissions | ( | $role_id, | |
| $ref_id | |||
| ) |
revoke permissions
revokes all permissions role-id and ref-id @access public
| string | role_id role-id |
| string | ref_id reference-id |

| saveCacheData | ( | ) |
save cache
saves soap-cache in session-variable @access public

| searchObjects | ( | $types, | |
| $key, | |||
| $combination, | |||
$user_id = "" |
|||
| ) |
search objects
search for ilias-objects @access 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 @access 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 @access public
| boolean | bool_value status |
| setUserType | ( | $user_type | ) |
set usertype
sets usertype for soap-calls @access public
| string | user_type usertype (admin or user) |
| updateGroup | ( | $group_data, | |
| $ref_id | |||
| ) |
update group
updates group @access public
| array | group_data group data |
| string | ref_id group id |
