ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\GlobalScreen\ScreenContext\ContextServices Class Reference

Class ContextServices. More...

+ Collaboration diagram for ILIAS\GlobalScreen\ScreenContext\ContextServices:

Public Member Functions

 __construct ()
 ContextServices constructor. More...
 
 stack ()
 
 current ()
 
 claim ()
 
 collection ()
 
 availableContexts ()
 

Private Attributes

ContextRepository $context_repository
 
ContextCollection $collection
 

Detailed Description

Class ContextServices.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 30 of file ContextServices.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\ScreenContext\ContextServices::__construct ( )

ContextServices constructor.

Definition at line 39 of file ContextServices.php.

40 {
41 $this->context_repository = new ContextRepository();
42 $this->collection = new CalledContexts($this->context_repository);
43 }
The Collection of all available Contexts in the System.

References ILIAS\GlobalScreen\ScreenContext\ContextServices\collection().

+ Here is the call graph for this function:

Member Function Documentation

◆ availableContexts()

ILIAS\GlobalScreen\ScreenContext\ContextServices::availableContexts ( )

◆ claim()

ILIAS\GlobalScreen\ScreenContext\ContextServices::claim ( )
Returns
CalledContexts

Definition at line 64 of file ContextServices.php.

64 : CalledContexts
65 {
66 return $this->collection;
67 }

References ILIAS\GlobalScreen\ScreenContext\ContextServices\$collection.

◆ collection()

ILIAS\GlobalScreen\ScreenContext\ContextServices::collection ( )

◆ current()

ILIAS\GlobalScreen\ScreenContext\ContextServices::current ( )
Returns
ScreenContext

Definition at line 56 of file ContextServices.php.

56 : ScreenContext
57 {
58 return $this->collection->current();
59 }

References ILIAS\GlobalScreen\ScreenContext\ContextServices\collection().

+ Here is the call graph for this function:

◆ stack()

ILIAS\GlobalScreen\ScreenContext\ContextServices::stack ( )
Returns
CalledContexts

Definition at line 48 of file ContextServices.php.

48 : CalledContexts
49 {
50 return $this->collection;
51 }

References ILIAS\GlobalScreen\ScreenContext\ContextServices\$collection.

Field Documentation

◆ $collection

ContextCollection ILIAS\GlobalScreen\ScreenContext\ContextServices::$collection
private

◆ $context_repository

ContextRepository ILIAS\GlobalScreen\ScreenContext\ContextServices::$context_repository
private

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