4 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
5 include_once
'./Services/AccessControl/interfaces/interface.ilConditionHandling.php';
24 include_once
'./Services/AccessControl/classes/class.ilConditionHandler.php';
40 public static function checkCondition($a_exc_id,$a_operator,$a_value,$a_usr_id)
42 include_once
'./Services/AccessControl/classes/class.ilConditionHandler.php';
43 include_once
'./Modules/Exercise/classes/class.ilExerciseMembers.php';
84 array(
"permission" =>
"read",
"cmd" =>
"showOverview",
"lang_var" =>
"show",
86 array(
"permission" =>
"write",
"cmd" =>
"listAssignments",
"lang_var" =>
"edit_assignments"),
87 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings")
102 $q =
"SELECT id, time_stamp, peer_dl".
103 " FROM exc_assignment WHERE exc_id = ".$ilDB->quote($a_obj_id,
"integer").
104 " AND (time_stamp > ".$ilDB->quote(time(),
"integer").
105 " OR (peer_dl > ".$ilDB->quote(time(),
"integer").
106 " AND peer > ".$ilDB->quote(0,
"integer").
"))";
107 $set = $ilDB->query($q);
108 while(
$row = $ilDB->fetchAssoc($set))
110 if(
$row[
"time_stamp"] > time() &&
111 (
$row[
"time_stamp"] < $dl || !$dl))
113 $dl =
$row[
"time_stamp"];
115 if(
$row[
"peer_dl"] > time() &&
116 (
$row[
"peer_dl"] < $dl || !$dl))
118 $dl =
$row[
"peer_dl"];
120 $cnt[
$row[
"id"]] =
true;
131 "cnt" =>
sizeof($cnt)
142 $t_arr = explode(
"_", $a_target);
144 if ($t_arr[0] !=
"exc" || ((
int) $t_arr[1]) <= 0)
149 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))