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, deadline2, 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))
111 (
$row[
"time_stamp"] < $dl || !$dl))
113 $dl =
$row[
"time_stamp"];
123 (
$row[
"peer_dl"] < $dl || !$dl))
125 $dl =
$row[
"peer_dl"];
127 $cnt[
$row[
"id"]] =
true;
139 "cnt" =>
sizeof($cnt)
150 $t_arr = explode(
"_", $a_target);
152 if ($t_arr[0] !=
"exc" || ((
int) $t_arr[1]) <= 0)
157 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
static _checkGoto($a_target)
check whether goto script will succeed
static getConditionOperators()
Get possible conditions operators.
Interface for condition handling.
static checkCondition($a_exc_id, $a_operator, $a_value, $a_usr_id)
check condition
static _lookupStatus($a_obj_id, $a_user_id)
Lookup current status (notgraded|passed|failed)
static period2String(ilDateTime $a_from, $a_to=null)
Return a string of time period.
static _lookupRemainingWorkingTimeString($a_obj_id)
Create styles array
The data for the language used.
Class ilObjExerciseAccess.
static _getCommands()
get commands
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.