ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 26 of file class.ilUserActionContextFactory.php.

References $contexts, and array.

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

Field Documentation

◆ $contexts

ilUserActionContextFactory::$contexts
staticprotected
Initial value:
"component" => "Services/User/Actions/Contexts",
"class" => "ilAwarenessUserActionContext"
)
)

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

Referenced by getAllActionContexts().


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