ILIAS  release_8 Revision v8.23
ilObjMediaPoolAccess 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 ilObjMediaPoolAccess:
+ Collaboration diagram for ilObjMediaPoolAccess:

Static Public Member Functions

static _getCommands ()
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
- 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...
 

Additional Inherited Members

- 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)
 

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 Class ilObjMediaPoolAccess

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

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

Member Function Documentation

◆ _checkGoto()

static ilObjMediaPoolAccess::_checkGoto ( string  $target)
static

check whether goto script will succeed

Definition at line 43 of file class.ilObjMediaPoolAccess.php.

References $DIC.

43  : bool
44  {
45  global $DIC;
46 
47  $ilAccess = $DIC->access();
48 
49  $t_arr = explode("_", $target);
50 
51  if ($ilAccess->checkAccess("read", "", $t_arr[1]) ||
52  $ilAccess->checkAccess("visible", "", $t_arr[1])) {
53  return true;
54  }
55  return false;
56  }
global $DIC
Definition: feed.php:28

◆ _getCommands()

static ilObjMediaPoolAccess::_getCommands ( )
static

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

Referenced by ilObjMediaPoolListGUI\init().

26  : array
27  {
28  $commands = array(
29  array("permission" => "read", "cmd" => "", "lang_var" => "show",
30  "default" => true),
31  array("permission" => "write", "cmd" => "", "lang_var" => "edit_content",
32  "default" => false),
33  array("permission" => "write", "cmd" => "edit", "lang_var" => "settings",
34  "default" => false)
35  );
36 
37  return $commands;
38  }
+ Here is the caller graph for this function:

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