ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
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 }
Factory for user action contexts.
static getAllActionContexts()
Get all action contexts.