ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUserActionContextFactory Class Reference

Factory for user action contexts. More...

+ Collaboration diagram for ilUserActionContextFactory:

Static Public Member Functions

static getAllActionContexts ()
 Get all action contexts. More...
 

Static Protected Attributes

static $contexts
 

Detailed Description

Factory for user action contexts.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilUserActionContextFactory.php.

Member Function Documentation

◆ getAllActionContexts()

static ilUserActionContextFactory::getAllActionContexts ( )
static

Get all action contexts.

Returns
array[ilUserActionContext] all providers

Definition at line 30 of file class.ilUserActionContextFactory.php.

References $contexts, and array.

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  }
Create styles array
The data for the language used.

Field Documentation

◆ $contexts

ilUserActionContextFactory::$contexts
staticprotected
Initial value:
"component" => "Services/Awareness",
"class" => "ilAwarenessUserActionContext"
),
"component" => "Services/User/Gallery",
"class" => "ilGalleryUserActionContext"
)
)

Definition at line 14 of file class.ilUserActionContextFactory.php.

Referenced by getAllActionContexts().


The documentation for this class was generated from the following file: