ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilUserActionContextFactory.php
Go to the documentation of this file.
1<?php
2
24{
25 protected static array $contexts = [
26 [
27 "component" => "components/ILIAS/Awareness",
28 "class" => "ilAwarenessUserActionContext"
29 ],
30 [
31 "component" => "components/ILIAS/User/Gallery",
32 "class" => "ilGalleryUserActionContext"
33 ]
34 ];
35
41 public static function getAllActionContexts(): array
42 {
43 $contexts = [];
44
45 foreach (self::$contexts as $p) {
46 $dir = $p["dir"] ?? "classes";
47 $contexts[] = new $p["class"]();
48 }
49
50 return $contexts;
51 }
52}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getAllActionContexts()
Get all action contexts.