ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilObjLTIConsumerAccess Class Reference
+ Inheritance diagram for ilObjLTIConsumerAccess:
+ Collaboration diagram for ilObjLTIConsumerAccess:

Static Public Member Functions

static _getCommands ()
 
static getConditionOperators ()
 Returns an array with valid operators for the specific object type. More...
 
static checkCondition ($a_trigger_obj_id, $a_operator, $a_value, $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 ($a_target)
 check whether goto script will succeed More...
 
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
More...
 

Detailed Description

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

Member Function Documentation

◆ _getCommands()

static ilObjLTIConsumerAccess::_getCommands ( )
static

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

Referenced by ilObjLTIConsumerListGUI\init().

17  {
18  $commands = array(
19  array(
20  "permission" => "read",
21  "cmd" => "infoScreen",
22  "lang_var" => "",
23  "default" => true
24  ),
25  array(
26  'permission' => 'write',
27  'cmd' => 'ilLTIConsumerSettingsGUI::showSettings',
28  'lang_var' => 'settings'
29  )
30  );
31 
32  return $commands;
33  }
+ Here is the caller graph for this function:

◆ checkCondition()

static ilObjLTIConsumerAccess::checkCondition (   $a_trigger_obj_id,
  $a_operator,
  $a_value,
  $a_usr_id 
)
static

check condition for a specific user and object

Parameters
type$a_trigger_obj_id
type$a_operator
type$a_value
type$a_usr_id

Implements ilConditionHandling.

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

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

43  {
44  switch ($a_operator) {
46  return ilLPStatus::_hasUserCompleted($a_trigger_obj_id, $a_usr_id);
47  }
48 
49  return false;
50  }
static _hasUserCompleted($a_obj_id, $a_user_id)
Lookup user object completion.
+ Here is the call graph for this function:

◆ getConditionOperators()

static ilObjLTIConsumerAccess::getConditionOperators ( )
static

Returns an array with valid operators for the specific object type.

Implements ilConditionHandling.

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

References ilConditionHandler\OPERATOR_PASSED.

36  {
37  return [
39  ];
40  }

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