ILIAS  release_8 Revision v8.24
class.ilUserActionContextFactory.php
Go to the documentation of this file.
1<?php
2
24{
25 protected static array $contexts = array(
26 array(
27 "component" => "Services/Awareness",
28 "class" => "ilAwarenessUserActionContext"
29 ),
30 array(
31 "component" => "Services/User/Gallery",
32 "class" => "ilGalleryUserActionContext"
33 )
34 );
35
41 public static function getAllActionContexts(): array
42 {
43 $contexts = array();
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.