ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjLTIConsumerAccess.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
15{
16 public static function _getCommands()
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 }
34
35 public static function getConditionOperators()
36 {
37 return [
39 ];
40 }
41
42 public static function checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
43 {
44 switch ($a_operator) {
46 return ilLPStatus::_hasUserCompleted($a_trigger_obj_id, $a_usr_id);
47 }
48
49 return false;
50 }
51}
An exception for terminatinating execution or to throw for unit testing.
static _hasUserCompleted($a_obj_id, $a_user_id)
Lookup user object completion.
static checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
check condition for a specific user and object
static getConditionOperators()
Returns an array with valid operators for the specific object type.
Class ilObjectAccess.
Interface for condition handling.