35    public static function checkCondition($a_exc_id, $a_operator, $a_value, $a_usr_id)
 
   37        switch ($a_operator) {
 
   71            array(
"permission" => 
"read", 
"cmd" => 
"showOverview", 
"lang_var" => 
"show",
 
   73            array(
"permission" => 
"write", 
"cmd" => 
"listAssignments", 
"lang_var" => 
"edit_assignments"),
 
   74            array(
"permission" => 
"write", 
"cmd" => 
"edit", 
"lang_var" => 
"settings")
 
   91        $q = 
"SELECT id, time_stamp, deadline2, peer_dl" .
 
   92            " FROM exc_assignment WHERE exc_id = " . 
$ilDB->quote($a_obj_id, 
"integer") .
 
   93            " AND (time_stamp > " . 
$ilDB->quote(time(), 
"integer") .
 
   94            " OR (peer_dl > " . 
$ilDB->quote(time(), 
"integer") .
 
   95            " AND peer > " . 
$ilDB->quote(0, 
"integer") . 
"))";
 
   96        $set = 
$ilDB->query($q);
 
   97        while ($row = 
$ilDB->fetchAssoc($set)) {
 
   98            if ($row[
"time_stamp"] > time() &&
 
   99                ($row[
"time_stamp"] < $dl || !$dl)) {
 
  100                $dl = $row[
"time_stamp"];
 
  109            if ($row[
"peer_dl"] > time() &&
 
  110                ($row[
"peer_dl"] < $dl || !$dl)) {
 
  111                $dl = $row[
"peer_dl"];
 
  113            $cnt[$row[
"id"]] = 
true;
 
  124            "cnt" => 
sizeof($cnt)
 
  135        $ilAccess = 
$DIC->access();
 
  137        $t_arr = explode(
"_", $a_target);
 
  139        if ($t_arr[0] != 
"exc" || ((
int) $t_arr[1]) <= 0) {
 
  143        if ($ilAccess->checkAccess(
"read", 
"", $t_arr[1]) ||
 
  144            $ilAccess->checkAccess(
"visible", 
"", $t_arr[1])) {
 
  166        preg_match(
"/\\/poll_([\\d]*)\\//uism", $ilWACPath->
getPath(), 
$results);
 
  169            if ($ilAccess->checkAccess(
'read', 
'', $ref_id)) {
 
An exception for terminatinating execution or to throw for unit testing.
@classDescription Date and time handling
static _lookupStatus($a_obj_id, $a_user_id)
Lookup current status (notgraded|passed|failed)
Class ilObjExerciseAccess.
static _checkGoto($a_target)
check whether goto script will succeed
static _getCommands()
get commands
static checkCondition($a_exc_id, $a_operator, $a_value, $a_usr_id)
check condition
canBeDelivered(ilWACPath $ilWACPath)
static getConditionOperators()
Get possible conditions operators.
static _lookupRemainingWorkingTimeString($a_obj_id)
static _getAllReferences($a_id)
get all reference ids of object
static period2String(ilDateTime $a_from, $a_to=null)
Return a string of time period.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface for condition handling.