Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
Ilias3Soap Class Reference
Inheritance diagram for Ilias3Soap:
StudipSoapClient Ilias4Soap Ilias5Soap

Public Member Functions

 __construct ($cms)
 
 setUserType ($user_type)
 
 getSID ()
 
 call ($method, $params)
 
 loadCacheData ($cms)
 
 getCachingStatus ()
 
 setCachingStatus ($bool_value)
 
 clearCache ()
 
 saveCacheData ()
 
 ParseXML ($data)
 
 login ()
 
 logout ()
 
 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)
 
 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)
 
 addUser ($user_data, $role_id)
 
 updateUser ($user_data)
 
 updatePassword ($user_id, $password)
 
 deleteUser ($user_id)
 
 isMember ($user_id, $course_id)
 
 addMember ($user_id, $type, $course_id)
 
 addCourse ($course_data, $ref_id)
 
 getCourseXML ($course_data)
 
 checkReferenceById ($id)
 
- Public Member Functions inherited from StudipSoapClient
 __construct ($path)
 
 _call ($method, $params)
 
 getError ()
 
 __construct ($path)
 
 _call ($method, $params)
 
 getError ()
 

Data Fields

 $cms_type
 
 $admin_sid
 
 $user_sid
 
 $user_type
 
 $soap_cache
 
 $caching_active = false
 
- Data Fields inherited from StudipSoapClient
 $soap_client
 
 $error
 
 $faultstring
 

Constructor & Destructor Documentation

__construct (   $cms)

constructor

init class.

Parameters
string$cmssystem-type

Member Function Documentation

addCourse (   $course_data,
  $ref_id 
)

add course

adds course public

Parameters
arraycourse_data course-data
stringref_id target-id
Returns
string course-id
addMember (   $user_id,
  $type,
  $course_id 
)

add course member

adds user to course public

Parameters
stringuser_id user-id
stringtype member-type (Admin, Tutor or Member)
stringcourse_id course-id
Returns
boolean result
addObject (   $object_data,
  $ref_id 
)

add object

adds new ilias-object public

Parameters
arrayobject_data object-data
stringref_id reference-id
Returns
string result
addReference (   $object_id,
  $ref_id 
)

add reference

add a new reference to an existing ilias-object public

Parameters
stringobject_id source-object-id
stringref_id target-id
Returns
string created reference-id
addRole (   $role_data,
  $ref_id 
)

add role

adds a new role public

Parameters
arrayrole_data data for role-object
stringref_id reference-id
Returns
string role-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

Parameters
arrayrole_data data for role-object
stringref_id reference-id
stringrole_id role-template-id
Returns
string role-id
addUser (   $user_data,
  $role_id 
)

add user

adds new user and sets role-id public

Parameters
arrayuser_data user-data
stringrole_id global role-id for new user
Returns
string user-id
addUserRoleEntry (   $user_id,
  $role_id 
)

add user role entry

adds a role entry for the given user public

Parameters
stringuser_id user-id
stringrole_id role-id
Returns
boolean result
call (   $method,
  $params 
)

call soap-function

calls soap-function with given parameters public

Parameters
stringmethod method-name
stringparams parameters
Returns
mixed result
checkReferenceById (   $id)

check reference by title

gets reference-id by object-title public

Parameters
stringkey keyword
stringtype object-type
Returns
string reference-id
clearCache ( )

clear cache

clears cache public

deleteObject (   $reference_id)

delete object

deletes ilias-object public

Parameters
stringref_id reference-id
Returns
boolean result
deleteUser (   $user_id)

delete user

deletes user-account public

Parameters
stringuser_id user-id
Returns
string result
deleteUserRoleEntry (   $user_id,
  $role_id 
)

delete user role entry

deletes a role entry from the given user public

Parameters
stringuser_id user-id
stringrole_id role-id
Returns
boolean result
getCachingStatus ( )

get caching status

gets caching-status public

Returns
boolean status
getCourseXML (   $course_data)

get course-xml

gets course xml-object for given course-data public

Parameters
arraycourse_data course-data
Returns
string course-xml
getLocalRoles (   $course_id)

get local roles

gets local roles for given object public

Parameters
stringcourse_id object-id
Returns
array role-objects
getObjectByReference (   $ref,
  $user_id = "" 
)

get object by reference

gets object by reference-id public

Parameters
refreference_id
stringuser_id ilias-user-id
Returns
array object
getObjectByTitle (   $key,
  $type = "" 
)

get object by title

gets object by title public

Parameters
stringkey keyword
stringtype object-type
Returns
array object
getObjectTreeOperations (   $ref_id,
  $user_id 
)

get object tree operations

gets permissions for object at given tree-node public

Parameters
stringref_id reference-id
stringuser_id user-id for permissions
Returns
array operation-ids
getOperations ( )

get operation

gets all ilias operations public

Returns
array operations
getReferenceByTitle (   $key,
  $type = "" 
)

get reference by title

gets reference-id by object-title public

Parameters
stringkey keyword
stringtype object-type
Returns
string reference-id
getSID ( )

get sid

returns soap-session-id public

Returns
string session-id
getTreeChilds (   $ref_id,
  $types = "",
  $user_id = "" 
)

get tree childs

gets child-objects of the given tree node public

Parameters
stringref_id reference-id
arraytypes show only childs with these types
stringuser_id user-id for permissions
Returns
array objects
getUser (   $user_id)

get user

gets user-data for given user-id public

Parameters
stringuser_id user-id
Returns
array user-data
getUserRoles (   $user_id)

get user roles

gets user roles public

Parameters
stringuser_id user-id
Returns
array role-ids
grantPermissions (   $operations,
  $role_id,
  $ref_id 
)

grant permissions

grants permissions for given operations at role-id and ref-id public

Parameters
arrayoperations operation-array
stringrole_id role-id
stringref_id reference-id
Returns
boolean result
isMember (   $user_id,
  $course_id 
)

is course member

checks if user is course-member public

Parameters
stringuser_id user-id
stringcourse_id course-id
Returns
boolean result
loadCacheData (   $cms)

load cache

load soap-cache public

Parameters
stringcms cms-type
login ( )

login

login to soap-webservice public

Returns
string result
logout ( )

logout

logout from soap-webservice public

Returns
boolean result
lookupUser (   $username)

lookup user

gets user-id for given username public

Parameters
stringusername username
Returns
string user-id
ParseXML (   $data)

parse xml

use xml-parser public

Parameters
stringdata xml-data
Returns
array object
revokePermissions (   $role_id,
  $ref_id 
)

revoke permissions

revokes all permissions role-id and ref-id public

Parameters
stringrole_id role-id
stringref_id reference-id
Returns
boolean result
saveCacheData ( )

save cache

saves soap-cache in session-variable public

searchObjects (   $types,
  $key,
  $combination,
  $user_id = "" 
)

search objects

search for ilias-objects public

Parameters
arraytypes types
stringkey keyword
stringcombination search-combination
stringuser_id ilias-user-id
Returns
array objects
setCachingStatus (   $bool_value)

set caching status

sets caching-status public

Parameters
booleanbool_value status
setUserType (   $user_type)

set usertype

sets usertype fpr soap-calls public

Parameters
stringuser_type usertype (admin or user)
updatePassword (   $user_id,
  $password 
)

update password

update password with given string and write it uncrypted to the ilias-database public

Parameters
stringuser_id user-id
stringpassword password
Returns
string result
updateUser (   $user_data)

update user

update user-data public

Parameters
arrayuser_data user-data
Returns
string result

Field Documentation

$admin_sid
$caching_active = false
$cms_type
$soap_cache
$user_sid
$user_type

The documentation for this class was generated from the following file: