constructor
ILIAS connection main class
- Parameters
-
string | $index | ilias installation index |
addCourse |
( |
|
$studip_course_id | ) |
|
create course
creates new ilias course public
- Parameters
-
string | $studip_course_id | seminar-id |
- Returns
- string|false|null
addCourseModule |
( |
|
$module_id, |
|
|
|
$module_data |
|
) |
| |
add course module
adds module instance to list of course modules public
check user
checks if ILIAS user exists, creates new user if not public
- Returns
- boolean returns user status
checkUserCoursePermissions |
( |
|
$ilias_course_id = "" | ) |
|
check user permissions
checks user permissions for connected course and changes setting if necessary public
- Parameters
-
string | $ilias_course_id | course-id |
- Returns
- boolean returns false on error
deleteConnectedModules |
( |
|
$object_id | ) |
|
delete given course
deletes ILIAS course data public
- Parameters
-
$course | Stud.IP course object |
- Returns
- boolean returns false
delete given user account
deletes ILIAS user data public
- Parameters
-
- Returns
- boolean returns false
get url of ILIAS installation
returns url of ILIAS installation public
- Returns
- string path
getAllowedModuleTypes |
( |
| ) |
|
get active module types
returns all active module types for current ILIAS installation public
Helper function to fetch children including objects in folders The typo in the function name, 'childs', is intentional to reflect the name of the ILIAS-SOAP call.
public
- Parameters
-
- Returns
- array result
get client-id
returns client-id public
- Returns
- string client-id
getConnectionSettingsStatus |
( |
| ) |
|
get connection status
checks connection settings public
- Returns
- string messages
getContentSettingsStatus |
( |
| ) |
|
get content status
checks content settings public
- Returns
- string messages
get course modules
returns all added course module instances public
get errors
returns array of error strings. public
- Returns
- array of error strings
static getExistingIndices |
( |
| ) |
|
|
static |
get existing ilias indices
loads existing indices of all ilias installations from database public
static getIliasInfo |
( |
|
$url | ) |
|
|
static |
get ILIAS info
checks ILIAS base settings public
- Parameters
-
- Returns
- array info
get index of ILIAS installation
returns index of ILIAS installation public
- Returns
- string type
static getIntVersion |
( |
|
$version | ) |
|
|
static |
get ILIAS version as int
converts ILIAS version to int value public
- Returns
- string messages
get module
returns module instance by ID public
- Parameters
-
string | $module_id | ILIAS ref id |
- Returns
- instance of IliasModule
get name of ILIAS installation
returns name of cms public
- Returns
- string name
getOperation |
( |
|
$operation | ) |
|
get operation
returns id for given operation-string public
- Parameters
-
string | $operation | operation |
- Returns
- integer operation-id
getOperationArray |
( |
|
$operation | ) |
|
get operation-ids
returns an array of operation-ids public
- Parameters
-
string | $operation | operation |
- Returns
- array operation-ids
get ILIAS path
returns full path for given ILIAS ref ID public
- Parameters
-
$ref_id | ILIAS reference id |
- Returns
- string path
getPermissionsSettingsStatus |
( |
| ) |
|
get permissions status
checks permissions settings public
- Returns
- string messages
get soap methods
returns array of available soap methods public
- Returns
- array soap method names
get structure
returns structure for given ILIAS lm ID public
- Parameters
-
$ref_id | ILIAS reference id |
- Returns
- string path
static getsupportedModuleTypes |
( |
| ) |
|
|
static |
get supported module types
returns all active module types for current ILIAS installation public
get target file of ILIAS installation
returns target file of ILIAS installation public
- Returns
- string target file
getUserFullname |
( |
|
$user_id | ) |
|
get ILIAS user full name
returns full name of given ILIAS user ID public
- Parameters
-
- Returns
- string full name
get user modules
returns content modules from current users private category public
- Returns
- array list of content modules
getUserModuleViewPermission |
( |
|
$module_id | ) |
|
get user permissions for ILIAS module
returns allowed operations for current user and given module public
- Parameters
-
string | $module_id | module-id |
- Returns
- boolean returns false on error
get user prefix
returns user prefix public
- Returns
- string user prefix
get active-setting
returns true, if ILIAS installation is active public
- Returns
- boolean active-setting
isAllowedModuleType |
( |
|
$module_type | ) |
|
check is module type is allowed
returns true if module type is allowed for current ILIAS installation public
load ILIAS settings from config table
create new user-account
creates new ILIAS user account public
- Returns
- boolean returns false
create new user category
creates new ILIAS user account public
- Returns
- boolean returns false
searchModules |
( |
|
$search_key | ) |
|
search ILIAS modules
performs search for ILIAS modules public
- Returns
- boolean returns false
setCourseModuleConnection |
( |
|
$studip_course_id, |
|
|
|
$module_id, |
|
|
|
$module_type, |
|
|
|
$connection_mode, |
|
|
|
$write_permission_level |
|
) |
| |
set module connection
sets module connection to course public
- Parameters
-
string | $studip_course_id | studip range id |
string | $module_id | ILIAS ref id |
string | $module_type | type of ILIAS module |
string | $connection_mode | copy or reference |
string | $write_permission_level | write permission for new module requires this perm (autor, tutor, dozent, never) |
- Returns
- boolean successful
store settings
stores current ILIAS settings to config table. public
unsetCourseModuleConnection |
( |
|
$studip_course_id, |
|
|
|
$module_id, |
|
|
|
$module_type |
|
) |
| |
unset module connection
unsets ILIAS module connection with course public
- Parameters
-
string | $studip_course_id | studip range id |
string | $module_id | ILIAS ref id |
string | $module_type | type of ILIAS module |
updateCourseConnections |
( |
|
$course_id | ) |
|
check connected modules and update connections
checks if there are modules in the course that are not connected to the seminar public
- Parameters
-
string | $course_id | course-id |
- Returns
- boolean successful
update given user account
updates ILIAS user data public
- Parameters
-
- Returns
- boolean returns false
const CRS_ADMIN_ROLE = '1' |
const CRS_MEMBER_ROLE = '2' |
const CRS_NO_NOTIFICATION = '2' |
const CRS_NOTIFICATION = '1' |
const CRS_PASSED_VALUE = '0' |
const CRS_TUTOR_ROLE = '3' |
const OPERATION_COPY = 'copy' |
const OPERATION_DELETE = 'delete' |
const OPERATION_EDIT_LEARNING_PROGRESS = 'edit_learning_progress' |
const OPERATION_EDIT_SUBMISSION_GRADES = 'edit_submissions_grades' |
const OPERATION_READ = 'read' |
const OPERATION_READ_LEARNING_PROGRESS = 'read_learning_progress' |
const OPERATION_VIEW_TEST_RESULTS = 'tst_results' |
const OPERATION_VIEW_TEST_STATISTICS = 'tst_statistics' |
const OPERATION_VISIBLE = 'visible' |
const OPERATION_WRITE = 'write' |
The documentation for this class was generated from the following file: