ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUserActionContextFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilUserActionContextFactory:

Static Public Member Functions

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

Static Protected Attributes

static array $contexts
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Factory for user action contexts

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 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 41 of file class.ilUserActionContextFactory.php.

References $contexts.

41  : array
42  {
43  $contexts = array();
44 
45  foreach (self::$contexts as $p) {
46  $dir = $p["dir"] ?? "classes";
47  $contexts[] = new $p["class"]();
48  }
49 
50  return $contexts;
51  }

Field Documentation

◆ $contexts

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

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

Referenced by getAllActionContexts().


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