ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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...
 

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)
 

Detailed Description

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

Member Function Documentation

◆ _getCommands()

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

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

References $DIC, and ilObjCmiXapiGUI\TAB_ID_SETTINGS.

Referenced by ilObjCmiXapiListGUI\init().

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:22
+ 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.

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

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
+ Here is the call graph for this function:

◆ getConditionOperators()

static ilObjCmiXapiAccess::getConditionOperators ( )
static

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