ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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

 $context_repository
 
 $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 11 of file ContextServices.php.

Constructor & Destructor Documentation

◆ __construct()

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

ContextServices constructor.

Definition at line 27 of file ContextServices.php.

28 {
29 $this->context_repository = new ContextRepository();
30 $this->collection = new CalledContexts($this->context_repository);
31 }

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

55 : CalledContexts
56 {
57 return $this->collection;
58 }

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

◆ collection()

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

Definition at line 64 of file ContextServices.php.

65 {
66 return new ContextCollection($this->context_repository);
67 }

Referenced by ILIAS\GlobalScreen\ScreenContext\ContextServices\__construct(), and ILIAS\GlobalScreen\ScreenContext\ContextServices\current().

+ Here is the caller graph for this function:

◆ current()

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

Definition at line 46 of file ContextServices.php.

46 : ScreenContext
47 {
48 return $this->collection->current();
49 }

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

37 : CalledContexts
38 {
39 return $this->collection;
40 }

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

Field Documentation

◆ $collection

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

◆ $context_repository

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

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