ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\GlobalScreen\Provider\AbstractProvider Class Reference
+ Inheritance diagram for ILIAS\GlobalScreen\Provider\AbstractProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Provider\AbstractProvider:

Public Member Functions

 __construct (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Protected Member Functions

 globalScreen ()
 

Protected Attributes

 $dic
 

Private Attributes

 $provider_name_cache = ""
 

Detailed Description

Definition at line 11 of file AbstractProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Provider\AbstractProvider::__construct ( Container  $dic)

Member Function Documentation

◆ getFullyQualifiedClassName()

ILIAS\GlobalScreen\Provider\AbstractProvider::getFullyQualifiedClassName ( )
final

@inheritDoc

Implements ILIAS\GlobalScreen\Provider\Provider.

Definition at line 45 of file AbstractProvider.php.

45 : string
46 {
47 return self::class;
48 }

◆ getProviderNameForPresentation()

ILIAS\GlobalScreen\Provider\AbstractProvider::getProviderNameForPresentation ( )
Returns
string
Exceptions

ReflectionException

Implements ILIAS\GlobalScreen\Provider\Provider.

Reimplemented in ilPrtfGlobalScreenProvider, and ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticPluginMainMenuProvider.

Definition at line 55 of file AbstractProvider.php.

55 : string
56 {
57 if ($this->provider_name_cache !== "" && is_string($this->provider_name_cache)) {
59 }
60 $reflector = new \ReflectionClass($this);
61
62 $re = "/.*[\\\|\\/](?P<provider>(Services|Modules)[\\\|\\/].*)[\\\|\\/]classes/m";
63
64 preg_match($re, str_replace("\\", "/", $reflector->getFileName()), $matches);
65
66 $this->provider_name_cache = isset($matches[1]) ? is_string($matches[1]) ? $matches[1] : self::class : self::class;
67
69 }

References ILIAS\GlobalScreen\Provider\AbstractProvider\$provider_name_cache.

◆ globalScreen()

ILIAS\GlobalScreen\Provider\AbstractProvider::globalScreen ( )
protected

Field Documentation

◆ $dic

ILIAS\GlobalScreen\Provider\AbstractProvider::$dic
protected

◆ $provider_name_cache

ILIAS\GlobalScreen\Provider\AbstractProvider::$provider_name_cache = ""
private

The documentation for this class was generated from the following file: