ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DashboardLayoutProvider Class Reference
+ Inheritance diagram for DashboardLayoutProvider:
+ Collaboration diagram for DashboardLayoutProvider:

Public Member Functions

 __construct (Container $dic)
 @inheritDoc More...
 
 isInterestedInContexts ()
 
 getMainBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getContentModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getLogoModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getFooterModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 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)
 
 isInterestedInContexts ()
 

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)

@inheritDoc

Reimplemented from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider.

Definition at line 34 of file DashboardLayoutProvider.php.

35 {
36 $dic->ui()->mainTemplate()->addJavaScript('assets/js/modal-confirmation.js');
37 $dic->ui()->mainTemplate()->addJavaScript('assets/js/manual-sorting.js');
39 }
$dic
Definition: ltiresult.php:33
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $dic, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getMainBarModification()

DashboardLayoutProvider::getMainBarModification ( CalledContexts  $screen_context_stack)

@inheritDoc

Reimplemented from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider.

Definition at line 46 of file DashboardLayoutProvider.php.

47 {
48 $this->data_collection = $screen_context_stack->current()->getAdditionalData();
49 if (!$this->data_collection->is(ilDashboardGUI::DISENGAGE_MAINBAR, true)) {
50 return null;
51 }
52
53 return $this->globalScreen()->layout()->factory()->mainbar()
54 ->withModification(
55 function (?MainBar $mainbar): ?MainBar {
56 return $mainbar?->withActive($mainbar::NONE_ACTIVE);
57 }
58 )
59 ->withLowPriority();
60 }
This describes the MainBar.
Definition: MainBar.php:34

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

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