5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
6 require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
45 $this->
user = $DIC->user();
46 $this->lng = $DIC->language();
47 $this->rbacsystem = $DIC->rbac()->system();
48 $this->access = $DIC->access();
63 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
70 if ($a_user_id ==
"") {
75 if (!self::_lookupOnline($a_obj_id) &&
76 !
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
91 $ilDB = $DIC->database();
94 " WHERE id = " .
$ilDB->quote($a_obj_id,
"integer"));
96 return $row[
"online_status"];
108 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
110 switch ($item[
'timing_type']) {
112 if (
time() < $item[
'timing_start'] or
113 time() > $item[
'timing_end']) {
139 array(
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"show",
"default" =>
true),
140 array(
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit"),
154 $ilAccess = $DIC->access();
156 $t_arr = explode(
"_", $a_target);
158 if ($t_arr[0] !=
"poll" || ((
int) $t_arr[1]) <= 0) {
162 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
177 preg_match(
"/\\/poll_([\\d]*)\\//uism", $ilWACPath->
getPath(),
$results);
180 if ($ilAccess->checkAccess(
'read',
'', $ref_id)) {
static _getCommands()
get commands
const IL_NO_OBJECT_ACCESS
static _isActivated($a_ref_id)
Is activated?
static getItem($a_ref_id)
Get item data.
__construct()
Constructor.
_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 _getAllReferences($a_id)
Class ilWACCheckingClass.
Create styles array
The data for the language used.
canBeDelivered(ilWACPath $ilWACPath)
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static _checkGoto($a_target)
check whether goto script will succeed
static _lookupOnline($a_obj_id)
get status