ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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
ContextCollection $context_collection
 
ILIAS GlobalScreen Scope Layout Factory ModificationFactory $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $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 36 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 91 of file class.ilHTMLExportViewLayoutProvider.php.

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

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  }
+ 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 71 of file class.ilHTMLExportViewLayoutProvider.php.

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

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:33
+ 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 52 of file class.ilHTMLExportViewLayoutProvider.php.

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

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