ILIAS  release_8 Revision v8.24
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 29 of file ContextServices.php.

Constructor & Destructor Documentation

◆ __construct()

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

ContextServices constructor.

Definition at line 38 of file ContextServices.php.

39 {
40 $this->context_repository = new ContextRepository();
41 $this->collection = new CalledContexts($this->context_repository);
42 }
Class ContextRepository 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 63 of file ContextServices.php.

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

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

◆ collection()

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

◆ current()

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

Definition at line 55 of file ContextServices.php.

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

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 47 of file ContextServices.php.

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

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: