ILIAS
Release_4_2_x_branch Revision 61807
◀ 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
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
?>
classes
class.ilObjectAccess.php
Generated on Fri Apr 22 2016 19:03:43 for ILIAS by
1.8.1.2 (using
Doxyfile
)