ILIAS
Release_4_1_x_branch Revision 61804
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
16
class
ilObjectAccess
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
function
_checkCondition
($a_obj_id, $a_operator, $a_value, $a_usr_id = 0)
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
103
}
104
105
?>
classes
class.ilObjectAccess.php
Generated on Thu Apr 21 2016 19:02:26 for ILIAS by
1.8.1.2 (using
Doxyfile
)