ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjIndividualAssessmentAccess.php
Go to the documentation of this file.
1<?php
2
19declare(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}
static determineStatusOfMember(int $iass_id, int $usr_id)
static getConditionOperators()
ilConditionHandling implementation
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 _getCommands()
get commandsthis method returns an array of all possible commands/permission combinationsexample: $co...
Class ilObjectAccess.
Interface for condition handling.