ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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/User/Actions/Contexts",
17 "class" => "ilAwarenessUserActionContext"
18 )
19 );
20
26 static function getAllActionContexts()
27 {
28 $contexts = array();
29
30 foreach (self::$contexts as $p)
31 {
32 $dir = (isset($p["dir"]))
33 ? $p["dir"]
34 : "classes";
35 include_once("./".$p["component"]."/".$dir."/class.".$p["class"].".php");
36 $contexts[] = new $p["class"]();
37 }
38
39 return $contexts;
40 }
41
42}
43
44?>
An exception for terminatinating execution or to throw for unit testing.
Factory for user action contexts.
static getAllActionContexts()
Get all action contexts.