ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DashboardLayoutProvider Class Reference
+ Inheritance diagram for DashboardLayoutProvider:
+ Collaboration diagram for DashboardLayoutProvider:

Public Member Functions

 __construct (Container $dic)
 
 isInterestedInContexts ()
 
 getMainBarModification (CalledContexts $screen_context_stack)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 __construct (Container $dic)
 
 getContentModification (CalledContexts $screen_context_stack)
 
 getLogoModification (CalledContexts $screen_context_stack)
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 
 getFooterModification (CalledContexts $screen_context_stack)
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 
 getTitleModification (CalledContexts $screen_context_stack)
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Protected Attributes

Collection $data_collection
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
ContextCollection $context_collection
 
DataFactory $data
 
ModificationFactory $factory
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 

Detailed Description

Definition at line 30 of file DashboardLayoutProvider.php.

Constructor & Destructor Documentation

◆ __construct()

DashboardLayoutProvider::__construct ( Container  $dic)

Definition at line 34 of file DashboardLayoutProvider.php.

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\DI\Container\ui().

35  {
36  $dic->ui()->mainTemplate()->addJavaScript('assets/js/modal-confirmation.js');
37  parent::__construct($dic);
38  }
__construct(Container $dic, ilPlugin $plugin)
ui()
Get the interface to get services from UI framework.
Definition: Container.php:127
+ Here is the call graph for this function:

Member Function Documentation

◆ getMainBarModification()

DashboardLayoutProvider::getMainBarModification ( CalledContexts  $screen_context_stack)
Parameters
CalledContexts$screen_context_stack
Returns
MainBarModification|null

Implements ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider.

Definition at line 45 of file DashboardLayoutProvider.php.

References ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current(), ilDashboardGUI\DISENGAGE_MAINBAR, ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), null, and ILIAS\UI\Component\MainControls\MainBar\withActive().

46  {
47  $this->data_collection = $screen_context_stack->current()->getAdditionalData();
48  if (!$this->data_collection->is(ilDashboardGUI::DISENGAGE_MAINBAR, true)) {
49  return null;
50  }
51 
52  return $this->globalScreen()->layout()->factory()->mainbar()
53  ->withModification(
54  function (?MainBar $mainbar): ?MainBar {
55  return $mainbar?->withActive($mainbar::NONE_ACTIVE);
56  }
57  )
58  ->withLowPriority();
59  }
This describes the MainBar.
Definition: MainBar.php:33
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ isInterestedInContexts()

DashboardLayoutProvider::isInterestedInContexts ( )

Field Documentation

◆ $data_collection

Collection DashboardLayoutProvider::$data_collection
protected

Definition at line 32 of file DashboardLayoutProvider.php.


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