ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilUserActionContextFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
14 protected static $contexts = array(
15 array(
16 "component" => "Services/Awareness",
17 "class" => "ilAwarenessUserActionContext"
18 ),
19 array(
20 "component" => "Services/User/Gallery",
21 "class" => "ilGalleryUserActionContext"
22 )
23 );
24
30 public static function getAllActionContexts()
31 {
32 $contexts = array();
33
34 foreach (self::$contexts as $p) {
35 $dir = (isset($p["dir"]))
36 ? $p["dir"]
37 : "classes";
38 include_once("./" . $p["component"] . "/" . $dir . "/class." . $p["class"] . ".php");
39 $contexts[] = new $p["class"]();
40 }
41
42 return $contexts;
43 }
44}
An exception for terminatinating execution or to throw for unit testing.
Factory for user action contexts.
static getAllActionContexts()
Get all action contexts.