ILIAS  release_8 Revision v8.23
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.

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

39  {
40  $this->context_repository = new ContextRepository();
41  $this->collection = new CalledContexts($this->context_repository);
42  }
+ Here is the call graph for this function:

Member Function Documentation

◆ availableContexts()

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

Definition at line 76 of file ContextServices.php.

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

76  : ContextRepository
77  {
79  }

◆ claim()

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

Definition at line 63 of file ContextServices.php.

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

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

◆ collection()

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

Definition at line 68 of file ContextServices.php.

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

68  : ContextCollection
69  {
70  return new ContextCollection($this->context_repository);
71  }
+ Here is the caller graph for this function:

◆ current()

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

Definition at line 55 of file ContextServices.php.

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

55  : ScreenContext
56  {
57  return $this->collection->current();
58  }
+ Here is the call graph for this function:

◆ stack()

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

Definition at line 47 of file ContextServices.php.

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

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

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: