5 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObjectAccess.php");
6 include_once
'./Services/AccessControl/interfaces/interface.ilConditionHandling.php';
7 require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
8 require_once(
'./Services/Object/classes/class.ilObject2.php');
28 parent::__construct();
30 $this->access = $DIC->access();
57 public static function checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
91 if (self::_lookupSetting(
"lm_starting_point") ==
"first") {
93 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
95 array(
"permission" =>
"read",
"cmd" =>
"continue",
"lang_var" =>
"continue_work")
99 array(
"permission" =>
"read",
"cmd" =>
"continue",
"lang_var" =>
"continue_work",
"default" =>
true)
102 $commands[] =
array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit_content");
103 $commands[] =
array(
"permission" =>
"write",
"cmd" =>
"properties",
"lang_var" =>
"settings");
120 preg_match(
"/lm_data\\/lm_([0-9]*)\\//ui", $ilWACPath->
getPath(),
$results);
122 if ($ilAccess->checkAccess(
'read',
'', $ref_id)) {
canBeDelivered(ilWACPath $ilWACPath)
static _lookupSetting($a_set)
Interface for condition handling.
static getConditionOperators()
Get possible conditions operators.
static _getAllReferences($a_id)
__construct()
Constructor.
Class ilObjLearningModuleAccess.
Class ilObjContentObjectAccess.
Class ilWACCheckingClass.
static _getCommands()
get commands
Create styles array
The data for the language used.
static checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
check condition