ILIAS  release_8 Revision v8.24
ilObjCmiXapiAccess Class Reference
+ Inheritance diagram for ilObjCmiXapiAccess:
+ Collaboration diagram for ilObjCmiXapiAccess:

Static Public Member Functions

static _getCommands ()
 
static getConditionOperators ()
 
static checkCondition (int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id)
 check condition for a specific user and object More...
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
static _isOffline (int $obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData (array $obj_ids, array $ref_ids)
 Preload data. More...
 
static getConditionOperators ()
 Returns an array with valid operators for the specific object type. More...
 
static checkCondition (int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id)
 check condition for a specific user and object More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

Definition at line 30 of file class.ilObjCmiXapiAccess.php.

Member Function Documentation

◆ _getCommands()

static ilObjCmiXapiAccess::_getCommands ( )
static
Returns
array<int, mixed[]>

Reimplemented from ilObjectAccess.

Definition at line 35 of file class.ilObjCmiXapiAccess.php.

35 : array
36 {
37 return [
38 [
39 "permission" => "read",
40 "cmd" => "launch",
41 "lang_var" => "show",
42 "default" => true
43 ],
44 [
45 'permission' => 'write',
46 'cmd' => 'ilCmiXapiSettingsGUI::show',
48 ]
49 ];
50 }
return true

References ilObjCmiXapiGUI\TAB_ID_SETTINGS, and true.

Referenced by ilObjCmiXapiListGUI\init().

+ Here is the caller graph for this function:

◆ checkCondition()

static ilObjCmiXapiAccess::checkCondition ( int  $a_trigger_obj_id,
string  $a_operator,
string  $a_value,
int  $a_usr_id 
)
static

check condition for a specific user and object

Implements ilConditionHandling.

Definition at line 63 of file class.ilObjCmiXapiAccess.php.

63 : bool
64 {
65 switch ($a_operator) {
67 return ilLPStatus::_lookupStatus($a_trigger_obj_id, $a_usr_id) == ilLPStatus::LP_STATUS_FAILED_NUM;
68
70 return ilLPStatus::_hasUserCompleted($a_trigger_obj_id, $a_usr_id);
71 }
72
73 return false;
74 }
static _hasUserCompleted(int $a_obj_id, int $a_user_id)
Lookup user object completion.
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status.
const LP_STATUS_FAILED_NUM

References ilLPStatus\_hasUserCompleted(), ilLPStatus\_lookupStatus(), ilLPStatus\LP_STATUS_FAILED_NUM, ilConditionHandler\OPERATOR_FAILED, and ilConditionHandler\OPERATOR_FINISHED.

+ Here is the call graph for this function:

◆ getConditionOperators()

static ilObjCmiXapiAccess::getConditionOperators ( )
static

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