ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjectAccess.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
17{
33 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = "")
34 {
35 global $ilUser, $ilAccess;
36
37 if ($a_user_id == "")
38 {
39 $a_user_id = $ilUser->getId();
40 }
41
42 // add no access info item and return false if access is not granted
43 // $ilAccess->addInfoItem(IL_NO_OBJECT_ACCESS, $a_text, $a_data = "");
44 //
45 // for all RBAC checks use checkAccessOfUser instead the normal checkAccess-method:
46 // $rbacsystem->checkAccessOfUser($a_user_id, $a_permission, $a_ref_id)
47
48 return true;
49 }
50
56 public function _checkCondition($a_obj_id, $a_operator, $a_value, $a_usr_id)
57 {
58 switch($a_operator)
59 {
60 default:
61 return true;
62 }
63 }
64
77 function _getCommands()
78 {
79 $commands = array
80 (
81 array()
82 );
83
84 return $commands;
85 }
86
90 function _checkGoto($a_target)
91 {
92 global $ilAccess;
93
94 $t_arr = explode("_", $a_target);
95
96 if ($ilAccess->checkAccess("read", "", $t_arr[1]))
97 {
98 return true;
99 }
100 return false;
101 }
102
111 static function _isOffline($a_obj_id)
112 {
113 return null;
114 }
115
121 function _preloadData($a_obj_ids, $a_ref_ids)
122 {
123
124 }
125
126}
127
128?>
Class ilObjectAccess.
_checkCondition($a_obj_id, $a_operator, $a_value, $a_usr_id)
check condition
_getCommands()
get commands
_checkGoto($a_target)
check whether goto script will succeed
_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::checkAcce...
static _isOffline($a_obj_id)
Type-specific implementation of general status, has to be overwritten.
_preloadData($a_obj_ids, $a_ref_ids)
Preload data.
global $ilUser
Definition: imgupload.php:15