ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilHTMLExportViewLayoutProvider.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
31 
37 {
38  public const HTML_EXPORT_RENDERING = 'html_export_rendering';
39 
44  {
45  return $this->context_collection->main();
46  }
47 
52  public function getMetaBarModification(CalledContexts $called_contexts): ?MetaBarModification
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  }
66 
71  public function getMainBarModification(CalledContexts $called_contexts): ?MainBarModification
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  }
86 
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  }
106 }
This describes the MainBar.
Definition: MainBar.php:33
HTML export view layout provider, hides main and meta bar.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getMetaBarModification(CalledContexts $called_contexts)
No meta bar in HTML exports
This describes the MetaBar.
Definition: MetaBar.php:32
getBreadCrumbsModification(CalledContexts $called_contexts)
No breadcrumbs in HTML exports
getMainBarModification(CalledContexts $called_contexts)
No main bar in HTML exports