ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilObjLearningModuleAccess.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Modules/LearningModule/classes/class.ilObjContentObjectAccess.php");
6include_once './Services/AccessControl/interfaces/interface.ilConditionHandling.php';
7
18{
22 public static function getConditionOperators()
23 {
24 // currently only one mode "ilConditionHandler::OPERATOR_LP"
25 // which is automatically added by condition handling, if lp is activated
26 return array();
27 }
28
29
38 public static function checkCondition($a_trigger_obj_id,$a_operator,$a_value,$a_usr_id)
39 {
40 return TRUE;
41 }
42
55 function _getCommands()
56 {
57 $commands = array
58 (
59 array("permission" => "read", "cmd" => "view", "lang_var" => "show",
60 "default" => true),
61 array("permission" => "read", "cmd" => "continue", "lang_var" => "continue_work"),
62 array("permission" => "write", "cmd" => "edit", "lang_var" => "edit_content"),
63 array("permission" => "write", "cmd" => "properties", "lang_var" => "settings")
64 );
65
66 return $commands;
67 }
68
69}
70
71?>
Class ilObjContentObjectAccess.
Class ilObjLearningModuleAccess.
static checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
check condition
static getConditionOperators()
Get possible conditions operators.
Interface for condition handling.