ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAccessInfo.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
27{
28 public const IL_NO_PERMISSION = 'no_permission';
29 public const IL_MISSING_PRECONDITION = "missing_precondition";
30 public const IL_NO_OBJECT_ACCESS = "no_object_access";
31 public const IL_NO_PARENT_ACCESS = "no_parent_access";
32 public const IL_DELETED = 'object_deleted';
33 public const IL_STATUS_INFO = 'object_status';
35
36 private array $info_items = [];
37
38 public function clear(): void
39 {
40 $this->info_items = [];
41 }
42
46 public function addInfoItem(string $a_type, string $a_text, string $a_data = ""): void
47 {
48 $this->info_items[] = [
49 "type" => $a_type,
50 "text" => $a_text,
51 "data" => $a_data
52 ];
53 }
54
58 public function getInfoItems(): array
59 {
60 return $this->info_items;
61 }
62}
class ilAccessInfo
const IL_MISSING_PRECONDITION
getInfoItems()
get all info items
addInfoItem(string $a_type, string $a_text, string $a_data="")
add an info item