ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
 $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 19 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 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  ->breadcrumbs()
79  ->withModification(function (Breadcrumbs $current = null) : ?Breadcrumbs {
80  return null;
81  })->withHighPriority();
82  } else {
83  return null;
84  }
85  }
+ 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 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  ->mainbar()
60  ->withModification(function (MainBar $current = null) : ?MainBar {
61  return null;
62  })->withHighPriority();
63  } else {
64  return null;
65  }
66  }
This describes the MainBar.
Definition: MainBar.php:15
+ 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 34 of file class.ilHTMLExportViewLayoutProvider.php.

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

35  {
36  $additional_data = $called_contexts->current()->getAdditionalData();
37  if ($additional_data->is(self::HTML_EXPORT_RENDERING, true)) {
38  return $this->globalScreen()
39  ->layout()
40  ->factory()
41  ->metabar()
42  ->withModification(function (MetaBar $current = null) : ?MetaBar {
43  return null;
44  })->withHighPriority();
45  }
46  return null;
47  }
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: