ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjLTIConsumerAccess Class Reference
+ Inheritance diagram for ilObjLTIConsumerAccess:
+ Collaboration diagram for ilObjLTIConsumerAccess:

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 29 of file class.ilObjLTIConsumerAccess.php.

Member Function Documentation

◆ _getCommands()

static ilObjLTIConsumerAccess::_getCommands ( )
static
Returns
array<int, array>

Definition at line 34 of file class.ilObjLTIConsumerAccess.php.

Referenced by ilObjLTIConsumerListGUI\init().

34  : array
35  {
36  return array(
37  array(
38  "permission" => "read",
39  "cmd" => "launch",
40  "lang_var" => "",
41  "default" => true
42  ),
43  array(
44  'permission' => 'write',
45  'cmd' => 'ilLTIConsumerSettingsGUI::showSettings',
46  'lang_var' => 'settings'
47  )
48  );
49  }
+ Here is the caller graph for this function:

◆ checkCondition()

static ilObjLTIConsumerAccess::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 61 of file class.ilObjLTIConsumerAccess.php.

References ilLPStatus\_hasUserCompleted(), and ilConditionHandler\OPERATOR_PASSED.

61  : bool
62  {
63  if ($a_operator == ilConditionHandler::OPERATOR_PASSED) {
64  return ilLPStatus::_hasUserCompleted($a_trigger_obj_id, $a_usr_id);
65  }
66 
67  return false;
68  }
static _hasUserCompleted(int $a_obj_id, int $a_user_id)
Lookup user object completion.
+ Here is the call graph for this function:

◆ getConditionOperators()

static ilObjLTIConsumerAccess::getConditionOperators ( )
static
Returns
string[]

Implements ilConditionHandling.

Definition at line 54 of file class.ilObjLTIConsumerAccess.php.

References ilConditionHandler\OPERATOR_PASSED.

54  : array
55  {
56  return [
58  ];
59  }

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