ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjIndividualAssessmentAccess.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 
23 {
27  public static function _getCommands(): array
28  {
29  return [
30  ["permission" => "read", "cmd" => "", "lang_var" => "show", "default" => true],
31  ["permission" => "write", "cmd" => "edit", "lang_var" => "settings", "default" => false]
32  ];
33  }
34 
40  public static function getConditionOperators(): array
41  {
42  return [
45  ];
46  }
47 
51  public static function checkCondition(int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id): bool
52  {
53  switch ($a_operator) {
55  return ilIndividualAssessmentLPInterface::determineStatusOfMember($a_trigger_obj_id, $a_usr_id)
58  return ilIndividualAssessmentLPInterface::determineStatusOfMember($a_trigger_obj_id, $a_usr_id)
60  default:
61  return false;
62  }
63  }
64 }
Interface for condition handling.
static determineStatusOfMember(int $iass_id, int $usr_id)
static checkCondition(int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id)
check condition for a specific user and object
static getConditionOperators()
ilConditionHandling implementation