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)
 
 getMainBarProvider ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\ProviderFactory
 __construct (array $main_bar_providers, ItemInformation $main_menu_item_information)
 ProviderFactory constructor. 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)

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

References $dic.

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

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.

References PHPMailer\PHPMailer\$provider, ActiveRecord\get(), ilPluginAdmin\getAllGlobalScreenProviders(), and ILIAS\GlobalScreen\Provider\ProviderFactory\isInstanceCreationPossible().

Referenced by getMainBarProvider().

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()
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMainBarProvider()

ilGSProviderFactory::getMainBarProvider ( )

Implements ILIAS\GlobalScreen\Provider\ProviderFactoryInterface.

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

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

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)
+ 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: