ILIAS  release_7 Revision v7.30-3-g800a261c036
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 29 of file ContextServices.php.

Constructor & Destructor Documentation

◆ __construct()

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

ContextServices constructor.

Definition at line 44 of file ContextServices.php.

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

45  {
46  $this->context_repository = new ContextRepository();
47  $this->collection = new CalledContexts($this->context_repository);
48  }
+ 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 69 of file ContextServices.php.

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

69  : CalledContexts
70  {
71  return $this->collection;
72  }

◆ collection()

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

Definition at line 74 of file ContextServices.php.

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

74  : ContextCollection
75  {
76  return new ContextCollection($this->context_repository);
77  }
+ Here is the caller graph for this function:

◆ current()

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

Definition at line 61 of file ContextServices.php.

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

61  : ScreenContext
62  {
63  return $this->collection->current();
64  }
+ Here is the call graph for this function:

◆ stack()

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

Definition at line 53 of file ContextServices.php.

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

53  : CalledContexts
54  {
55  return $this->collection;
56  }

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: