ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjIndividualAssessmentAccess.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 {
26  public static function _getCommands(): array
27  {
28  return [
29  ["permission" => "read", "cmd" => "", "lang_var" => "show", "default" => true],
30  ["permission" => "write", "cmd" => "edit", "lang_var" => "settings", "default" => false]
31  ];
32  }
33 
39  public static function getConditionOperators(): array
40  {
41  return [
44  ];
45  }
46 
50  public static function checkCondition(int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id): bool
51  {
52  switch ($a_operator) {
54  return ilIndividualAssessmentLPInterface::determineStatusOfMember($a_trigger_obj_id, $a_usr_id)
57  return ilIndividualAssessmentLPInterface::determineStatusOfMember($a_trigger_obj_id, $a_usr_id)
59  default:
60  return false;
61  }
62  }
63 }
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...