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

Namespaces

namespace  Collector
 
namespace  Identification
 
namespace  MainMenu
 
namespace  Provider
 

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()

ILIAS\GlobalScreen\get ( string  $class_name)
private
Parameters
string$class_name
Returns
mixed

Definition at line 22 of file SingletonTrait.php.

23 {
24 if (!isset(self::$services[$class_name])) {
25 self::$services[$class_name] = new $class_name();
26 }
27
28 return self::$services[$class_name];
29 }

Referenced by ilTemplate\get(), ilDate\get(), HTMLPurifier_DefinitionCache_Decorator_Cleanup\get(), HTMLPurifier_DefinitionCache_Decorator_Memory\get(), Slim\Http\Headers\get(), SimpleSAML\Store\Memcache\get(), ilOrgUnitPosition\get(), Slim\Http\Headers\getOriginalKey(), Title\moveToNewTitle(), Title\newFromRedirect(), ActiveRecord\preloadObjects(), ilOrgUnitMultiLineInputGUI\render(), and ilTemplate\show().

+ Here is the caller graph for this function:

◆ getWithArgument()

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

Definition at line 37 of file SingletonTrait.php.

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 }

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

+ 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 8 of file SingletonTrait.php.