ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 global $DIC; /* @var \ILIAS\DI\Container $DIC */
38
39 $commands = array(
40 array(
41 "permission" => "read",
42 "cmd" => "infoScreen",
43 "lang_var" => "infoScreen",
44 "default" => true
45 ),
46 array(
47 'permission' => 'write',
48 'cmd' => 'ilCmiXapiSettingsGUI::show',
50 )
51 );
52
53 return $commands;
54 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ilObjCmiXapiGUI\TAB_ID_SETTINGS.

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 67 of file class.ilObjCmiXapiAccess.php.

67 : bool
68 {
69 switch ($a_operator) {
71 return ilLPStatus::_lookupStatus($a_trigger_obj_id, $a_usr_id) == ilLPStatus::LP_STATUS_FAILED_NUM;
72
74 return ilLPStatus::_hasUserCompleted($a_trigger_obj_id, $a_usr_id);
75 }
76
77 return false;
78 }
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: