ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ()
 
 getMetaBarModification (CalledContexts $called_contexts)
 No meta bar in HTML exports. More...
 
 getMainBarModification (CalledContexts $called_contexts)
 No main bar in HTML exports. More...
 
 getBreadCrumbsModification (CalledContexts $called_contexts)
 No breadcrumbs in HTML exports. More...
 
- 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 (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

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
 $context_collection
 
 $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

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

Member Function Documentation

◆ getBreadCrumbsModification()

ilHTMLExportViewLayoutProvider::getBreadCrumbsModification ( CalledContexts  $called_contexts)

No breadcrumbs in HTML exports.

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

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

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

88  {
89  $additional_data = $called_contexts->current()->getAdditionalData();
90  if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
91  return $this->globalScreen()
92  ->layout()
93  ->factory()
94  ->breadcrumbs()
95  ->withModification(function (?Breadcrumbs $current = null) : ?Breadcrumbs {
96  return null;
97  })->withHighPriority();
98  } else {
99  return null;
100  }
101  }
+ Here is the call graph for this function:

◆ getMainBarModification()

ilHTMLExportViewLayoutProvider::getMainBarModification ( CalledContexts  $called_contexts)

No main bar in HTML exports.

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

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

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

69  {
70  $additional_data = $called_contexts->current()->getAdditionalData();
71  if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
72  return $this->globalScreen()
73  ->layout()
74  ->factory()
75  ->mainbar()
76  ->withModification(function (?MainBar $current = null) : ?MainBar {
77  return null;
78  })->withHighPriority();
79  } else {
80  return null;
81  }
82  }
This describes the MainBar.
Definition: MainBar.php:16
+ Here is the call graph for this function:

◆ getMetaBarModification()

ilHTMLExportViewLayoutProvider::getMetaBarModification ( CalledContexts  $called_contexts)

No meta bar in HTML exports.

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

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

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

51  {
52  $additional_data = $called_contexts->current()->getAdditionalData();
53  if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
54  return $this->globalScreen()
55  ->layout()
56  ->factory()
57  ->metabar()
58  ->withModification(function (?MetaBar $current = null) : ?MetaBar {
59  return null;
60  })->withHighPriority();
61  }
62  return null;
63  }
This describes the MetaBar.
Definition: MetaBar.php:14
+ 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: