32         $this->
user = $DIC->user();
    33         $this->
lng = $DIC->language();
    34         $this->
access = $DIC->access();
    35         $this->rbacsystem = $DIC->rbac()->system();
    55     public static function checkCondition(
int $a_trigger_obj_id, 
string $a_operator, 
string $a_value, 
int $a_usr_id): bool
    57         switch ($a_operator) {
    85             array(
"permission" => 
"read", 
"cmd" => 
"showOverview", 
"lang_var" => 
"show",
    87             array(
"permission" => 
"write", 
"cmd" => 
"listAssignments", 
"lang_var" => 
"edit_assignments"),
    88             array(
"permission" => 
"write", 
"cmd" => 
"edit", 
"lang_var" => 
"settings")
   100         $ilDB = $DIC->database();
   107         $q = 
"SELECT id, time_stamp, deadline2, peer_dl" .
   108             " FROM exc_assignment WHERE exc_id = " . 
$ilDB->quote($a_obj_id, 
"integer") .
   109             " AND (time_stamp > " . 
$ilDB->quote(time(), 
"integer") .
   110             " OR (peer_dl > " . 
$ilDB->quote(time(), 
"integer") .
   111             " AND peer > " . 
$ilDB->quote(0, 
"integer") . 
"))";
   113         while ($row = 
$ilDB->fetchAssoc($set)) {
   114             if ($row[
"time_stamp"] > time() &&
   115                 ($row[
"time_stamp"] < $dl || !$dl)) {
   116                 $dl = $row[
"time_stamp"];
   125             if ($row[
"peer_dl"] > time() &&
   126                 ($row[
"peer_dl"] < $dl || !$dl)) {
   127                 $dl = $row[
"peer_dl"];
   129             $cnt[$row[
"id"]] = 
true;
   151         $ilAccess = $DIC->access();
   153         $t_arr = explode(
"_", $a_target);
   155         if ($t_arr[0] != 
"exc" || ((
int) $t_arr[1]) <= 0) {
   158         return $ilAccess->checkAccess(
"read", 
"", $t_arr[1]) ||
   159             $ilAccess->checkAccess(
"visible", 
"", $t_arr[1]);
   176         if (self::_isOffline($obj_id)) {
   177             if (($permission === 
"visible" || $permission === 
"read") && !$rbacsystem->
checkAccessOfUser(
$user_id, 
'write', $ref_id)) {
 
const IL_NO_OBJECT_ACCESS
 
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 
static _checkGoto($a_target)
check whether goto script will succeed 
 
static getConditionOperators()
Get possible conditions operators. 
 
Interface for condition handling. 
 
canBeDelivered(ilWACPath $ilWACPath)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
checkAccessOfUser(int $a_user_id, string $a_operations, int $a_ref_id, string $a_type="")
 
static _lookupStatus(int $a_obj_id, int $a_user_id)
Lookup current status (notgraded|passed|failed) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getCommands()
get commands 
 
static checkCondition(int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id)
check condition 
 
static _lookupRemainingWorkingTimeString(int $a_obj_id)