ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\GlobalScreen Namespace Reference

Namespaces

 Collector
 
 Identification
 
 MainMenu
 
 Provider
 
 Scope
 

Data Structures

class  Services
 Class Services. More...
 

Functions

 get (string $class_name)
 
 getWithArgument (string $class_name, $argument)
 

Variables

trait SingletonTrait
 Class SingletonTrait. More...
 

Function Documentation

◆ get()

◆ getWithArgument()

ILIAS\GlobalScreen\getWithArgument ( string  $class_name,
  $argument 
)
private
Parameters
string$class_name
Returns
mixed

Definition at line 37 of file SingletonTrait.php.

Referenced by ILIAS\GlobalScreen\Services\collector(), and ILIAS\GlobalScreen\Services\identification().

38  {
39  if (!isset(self::$services[$class_name])) {
40  self::$services[$class_name] = new $class_name($argument);
41  }
42 
43  return self::$services[$class_name];
44  }
+ Here is the caller graph for this function:

Variable Documentation

◆ SingletonTrait

trait ILIAS::GlobalScreen\SingletonTrait
Initial value:
{
private static $services = []

Class SingletonTrait.

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

Definition at line 9 of file SingletonTrait.php.