ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilGSProviderFactory Class Reference

Class ilGSProviderFactory. More...

+ Inheritance diagram for ilGSProviderFactory:
+ Collaboration diagram for ilGSProviderFactory:

Public Member Functions

 __construct (Container $dic)
 @inheritDoc More...
 
 getMainBarProvider ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\ProviderFactory
 __construct (array $main_bar_providers, ItemInformation $main_menu_item_information)
 ProviderFactory constructor. More...
 
 getMainBarProvider ()
 @inheritDoc More...
 
 getMainBarItemInformation ()
 @inheritDoc More...
 
 getProviderByClassName (string $class_name)
 @inheritDoc More...
 
 isInstanceCreationPossible (string $class_name)
 @inheritDoc More...
 
 isRegistered (string $class_name)
 @inheritDoc More...
 
 getMainBarProvider ()
 
 getMainBarItemInformation ()
 
 getProviderByClassName (string $class_name)
 
 isInstanceCreationPossible (string $class_name)
 
 isRegistered (string $class_name)
 

Private Member Functions

 appendPlugins (array &$array_of_core_providers, string $interface)
 

Private Attributes

 $dic
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\ProviderFactory
 registerInternal (array $providers)
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\ProviderFactory
 $all_providers
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilGSProviderFactory::__construct ( Container  $dic)

@inheritDoc

Definition at line 24 of file class.ilGSProviderFactory.php.

25 {
26 $this->dic = $dic;
27
28 parent::__construct(
29 [],
31 );
32 }
Class ilMMItemInformation.

References $dic.

Member Function Documentation

◆ appendPlugins()

ilGSProviderFactory::appendPlugins ( array &  $array_of_core_providers,
string  $interface 
)
private
Parameters
array$array_of_core_providers
string$interface

Definition at line 57 of file class.ilGSProviderFactory.php.

58 {
59 // Plugins
60 static $plugin_providers;
61
62 $plugin_providers = $plugin_providers ?? ilPluginAdmin::getAllGlobalScreenProviders();
63
64 foreach ($plugin_providers as $provider) {
65 if (is_a($provider, $interface)) {
66 $array_of_core_providers[] = $provider;
67 }
68 }
69 }
static getAllGlobalScreenProviders()

References PHPMailer\PHPMailer\$provider, and ilPluginAdmin\getAllGlobalScreenProviders().

Referenced by getMainBarProvider().

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

◆ getMainBarProvider()

ilGSProviderFactory::getMainBarProvider ( )

@inheritDoc

Reimplemented from ILIAS\GlobalScreen\Provider\ProviderFactory.

Definition at line 38 of file class.ilGSProviderFactory.php.

38 : array
39 {
40 $providers = [];
41 // Core
42 $this->appendCore($providers, StaticMainMenuProvider::class);
43
44 // Plugins
45 $this->appendPlugins($providers, StaticMainMenuProvider::class);
46
47 $this->registerInternal($providers);
48
49 return $providers;
50 }
appendPlugins(array &$array_of_core_providers, string $interface)

References appendPlugins(), and ILIAS\GlobalScreen\Provider\ProviderFactory\registerInternal().

+ Here is the call graph for this function:

Field Documentation

◆ $dic

ilGSProviderFactory::$dic
private

Definition at line 18 of file class.ilGSProviderFactory.php.

Referenced by __construct().


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