ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjCategoryAccess Class Reference

Class ilObjCategoryAccess. More...

+ Inheritance diagram for ilObjCategoryAccess:
+ Collaboration diagram for ilObjCategoryAccess:

Public Member Functions

 _getCommands ()
 get commands More...
 
 _checkGoto ($a_target)
 check whether goto script will succeed More...
 
- Public Member Functions inherited from ilObjectAccess
 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 
 _getCommands ()
 get commands More...
 
 _checkGoto ($a_target)
 check whether goto script will succeed More...
 
 _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectAccess
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten. More...
 

Detailed Description

Class ilObjCategoryAccess.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 16 of file class.ilObjCategoryAccess.php.

Member Function Documentation

◆ _checkGoto()

ilObjCategoryAccess::_checkGoto (   $a_target)

check whether goto script will succeed

Reimplemented from ilObjectAccess.

Definition at line 74 of file class.ilObjCategoryAccess.php.

75 {
76 global $ilAccess;
77
78 $t_arr = explode("_", $a_target);
79
80 if ($t_arr[0] != "cat" || ((int) $t_arr[1]) <= 0)
81 {
82 return false;
83 }
84
85 if ($ilAccess->checkAccess("read", "", $t_arr[1]))
86 {
87 return true;
88 }
89 return false;
90 }

◆ _getCommands()

ilObjCategoryAccess::_getCommands ( )

get commands

this method returns an array of all possible commands/permission combinations

example:
$commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );

Reimplemented from ilObjectAccess.

Definition at line 31 of file class.ilObjCategoryAccess.php.

32 {
33 $commands = array();
34 $commands[] = array("permission" => "read", "cmd" => "render", "lang_var" => "show", "default" => true);
35
36
37 // begin-patch fm
38 include_once './Services/WebServices/FileManager/classes/class.ilFMSettings.php';
39 if(ilFMSettings::getInstance()->isEnabled())
40 {
41 $commands[] = array(
42 'permission' => 'read',
43 'cmd' => 'fileManagerLaunch',
44 'lang_var' => 'fm_start',
45 'enable_anonymous' => false
46 );
47 }
48 // end-patch fm
49
50 // BEGIN WebDAV
51 require_once ('Services/WebDAV/classes/class.ilDAVActivationChecker.php');
53 {
54 include_once './Services/WebDAV/classes/class.ilDAVUtils.php';
55 if(ilDAVUtils::getInstance()->isLocalPasswordInstructionRequired())
56 {
57 $commands[] = array('permission' => 'read', 'cmd' => 'showPasswordInstruction', 'lang_var' => 'mount_webfolder', 'enable_anonymous' => 'false');
58 }
59 else
60 {
61 $commands[] = array("permission" => "read", "cmd" => "mount_webfolder", "lang_var" => "mount_webfolder", "enable_anonymous" => "false");
62 }
63 }
64 // END WebDAV
65 $commands[] = array("permission" => "write", "cmd" => "enableAdministrationPanel", "lang_var" => "edit_content");
66 $commands[] = array("permission" => "write", "cmd" => "edit", "lang_var" => "settings");
67
68 return $commands;
69 }
static getInstance()
Get singleton instance.
static getInstance()
Get singleton instance.

References ilDAVActivationChecker\_isActive(), ilDAVUtils\getInstance(), and ilFMSettings\getInstance().

Referenced by ilObjCategoryReferenceAccess\_getCommands(), and ilObjCategoryListGUI\init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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