◆ __construct()
constructor
ILIAS connection main class @access
- Parameters
-
| string | $index | ilias installation index |
◆ addCourse()
| addCourse |
( |
|
$studip_course_id | ) |
|
create course
creates new ilias course @access public
- Parameters
-
| string | $studip_course_id | seminar-id |
- Returns
- boolean successful
◆ addCourseModule()
| addCourseModule |
( |
|
$module_id, |
|
|
|
$module_data |
|
) |
| |
add course module
adds module instance to list of course modules @access public
◆ checkUserCoursePermissions()
| checkUserCoursePermissions |
( |
|
$ilias_course_id = "" | ) |
|
check user permissions
checks user permissions for connected course and changes setting if necessary @access public
- Parameters
-
| string | $ilias_course_id | course-id |
- Returns
- boolean returns false on error
◆ deleteConnectedModules()
| deleteConnectedModules |
( |
|
$object_id | ) |
|
◆ getAbsolutePath()
get url of ILIAS installation
returns url of ILIAS installation @access public
- Returns
- string path
◆ getAllowedModuleTypes()
| getAllowedModuleTypes |
( |
| ) |
|
get active module types
returns all active module types for current ILIAS installation @access public
◆ getChilds()
Helper function to fetch childs including objects in folders
@access public
- Parameters
-
- Returns
- array result
◆ getClientId()
get client-id
returns client-id @access public
- Returns
- string client-id
◆ getConnectionSettingsStatus()
| getConnectionSettingsStatus |
( |
| ) |
|
get connection status
checks connection settings @access public
- Returns
- string messages
◆ getContentSettingsStatus()
| getContentSettingsStatus |
( |
| ) |
|
get content status
checks content settings @access public
- Returns
- string messages
◆ getCourseModules()
get course modules
returns all added course module instances @access public
◆ getError()
get errors
returns array of error strings. @access public
- Returns
- array of error strings
◆ getExistingIndices()
| static getExistingIndices |
( |
| ) |
|
|
static |
get existing ilias indices
loads existing indices of all ilias installations from database @access public
◆ getIliasInfo()
| static getIliasInfo |
( |
|
$url | ) |
|
|
static |
get ILIAS info
checks ILIAS base settings @access public
- Parameters
-
- Returns
- array info
◆ getIndex()
get index of ILIAS installation
returns index of ILIAS installation @access public
- Returns
- string type
◆ getIntVersion()
| static getIntVersion |
( |
|
$version | ) |
|
|
static |
get ILIAS version as int
converts ILIAS version to int value @access public
- Returns
- string messages
◆ getModule()
get module
returns module instance by ID @access public
- Parameters
-
| string | $module_id | ILIAS ref id |
- Returns
- instance of IliasModule
◆ getName()
get name of ILIAS installation
returns name of cms @access public
- Returns
- string name
◆ getOperation()
| getOperation |
( |
|
$operation | ) |
|
get operation
returns id for given operation-string @access public
- Parameters
-
| string | $operation | operation |
- Returns
- integer operation-id
◆ getOperationArray()
| getOperationArray |
( |
|
$operation | ) |
|
get operation-ids
returns an array of operation-ids @access public
- Parameters
-
| string | $operation | operation |
- Returns
- array operation-ids
◆ getPath()
get ILIAS path
returns full path for given ILIAS ref ID @access public
- Parameters
-
| $ref_id | ILIAS reference id |
- Returns
- string path
◆ getPermissionsSettingsStatus()
| getPermissionsSettingsStatus |
( |
| ) |
|
get permissions status
checks permissions settings @access public
- Returns
- string messages
◆ getSoapMethods()
get soap methods
returns array of available soap methods @access public
- Returns
- array soap method names
◆ getStructure()
get structure
returns structure for given ILIAS lm ID @access public
- Parameters
-
| $ref_id | ILIAS reference id |
- Returns
- string path
◆ getsupportedModuleTypes()
| static getsupportedModuleTypes |
( |
| ) |
|
|
static |
get supported module types
returns all active module types for current ILIAS installation @access public
◆ getTargetFile()
get target file of ILIAS installation
returns target file of ILIAS installation @access public
- Returns
- string target file
◆ getUserFullname()
| getUserFullname |
( |
|
$user_id | ) |
|
get ILIAS user full name
returns full name of given ILIAS user ID @access public
- Parameters
-
- Returns
- string full name
◆ getUserModules()
get user modules
returns content modules from current users private category @access public
- Returns
- array list of content modules
◆ getUserModuleViewPermission()
| getUserModuleViewPermission |
( |
|
$module_id | ) |
|
get user permissions for ILIAS module
returns allowed operations for current user and given module @access public
- Parameters
-
| string | $module_id | module-id |
- Returns
- boolean returns false on error
◆ getUserPrefix()
get user prefix
returns user prefix @access public
- Returns
- string user prefix
◆ isActive()
get active-setting
returns true, if ILIAS installation is active @access public
- Returns
- boolean active-setting
◆ isAllowedModuleType()
| isAllowedModuleType |
( |
|
$module_type | ) |
|
check is module type is allowed
returns true if module type is allowed for current ILIAS installation @access public
◆ loadSettings()
load settings
load ILIAS settings from config table @access public
- Returns
- string messages
◆ newUser()
create new user-account
creates new ILIAS user account @access public
- Returns
- boolean returns false
◆ newUserCategory()
create new user category
creates new ILIAS user account @access public
- Returns
- boolean returns false
◆ searchModules()
| searchModules |
( |
|
$search_key | ) |
|
search ILIAS modules
performs search for ILIAS modules @access public
- Returns
- boolean returns false
◆ setCourseModuleConnection()
| setCourseModuleConnection |
( |
|
$studip_course_id, |
|
|
|
$module_id, |
|
|
|
$module_type, |
|
|
|
$connection_mode, |
|
|
|
$write_permission_level |
|
) |
| |
set module connection
sets module connection to course @access 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
◆ storeSettings()
store settings
stores current ILIAS settings to config table. @access public
◆ unsetCourseModuleConnection()
| unsetCourseModuleConnection |
( |
|
$studip_course_id, |
|
|
|
$module_id, |
|
|
|
$module_type |
|
) |
| |
unset module connection
unsets ILIAS module connection with course @access public
- Parameters
-
| string | $studip_course_id | studip range id |
| string | $module_id | ILIAS ref id |
| string | $module_type | type of ILIAS module |
◆ updateCourseConnections()
| updateCourseConnections |
( |
|
$course_id | ) |
|
check connected modules and update connections
checks if there are modules in the course that are not connected to the seminar @access public
- Parameters
-
| string | $course_id | course-id |
- Returns
- boolean successful
◆ updateUser()
update given user account
updates ILIAS user data @access public
- Parameters
-
- Returns
- boolean returns false
◆ $course_modules
◆ $crs_roles
◆ $error
◆ $global_roles
◆ $ilias_config
◆ $ilias_int_version
◆ $ilias_interface_config
◆ $index
◆ $soap_client
◆ $user
◆ $user_modules
◆ CRS_ADMIN_ROLE
| const CRS_ADMIN_ROLE = '1' |
◆ CRS_MEMBER_ROLE
| const CRS_MEMBER_ROLE = '2' |
◆ CRS_NO_NOTIFICATION
| const CRS_NO_NOTIFICATION = '2' |
◆ CRS_NOTIFICATION
| const CRS_NOTIFICATION = '1' |
◆ CRS_PASSED_VALUE
| const CRS_PASSED_VALUE = '0' |
◆ CRS_TUTOR_ROLE
| const CRS_TUTOR_ROLE = '3' |
◆ OPERATION_COPY
| const OPERATION_COPY = 'copy' |
◆ OPERATION_DELETE
| const OPERATION_DELETE = 'delete' |
◆ OPERATION_READ
| const OPERATION_READ = 'read' |
◆ OPERATION_VISIBLE
| const OPERATION_VISIBLE = 'visible' |
◆ OPERATION_WRITE
| const OPERATION_WRITE = 'write' |
The documentation for this class was generated from the following file: