ILIAS  release_8 Revision v8.24
class.ilObjIndividualAssessmentAccess.php
Go to the documentation of this file.
1<?php
2
3declare(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}
static determineStatusOfMember(int $iass_id, int $usr_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface for condition handling.