ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\GlobalScreen Namespace Reference

@noinspection PhpIncompatibleReturnTypeInspection More...

Namespaces

namespace  Client
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
 
namespace  Collector
 @noinspection PhpIncompatibleReturnTypeInspection
 
namespace  GUI
 
namespace  Helper
 
namespace  Identification
 
namespace  MainMenu
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
 
namespace  Provider
 
namespace  Scope
 
namespace  ScreenContext
 

Data Structures

interface  isGlobalScreenItem
 
class  Services
 

Functions

 get (string $class_name)
 
 getWithArgument (string $class_name, $argument)
 
 getWithMultipleArguments (string $class_name, array $arguments)
 
 has (string $class_name)
 

Detailed Description

@noinspection PhpIncompatibleReturnTypeInspection

Function Documentation

◆ get()

ILIAS\GlobalScreen\get ( string  $class_name)
private

Definition at line 33 of file SingletonTrait.php.

33 : object
34 {
35 if (!$this->has($class_name)) {
36 self::$services[$class_name] = new $class_name();
37 }
38
39 return self::$services[$class_name];
40 }
has(string $class_name)

References ILIAS\GlobalScreen\has().

Referenced by ilDate\get(), ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository\get(), ILIAS\Survey\Execution\RunSessionRepo\getAllPreviewData(), ILIAS\COPage\PC\MapEditorSessionRepository\getAreaNr(), ILIAS\COPage\PC\MapEditorSessionRepository\getAreaType(), ilBadgeManagementSessionRepository\getBadgeIds(), ILIAS\PersonalWorkspace\WorkspaceSessionRepository\getClipboardCmd(), ILIAS\PersonalWorkspace\WorkspaceSessionRepository\getClipboardShared(), ILIAS\PersonalWorkspace\WorkspaceSessionRepository\getClipboardSourceIds(), ILIAS\PersonalWorkspace\WorkspaceSessionRepository\getClipboardWsp2Repo(), ILIAS\Repository\Clipboard\ClipboardSessionRepository\getCmd(), ILIAS\Survey\Execution\RunSessionRepo\getCode(), ILIAS\Survey\Editing\EditSessionRepo\getConstraintElements(), ILIAS\Survey\Editing\EditSessionRepo\getConstraintStructure(), ILIAS\COPage\PC\MapEditorSessionRepository\getCoords(), ILIAS\Survey\Execution\RunSessionRepo\getErrors(), ILIAS\Container\Content\ItemSessionRepository\getExpanded(), ILIAS\MediaPool\Clipboard\ClipboardSessionRepository\getIds(), ILIAS\Glossary\Flashcard\FlashcardSessionRepository\getInitialTerms(), ILIAS\Glossary\Term\TermSessionRepository\getLang(), ILIAS\Glossary\Presentation\PresentationSessionRepository\getLetter(), ILIAS\COPage\PC\MapEditorSessionRepository\getLinkFrame(), ILIAS\COPage\PC\MapEditorSessionRepository\getLinkTarget(), ILIAS\COPage\PC\MapEditorSessionRepository\getLinkType(), ILIAS\COPage\Editor\EditSessionRepository\getMediaPool(), ILIAS\COPage\PC\MapEditorSessionRepository\getMode(), ILIAS\Survey\Editing\EditSessionRepo\getMoveSurveyId(), ILIAS\Survey\Editing\EditSessionRepo\getMoveSurveyQuestions(), ILIAS\Container\Block\BlockSessionRepository\getNavPar(), ILIAS\Awareness\AwarenessSessionRepository\getOnlineUsersTS(), ILIAS\Survey\Execution\RunSessionRepo\getPageEnter(), ILIAS\COPage\Editor\EditSessionRepository\getPageError(), ILIAS\Glossary\Presentation\PresentationSessionRepository\getPageLength(), ILIAS\Survey\Editing\EditSessionRepo\getPoolChoice(), ILIAS\Survey\Execution\RunSessionRepo\getPostData(), ILIAS\Container\Content\BlockSessionRepository\getProperty(), ILIAS\COPage\Editor\EditSessionRepository\getQuestionPool(), ILIAS\Repository\Clipboard\ClipboardSessionRepository\getRefIds(), ILIAS\Portfolio\Access\AccessSessionRepository\getSharedSessionPassword(), ILIAS\Notes\NotesSessionRepository\getSortAscending(), ILIAS\COPage\Editor\EditSessionRepository\getSubCmd(), ILIAS\UI\examples\Progress\Bar\getTaskProgress(), ILIAS\Glossary\Flashcard\FlashcardSessionRepository\getTerms(), ILIAS\COPage\Editor\EditSessionRepository\getTextLang(), ilTemplate\getUnmodified(), ILIAS\Glossary\Presentation\PresentationSessionRepository\getViewControlLength(), ILIAS\Glossary\Presentation\PresentationSessionRepository\getViewControlStart(), and ActiveRecord\preloadObjects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getWithArgument()

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

Definition at line 42 of file SingletonTrait.php.

42 : object
43 {
44 if (!$this->has($class_name)) {
45 self::$services[$class_name] = new $class_name($argument);
46 }
47
48 return self::$services[$class_name];
49 }

References ILIAS\GlobalScreen\has().

Referenced by ILIAS\GlobalScreen\Services\collector(), ILIAS\GlobalScreen\Services\identification(), ILIAS\GlobalScreen\Services\layout(), ILIAS\GlobalScreen\Collector\CollectorFactory\metaBar(), ILIAS\GlobalScreen\Collector\CollectorFactory\notifications(), and ILIAS\GlobalScreen\Collector\CollectorFactory\toasts().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getWithMultipleArguments()

ILIAS\GlobalScreen\getWithMultipleArguments ( string  $class_name,
array  $arguments 
)
private

Definition at line 51 of file SingletonTrait.php.

51 : object
52 {
53 if (!$this->has($class_name)) {
54 $i = new ReflectionClass($class_name);
55
56 self::$services[$class_name] = $i->newInstanceArgs($arguments);
57 }
58
59 return self::$services[$class_name];
60 }

References ILIAS\GlobalScreen\has().

Referenced by ILIAS\GlobalScreen\Collector\CollectorFactory\footer(), ILIAS\GlobalScreen\Collector\CollectorFactory\layout(), ILIAS\GlobalScreen\Collector\CollectorFactory\mainmenu(), and ILIAS\GlobalScreen\Collector\CollectorFactory\tool().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has()