ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjLearningModuleAccess Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjLearningModuleAccess:
+ Collaboration diagram for ilObjLearningModuleAccess:

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from ilObjContentObjectAccess
 __construct ()
 
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 
- 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)
 

Static Public Member Functions

static getConditionOperators ()
 Get possible conditions operators. More...
 
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 _lookupSetting (string $a_set)
 
static _getCommands ()
 
- Static Public Member Functions inherited from ilObjContentObjectAccess
static _getLastAccessedPage (int $a_ref_id, int $a_user_id=0)
 
static _checkGoto (string $target)
 
static _preloadData (array $obj_ids, array $ref_ids)
 
static isInfoEnabled (int $obj_id)
 
- 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...
 

Static Protected Attributes

static array $lm_set = null
 

Additional Inherited Members

- Static Public Attributes inherited from ilObjContentObjectAccess
static array $lo_access
 
- Protected Attributes inherited from ilObjContentObjectAccess
ilObjUser $user
 
ilLanguage $lng
 
ilRbacSystem $rbacsystem
 
ilAccessHandler $access
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 22 of file class.ilObjLearningModuleAccess.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjLearningModuleAccess::__construct ( )

Definition at line 26 of file class.ilObjLearningModuleAccess.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\access().

27  {
28  global $DIC;
30 
31  $this->access = $DIC->access();
32  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ _getCommands()

static ilObjLearningModuleAccess::_getCommands ( )
static

Definition at line 61 of file class.ilObjLearningModuleAccess.php.

References ilObjContentObjectAccess\$access, $ref_id, $results, ilObject\_getAllReferences(), ilWACCheckingClass\canBeDelivered(), and ilWACPath\getPath().

Referenced by ilObjLearningModuleListGUI\init().

61  : array
62  {
63  if (self::_lookupSetting("lm_starting_point") == "first") {
64  $commands = array(
65  array("permission" => "read", "cmd" => "view", "lang_var" => "show",
66  "default" => true),
67  array("permission" => "read", "cmd" => "continue", "lang_var" => "continue_work")
68  );
69  } else {
70  $commands = array(
71  array("permission" => "read", "cmd" => "continue", "lang_var" => "continue_work", "default" => true)
72  );
73  }
74  $commands[] = array("permission" => "write", "cmd" => "edit", "lang_var" => "edit_content");
75  $commands[] = array("permission" => "write", "cmd" => "properties", "lang_var" => "settings");
76 
77  return $commands;
78  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupSetting()

static ilObjLearningModuleAccess::_lookupSetting ( string  $a_set)
static

Definition at line 51 of file class.ilObjLearningModuleAccess.php.

References $lm_set, and null.

Referenced by ilObjContentObjectGUI\_goto().

51  : ?string
52  {
53  if (!is_array(self::$lm_set)) {
54  $lm_set = new ilSetting("lm");
55  self::$lm_set = $lm_set->getAll();
56  }
57 
58  return self::$lm_set[$a_set] ?? null;
59  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$lm_set
+ Here is the caller graph for this function:

◆ checkCondition()

static ilObjLearningModuleAccess::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 45 of file class.ilObjLearningModuleAccess.php.

45  : bool
46  {
47  return true;
48  }

◆ getConditionOperators()

static ilObjLearningModuleAccess::getConditionOperators ( )
static

Get possible conditions operators.

Implements ilConditionHandling.

Definition at line 37 of file class.ilObjLearningModuleAccess.php.

37  : array
38  {
39  // currently only one mode "ilConditionHandler::OPERATOR_LP"
40  // which is automatically added by condition handling, if lp is activated
41  return array();
42  }

Field Documentation

◆ $lm_set

array ilObjLearningModuleAccess::$lm_set = null
staticprotected

Definition at line 24 of file class.ilObjLearningModuleAccess.php.


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