ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilHTMLExportViewLayoutProvider Class Reference

HTML export view layout provider, hides main and meta bar. More...

+ Inheritance diagram for ilHTMLExportViewLayoutProvider:
+ Collaboration diagram for ilHTMLExportViewLayoutProvider:

Public Member Functions

 isInterestedInContexts ()
 @inheritDoc More...
 
 getMetaBarModification (CalledContexts $called_contexts)
 @inheritDoc No meta bar in HTML exports More...
 
 getMainBarModification (CalledContexts $called_contexts)
 @inheritDoc No main bar in HTML exports More...
 
 getBreadCrumbsModification (CalledContexts $called_contexts)
 @inheritDoc No breadcrumbs in HTML exports 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 ()
 

Data Fields

const HTML_EXPORT_RENDERING = 'html_export_rendering'
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
ContextCollection $context_collection
 
DataFactory $data
 
ModificationFactory $factory
 

Detailed Description

HTML export view layout provider, hides main and meta bar.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 36 of file class.ilHTMLExportViewLayoutProvider.php.

Member Function Documentation

◆ getBreadCrumbsModification()

ilHTMLExportViewLayoutProvider::getBreadCrumbsModification ( CalledContexts  $called_contexts)

@inheritDoc No breadcrumbs in HTML exports

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

Definition at line 91 of file class.ilHTMLExportViewLayoutProvider.php.

92 {
93 $additional_data = $called_contexts->current()->getAdditionalData();
94 if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
95 return $this->globalScreen()
96 ->layout()
97 ->factory()
98 ->breadcrumbs()
99 ->withModification(function (?Breadcrumbs $current = null): ?Breadcrumbs {
100 return null;
101 })->withHighPriority();
102 } else {
103 return null;
104 }
105 }

References ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current(), and ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen().

+ Here is the call graph for this function:

◆ getMainBarModification()

ilHTMLExportViewLayoutProvider::getMainBarModification ( CalledContexts  $called_contexts)

@inheritDoc No main bar in HTML exports

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

Definition at line 71 of file class.ilHTMLExportViewLayoutProvider.php.

72 {
73 $additional_data = $called_contexts->current()->getAdditionalData();
74 if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
75 return $this->globalScreen()
76 ->layout()
77 ->factory()
78 ->mainbar()
79 ->withModification(function (?MainBar $current = null): ?MainBar {
80 return null;
81 })->withHighPriority();
82 } else {
83 return null;
84 }
85 }
This describes the MainBar.
Definition: MainBar.php:34

References ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current(), and ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen().

+ Here is the call graph for this function:

◆ getMetaBarModification()

ilHTMLExportViewLayoutProvider::getMetaBarModification ( CalledContexts  $called_contexts)

@inheritDoc No meta bar in HTML exports

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

Definition at line 52 of file class.ilHTMLExportViewLayoutProvider.php.

53 {
54 $additional_data = $called_contexts->current()->getAdditionalData();
55 if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
56 return $this->globalScreen()
57 ->layout()
58 ->factory()
59 ->metabar()
60 ->withModification(function (?MetaBar $current = null): ?MetaBar {
61 return null;
62 })->withHighPriority();
63 }
64 return null;
65 }
This describes the MetaBar.
Definition: MetaBar.php:33

References ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current(), and ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen().

+ Here is the call graph for this function:

◆ isInterestedInContexts()

ilHTMLExportViewLayoutProvider::isInterestedInContexts ( )

Field Documentation

◆ HTML_EXPORT_RENDERING


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