5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
28 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
34 $a_user_id = $ilUser->getId();
38 if(!self::_lookupOnline($a_obj_id) &&
39 !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
55 $result = $ilDB->query(
"SELECT * FROM il_poll".
56 " WHERE id = ".$ilDB->quote($a_obj_id,
"integer"));
58 return $row[
"online_status"];
70 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
72 switch($item[
'timing_type'])
75 if(time() < $item[
'timing_start'] or
76 time() > $item[
'timing_end'])
103 array(
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"show",
"default" =>
true),
104 array(
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit"),
118 $t_arr = explode(
"_", $a_target);
120 if ($t_arr[0] !=
"poll" || ((
int) $t_arr[1]) <= 0)
125 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))