ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
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...
 
 getFooterModification (CalledContexts $called_contexts)
 @inheritDoc No footer 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 38 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 93 of file class.ilHTMLExportViewLayoutProvider.php.

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

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

+ Here is the call graph for this function:

◆ getFooterModification()

ilHTMLExportViewLayoutProvider::getFooterModification ( CalledContexts  $called_contexts)

@inheritDoc No footer in HTML exports

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

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

114 {
115 $additional_data = $called_contexts->current()->getAdditionalData();
116 if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
117 return $this->globalScreen()
118 ->layout()
119 ->factory()
120 ->footer()
121 ->withModification(function (?Footer $current = null): ?Footer {
122 return null;
123 })->withHighPriority();
124 } else {
125 return null;
126 }
127 }

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 73 of file class.ilHTMLExportViewLayoutProvider.php.

74 {
75 $additional_data = $called_contexts->current()->getAdditionalData();
76 if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
77 return $this->globalScreen()
78 ->layout()
79 ->factory()
80 ->mainbar()
81 ->withModification(function (?MainBar $current = null): ?MainBar {
82 return null;
83 })->withHighPriority();
84 } else {
85 return null;
86 }
87 }
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 54 of file class.ilHTMLExportViewLayoutProvider.php.

55 {
56 $additional_data = $called_contexts->current()->getAdditionalData();
57 if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
58 return $this->globalScreen()
59 ->layout()
60 ->factory()
61 ->metabar()
62 ->withModification(function (?MetaBar $current = null): ?MetaBar {
63 return null;
64 })->withHighPriority();
65 }
66 return null;
67 }
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: