ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider Class Reference
+ Inheritance diagram for ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider:
+ Collaboration diagram for ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getMainBarModification (CalledContexts $screen_context_stack)
 
 getMetaBarModification (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 ()
 

Data Fields

const FORCED_STARTUP_STEP = 'forced_startup_step'
 

Protected Member Functions

 isForcedStartupStep (CalledContexts $called_contexts)
 
- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file StartUpSequenceLayoutProvider.php.

Member Function Documentation

◆ getMainBarModification()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::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 StartUpSequenceLayoutProvider.php.

References ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\isForcedStartupStep(), and null.

45  : ?MainBarModification
46  {
47  if ($this->isForcedStartupStep($screen_context_stack)) {
48  $main_bar = $this->globalScreen()->layout()->factory()->mainbar();
49  $main_bar = $main_bar->withModification(function (?MainBar $current): ?MainBar {
50  return null;
51  });
52 
53  return $main_bar->withPriority(\ILIAS\GlobalScreen\Scope\Layout\Factory\LayoutModification::PRIORITY_HIGH);
54  }
55 
56  return null;
57  }
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ getMetaBarModification()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::getMetaBarModification ( CalledContexts  $screen_context_stack)
Parameters
CalledContexts$screen_context_stack
Returns
MetaBarModification|null

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

Definition at line 59 of file StartUpSequenceLayoutProvider.php.

References ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\isForcedStartupStep(), and null.

59  : ?MetaBarModification
60  {
61  if ($this->isForcedStartupStep($screen_context_stack)) {
62  $meta_bar = $this->globalScreen()->layout()->factory()->metabar();
63  $meta_bar = $meta_bar->withModification(function (?MetaBar $current): ?MetaBar {
64  return null;
65  });
66 
67  return $meta_bar->withPriority(\ILIAS\GlobalScreen\Scope\Layout\Factory\LayoutModification::PRIORITY_HIGH);
68  }
69 
70  return null;
71  }
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ isForcedStartupStep()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::isForcedStartupStep ( CalledContexts  $called_contexts)
protected

Definition at line 35 of file StartUpSequenceLayoutProvider.php.

References ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current().

Referenced by ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\getMainBarModification(), and ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider\getMetaBarModification().

35  : bool
36  {
37  return $called_contexts->current()->getAdditionalData()->is(self::FORCED_STARTUP_STEP, true);
38  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isInterestedInContexts()

ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::isInterestedInContexts ( )
Returns
ContextCollection

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 40 of file StartUpSequenceLayoutProvider.php.

References ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\main().

40  : ContextCollection
41  {
42  return $this->context_collection->main();
43  }
+ Here is the call graph for this function:

Field Documentation

◆ FORCED_STARTUP_STEP

const ILIAS\Init\StartupSequence\StartUpSequenceLayoutProvider::FORCED_STARTUP_STEP = 'forced_startup_step'

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