ILIAS  release_8 Revision v8.23
ilRTEGlobalTemplate Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilRTEGlobalTemplate:
+ Collaboration diagram for ilRTEGlobalTemplate:

Public Member Functions

 __construct (string $file, bool $flag1, bool $flag2, string $in_module='', string $vars='DEFAULT', bool $plugin=false, bool $a_use_cache=true)
 
 printToString ()
 Use this method to get the finally rendered page as string. More...
 
 hideFooter ()
 Make the template hide the footer. More...
 
 setOnScreenMessage (string $type, string $a_txt, bool $a_keep=false)
 Set a message to be displayed to the user. More...
 
 addJavaScript (string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
 Add a javascript file that should be included in the header. More...
 
 addOnLoadCode (string $a_code, int $a_batch=2)
 Add on load code. More...
 
 getOnLoadCodeForAsynch ()
 Get js onload code for ajax calls. More...
 
 resetJavascript ()
 Reset javascript files. More...
 
 fillJavaScriptFiles (bool $a_force=false)
 Probably adds javascript files. More...
 
 addCss (string $a_css_file, string $media="screen")
 Add a css file that should be included in the header. More...
 
 addInlineCss (string $a_css, string $media="screen")
 Add a css file that should be included in the header. More...
 
 setBodyClass (string $a_class='')
 Sets the body-tags class. More...
 
 loadStandardTemplate ()
 This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded. More...
 
 setTitle (string $a_title, bool $hidden=false)
 Sets title in standard template. More...
 
 setDescription (string $a_descr)
 Sets description below title in standard template. More...
 
 setTitleIcon (string $a_icon_path, string $a_icon_desc="")
 set title icon More...
 
 setAlertProperties (array $alerts)
 Set alert properties. More...
 
 clearHeader ()
 Clear header. More...
 
 setHeaderActionMenu (string $a_header)
 Set header action menu. More...
 
 setHeaderPageTitle (string $a_title)
 Sets the title of the page (for browser window). More...
 
 setLocator ()
 Insert locator. More...
 
 setTabs (string $a_tabs_html)
 sets tabs in standard template More...
 
 setSubTabs (string $a_tabs_html)
 sets subtabs in standard template More...
 
 setContent (string $a_html)
 Sets content for standard template. More...
 
 setLeftContent (string $a_html)
 Sets content of left column. More...
 
 setLeftNavContent (string $a_content)
 Sets content of left navigation column. More...
 
 setRightContent (string $a_html)
 Sets content of right column. More...
 
 setPageFormAction (string $a_action)
 Sets the pages form action. More...
 
 setLoginTargetPar (string $a_val)
 Set target parameter for login (public sector). More...
 
 getSpecial (string $part=self::DEFAULT_BLOCK, bool $add_error_mess=false, bool $handle_referer=false, bool $add_ilias_footer=false, bool $add_standard_elements=false, bool $a_main_menu=true, bool $a_tabs=true)
 Renders the page with specific elements enabled. More...
 
 printToStdout (string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
 
 setTreeFlatIcon (string $a_link, string $a_mode)
 Sets a tree or flat icon. More...
 
 addLightbox (string $a_html, string $a_id)
 Add a lightbox html to the template. More...
 
 addAdminPanelToolbar (ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
 Add admin panel commands as toolbar. More...
 
 setPermanentLink (string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
 Generates and sets a permanent ilias link. More...
 
 resetHeaderBlock (bool $a_reset_header_action=true)
 Reset all header properties: title, icon, description, alerts, action menu. More...
 
 setFileUploadRefId (int $a_ref_id)
 Enables the file upload into this object by dropping a file. More...
 
 get (string $part=self::DEFAULT_BLOCK)
 Renders the given block and returns the html string. More...
 
 setVariable (string $variable, $value='')
 Sets the given variable to the given value. More...
 
 setCurrentBlock (string $part=self::DEFAULT_BLOCK)
 Sets the template to the given block. More...
 
 touchBlock (string $block)
 overwrites ITX::touchBlock. More...
 
 parseCurrentBlock (string $block_name=self::DEFAULT_BLOCK)
 Parses the given block. More...
 
 addBlockFile (string $var, string $block, string $template_name, string $in_module=null)
 overwrites ITX::addBlockFile More...
 
 blockExists (string $block_name)
 check if block exists in actual template More...
 

Protected Member Functions

 fillJavascriptFile (string $file, string $vers)
 

Protected Attributes

string $tree_flat_link = ''
 
string $page_form_action = ''
 
bool $permanent_link = false
 
array $lightbox = []
 
bool $standard_template_loaded = false
 
ilTemplate $template
 
string $body_class = ''
 
array $js_files = [0 => './Services/JavaScript/js/Basic.js']
 
array $js_files_vp = ['./Services/JavaScript/js/Basic.js' => true]
 
array $js_files_batch = ['./Services/JavaScript/js/Basic.js' => 1]
 

Private Member Functions

 fillBodyClass ()
 

Additional Inherited Members

- Data Fields inherited from ilGlobalTemplateInterface
const MESSAGE_TYPE_FAILURE = 'failure'
 
const MESSAGE_TYPE_SUCCESS = "success"
 
const MESSAGE_TYPE_QUESTION = "question"
 
const MESSAGE_TYPE_INFO = "info"
 
const MESSAGE_TYPES
 
const DEFAULT_BLOCK = 'DEFAULT'
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Special template class to simplify handling of ITX/PEAR

Author
Stefan Kesseler skess.nosp@m.eler.nosp@m.@data.nosp@m.bay..nosp@m.de
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 26 of file class.ilRTEGlobalTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

ilRTEGlobalTemplate::__construct ( string  $file,
bool  $flag1,
bool  $flag2,
string  $in_module = '',
string  $vars = 'DEFAULT',
bool  $plugin = false,
bool  $a_use_cache = true 
)

Definition at line 53 of file class.ilRTEGlobalTemplate.php.

References XapiProxy\$plugin, and setBodyClass().

61  {
62  $this->setBodyClass('std');
63  $this->template = new ilTemplate($file, $flag1, $flag2, $in_module, $vars, $plugin, $a_use_cache);
64  }
setBodyClass(string $a_class='')
Sets the body-tags class.
+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminPanelToolbar()

ilRTEGlobalTemplate::addAdminPanelToolbar ( ilToolbarGUI  $toolbar,
bool  $is_bottom_panel = true,
bool  $has_arrow = false 
)

Add admin panel commands as toolbar.

Parameters
bool$is_bottom_panelif the panel should be rendered at the bottom of the page as well.
bool$has_arrowif the panel should be rendered with an arrow icon.

Implements ilGlobalTemplateInterface.

Definition at line 321 of file class.ilRTEGlobalTemplate.php.

325  : void {
326  }

◆ addBlockFile()

ilRTEGlobalTemplate::addBlockFile ( string  $var,
string  $block,
string  $template_name,
string  $in_module = null 
)

overwrites ITX::addBlockFile

Implements ilGlobalTemplateInterface.

Definition at line 370 of file class.ilRTEGlobalTemplate.php.

Referenced by loadStandardTemplate().

370  : bool
371  {
372  return $this->template->addBlockFile($var, $block, $template_name, $in_module);
373  }
+ Here is the caller graph for this function:

◆ addCss()

ilRTEGlobalTemplate::addCss ( string  $a_css_file,
string  $media = "screen" 
)

Add a css file that should be included in the header.

Implements ilGlobalTemplateInterface.

Definition at line 164 of file class.ilRTEGlobalTemplate.php.

164  : void
165  {
166  }

◆ addInlineCss()

ilRTEGlobalTemplate::addInlineCss ( string  $a_css,
string  $media = "screen" 
)

Add a css file that should be included in the header.

Implements ilGlobalTemplateInterface.

Definition at line 168 of file class.ilRTEGlobalTemplate.php.

168  : void
169  {
170  }

◆ addJavaScript()

ilRTEGlobalTemplate::addJavaScript ( string  $a_js_file,
bool  $a_add_version_parameter = true,
int  $a_batch = 2 
)

Add a javascript file that should be included in the header.

Implements ilGlobalTemplateInterface.

Definition at line 79 of file class.ilRTEGlobalTemplate.php.

79  : void
80  {
81  // three batches currently
82  if ($a_batch < 1 || $a_batch > 3) {
83  $a_batch = 2;
84  }
85 
86  // ensure jquery files being loaded first
87  if (
88  is_int(strpos($a_js_file, 'Services/jQuery')) ||
89  is_int(strpos($a_js_file, '/jquery.js')) ||
90  is_int(strpos($a_js_file, '/jquery-min.js'))
91  ) {
92  $a_batch = 0;
93  }
94 
95  if (!in_array($a_js_file, $this->js_files, true)) {
96  $this->js_files[] = $a_js_file;
97  $this->js_files_vp[$a_js_file] = $a_add_version_parameter;
98  $this->js_files_batch[$a_js_file] = $a_batch;
99  }
100  }

◆ addLightbox()

ilRTEGlobalTemplate::addLightbox ( string  $a_html,
string  $a_id 
)

Add a lightbox html to the template.

Implements ilGlobalTemplateInterface.

Definition at line 317 of file class.ilRTEGlobalTemplate.php.

317  : void
318  {
319  }

◆ addOnLoadCode()

ilRTEGlobalTemplate::addOnLoadCode ( string  $a_code,
int  $a_batch = 2 
)

Add on load code.

Implements ilGlobalTemplateInterface.

Definition at line 102 of file class.ilRTEGlobalTemplate.php.

102  : void
103  {
104  }

◆ blockExists()

ilRTEGlobalTemplate::blockExists ( string  $block_name)

check if block exists in actual template

Parameters
string$block_name

Implements ilGlobalTemplateInterface.

Definition at line 375 of file class.ilRTEGlobalTemplate.php.

Referenced by fillBodyClass(), and fillJavaScriptFiles().

375  : bool
376  {
377  return $this->template->blockExists($block_name);
378  }
+ Here is the caller graph for this function:

◆ clearHeader()

ilRTEGlobalTemplate::clearHeader ( )

Clear header.

Implements ilGlobalTemplateInterface.

Definition at line 219 of file class.ilRTEGlobalTemplate.php.

219  : void
220  {
221  }

◆ fillBodyClass()

ilRTEGlobalTemplate::fillBodyClass ( )
private

Definition at line 177 of file class.ilRTEGlobalTemplate.php.

References blockExists(), parseCurrentBlock(), setCurrentBlock(), and setVariable().

Referenced by printToStdout().

177  : void
178  {
179  if ($this->body_class !== '' && $this->blockExists('body_class')) {
180  $this->setCurrentBlock('body_class');
181  $this->setVariable('BODY_CLASS', $this->body_class);
182  $this->parseCurrentBlock();
183  }
184  }
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
blockExists(string $block_name)
check if block exists in actual template
setVariable(string $variable, $value='')
Sets the given variable to the given value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillJavascriptFile()

ilRTEGlobalTemplate::fillJavascriptFile ( string  $file,
string  $vers 
)
protected

Definition at line 153 of file class.ilRTEGlobalTemplate.php.

References ilUtil\appendUrlParameterString(), parseCurrentBlock(), setCurrentBlock(), and setVariable().

Referenced by fillJavaScriptFiles().

153  : void
154  {
155  $this->setCurrentBlock('js_file');
156  if ($this->js_files_vp[$file]) {
157  $this->setVariable('JS_FILE', ilUtil::appendUrlParameterString($file, $vers));
158  } else {
159  $this->setVariable('JS_FILE', $file);
160  }
161  $this->parseCurrentBlock();
162  }
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillJavaScriptFiles()

ilRTEGlobalTemplate::fillJavaScriptFiles ( bool  $a_force = false)

Probably adds javascript files.

Implements ilGlobalTemplateInterface.

Definition at line 119 of file class.ilRTEGlobalTemplate.php.

References $DIC, $i, $ilSetting, blockExists(), fillJavascriptFile(), and ILIAS_VERSION.

Referenced by printToStdout().

119  : void
120  {
121  global $DIC;
122 
123  $ilSetting = $DIC->settings();
124 
125  $vers = '';
126  if (is_object($ilSetting)) {
127  $vers = 'vers=' . str_replace(['.', ' '], '-', ILIAS_VERSION);
128 
129  if (defined('DEVMODE') && DEVMODE) {
130  $vers .= '-' . time();
131  }
132  }
133 
134  if ($this->blockExists('js_file')) {
135  for ($i = 0; $i <= 3; $i++) {
136  reset($this->js_files);
137  foreach ($this->js_files as $file) {
138  if ($this->js_files_batch[$file] === $i) {
139  if ($a_force || is_file($file) || strpos($file, 'http') === 0 || strpos($file, '//') === 0) {
140  $this->fillJavascriptFile($file, $vers);
141  } elseif (strpos($file, './') === 0) { // #13962
142  $url_parts = parse_url($file);
143  if (is_file($url_parts['path'])) {
144  $this->fillJavascriptFile($file, $vers);
145  }
146  }
147  }
148  }
149  }
150  }
151  }
fillJavascriptFile(string $file, string $vers)
const ILIAS_VERSION
global $DIC
Definition: feed.php:28
blockExists(string $block_name)
check if block exists in actual template
global $ilSetting
Definition: privfeed.php:17
$i
Definition: metadata.php:41
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

ilRTEGlobalTemplate::get ( string  $part = self::DEFAULT_BLOCK)

Renders the given block and returns the html string.

Implements ilGlobalTemplateInterface.

Definition at line 345 of file class.ilRTEGlobalTemplate.php.

345  : string
346  {
347  return $this->template->get($part);
348  }

◆ getOnLoadCodeForAsynch()

ilRTEGlobalTemplate::getOnLoadCodeForAsynch ( )

Get js onload code for ajax calls.

Implements ilGlobalTemplateInterface.

Definition at line 107 of file class.ilRTEGlobalTemplate.php.

107  : string
108  {
109  return '';
110  }

◆ getSpecial()

ilRTEGlobalTemplate::getSpecial ( string  $part = self::DEFAULT_BLOCK,
bool  $add_error_mess = false,
bool  $handle_referer = false,
bool  $add_ilias_footer = false,
bool  $add_standard_elements = false,
bool  $a_main_menu = true,
bool  $a_tabs = true 
)

Renders the page with specific elements enabled.

Implements ilGlobalTemplateInterface.

Definition at line 268 of file class.ilRTEGlobalTemplate.php.

276  : string {
277  return '';
278  }

◆ hideFooter()

ilRTEGlobalTemplate::hideFooter ( )

Make the template hide the footer.

Implements ilGlobalTemplateInterface.

Definition at line 71 of file class.ilRTEGlobalTemplate.php.

71  : void
72  {
73  }

◆ loadStandardTemplate()

ilRTEGlobalTemplate::loadStandardTemplate ( )

This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded.

Implements ilGlobalTemplateInterface.

Definition at line 186 of file class.ilRTEGlobalTemplate.php.

References addBlockFile(), ilUIFramework\init(), iljQueryUtil\initjQuery(), and iljQueryUtil\initjQueryUI().

186  : void
187  {
188  if ($this->standard_template_loaded) {
189  return;
190  }
191 
194 
196 
197  $this->addBlockFile('CONTENT', 'content', 'tpl.adm_content.html');
198  $this->addBlockFile('STATUSLINE', 'statusline', 'tpl.statusline.html');
199 
200  $this->standard_template_loaded = true;
201  }
static initjQueryUI(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
static init(ilGlobalTemplateInterface $template=null)
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
addBlockFile(string $var, string $block, string $template_name, string $in_module=null)
overwrites ITX::addBlockFile
+ Here is the call graph for this function:

◆ parseCurrentBlock()

ilRTEGlobalTemplate::parseCurrentBlock ( string  $block_name = self::DEFAULT_BLOCK)

Parses the given block.

Implements ilGlobalTemplateInterface.

Definition at line 365 of file class.ilRTEGlobalTemplate.php.

Referenced by fillBodyClass(), and fillJavascriptFile().

365  : bool
366  {
367  return $this->template->parseCurrentBlock($block_name);
368  }
+ Here is the caller graph for this function:

◆ printToStdout()

ilRTEGlobalTemplate::printToStdout ( string  $part = self::DEFAULT_BLOCK,
bool  $has_tabs = true,
bool  $skip_main_menu = false 
)
Parameters
bool$has_tabsif template variable {TABS} should be filled with content of ilTabs
bool$skip_main_menuif the main menu should be rendered.

Implements ilGlobalTemplateInterface.

Definition at line 280 of file class.ilRTEGlobalTemplate.php.

References $DIC, $http, fillBodyClass(), fillJavaScriptFiles(), ilYuiUtil\initDom(), and setCurrentBlock().

284  : void {
285  global $DIC;
286 
287  $http = $DIC->http();
288  switch ($http->request()->getHeaderLine('Accept')) {
289  default:
291 
292  header('P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
293  header('Content-type: text/html; charset=UTF-8');
294 
295  $this->fillBodyClass();
296  if ($has_tabs) {
297  $this->setCurrentBlock(self::DEFAULT_BLOCK);
298  $this->fillJavaScriptFiles();
299  }
300 
301  if ($part === self::DEFAULT_BLOCK) {
302  $html = $this->template->getUnmodified();
303  } else {
304  $html = $this->template->getUnmodified($part);
305  }
306 
307  print $html;
308 
309  break;
310  }
311  }
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
global $DIC
Definition: feed.php:28
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
$http
Definition: raiseError.php:7
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
+ Here is the call graph for this function:

◆ printToString()

ilRTEGlobalTemplate::printToString ( )

Use this method to get the finally rendered page as string.

Implements ilGlobalTemplateInterface.

Definition at line 66 of file class.ilRTEGlobalTemplate.php.

66  : string
67  {
68  throw new ilException('not implemented');
69  }

◆ resetHeaderBlock()

ilRTEGlobalTemplate::resetHeaderBlock ( bool  $a_reset_header_action = true)

Reset all header properties: title, icon, description, alerts, action menu.

Implements ilGlobalTemplateInterface.

Definition at line 337 of file class.ilRTEGlobalTemplate.php.

337  : void
338  {
339  }

◆ resetJavascript()

ilRTEGlobalTemplate::resetJavascript ( )

Reset javascript files.

Implements ilGlobalTemplateInterface.

Definition at line 112 of file class.ilRTEGlobalTemplate.php.

112  : void
113  {
114  $this->js_files = [];
115  $this->js_files_vp = [];
116  $this->js_files_batch = [];
117  }

◆ setAlertProperties()

ilRTEGlobalTemplate::setAlertProperties ( array  $alerts)

Set alert properties.

Parameters
array<int,array>$alerts

Implements ilGlobalTemplateInterface.

Definition at line 215 of file class.ilRTEGlobalTemplate.php.

215  : void
216  {
217  }

◆ setBodyClass()

ilRTEGlobalTemplate::setBodyClass ( string  $a_class = '')

Sets the body-tags class.

Implements ilGlobalTemplateInterface.

Definition at line 172 of file class.ilRTEGlobalTemplate.php.

Referenced by __construct().

172  : void
173  {
174  $this->body_class = $a_class;
175  }
+ Here is the caller graph for this function:

◆ setContent()

ilRTEGlobalTemplate::setContent ( string  $a_html)

Sets content for standard template.

Implements ilGlobalTemplateInterface.

Definition at line 244 of file class.ilRTEGlobalTemplate.php.

244  : void
245  {
246  }

◆ setCurrentBlock()

ilRTEGlobalTemplate::setCurrentBlock ( string  $part = self::DEFAULT_BLOCK)

Sets the template to the given block.

Implements ilGlobalTemplateInterface.

Definition at line 355 of file class.ilRTEGlobalTemplate.php.

Referenced by fillBodyClass(), fillJavascriptFile(), and printToStdout().

355  : bool
356  {
357  return $this->template->setCurrentBlock($part);
358  }
+ Here is the caller graph for this function:

◆ setDescription()

ilRTEGlobalTemplate::setDescription ( string  $a_descr)

Sets description below title in standard template.

Implements ilGlobalTemplateInterface.

Definition at line 207 of file class.ilRTEGlobalTemplate.php.

207  : void
208  {
209  }

◆ setFileUploadRefId()

ilRTEGlobalTemplate::setFileUploadRefId ( int  $a_ref_id)

Enables the file upload into this object by dropping a file.

Implements ilGlobalTemplateInterface.

Definition at line 341 of file class.ilRTEGlobalTemplate.php.

341  : void
342  {
343  }

◆ setHeaderActionMenu()

ilRTEGlobalTemplate::setHeaderActionMenu ( string  $a_header)

Set header action menu.

Implements ilGlobalTemplateInterface.

Definition at line 223 of file class.ilRTEGlobalTemplate.php.

223  : void
224  {
225  }

◆ setHeaderPageTitle()

ilRTEGlobalTemplate::setHeaderPageTitle ( string  $a_title)

Sets the title of the page (for browser window).

Implements ilGlobalTemplateInterface.

Definition at line 227 of file class.ilRTEGlobalTemplate.php.

227  : void
228  {
229  }

◆ setLeftContent()

ilRTEGlobalTemplate::setLeftContent ( string  $a_html)

Sets content of left column.

Implements ilGlobalTemplateInterface.

Definition at line 248 of file class.ilRTEGlobalTemplate.php.

248  : void
249  {
250  }

◆ setLeftNavContent()

ilRTEGlobalTemplate::setLeftNavContent ( string  $a_content)

Sets content of left navigation column.

Implements ilGlobalTemplateInterface.

Definition at line 252 of file class.ilRTEGlobalTemplate.php.

252  : void
253  {
254  }

◆ setLocator()

ilRTEGlobalTemplate::setLocator ( )

Insert locator.

Implements ilGlobalTemplateInterface.

Definition at line 231 of file class.ilRTEGlobalTemplate.php.

231  : void
232  {
233  }

◆ setLoginTargetPar()

ilRTEGlobalTemplate::setLoginTargetPar ( string  $a_val)

Set target parameter for login (public sector).

This is used by the main menu

Implements ilGlobalTemplateInterface.

Definition at line 264 of file class.ilRTEGlobalTemplate.php.

264  : void
265  {
266  }

◆ setOnScreenMessage()

ilRTEGlobalTemplate::setOnScreenMessage ( string  $type,
string  $a_txt,
bool  $a_keep = false 
)

Set a message to be displayed to the user.

Please use instead of ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure().

Implements ilGlobalTemplateInterface.

Definition at line 75 of file class.ilRTEGlobalTemplate.php.

75  : void
76  {
77  }

◆ setPageFormAction()

ilRTEGlobalTemplate::setPageFormAction ( string  $a_action)

Sets the pages form action.

Implements ilGlobalTemplateInterface.

Definition at line 260 of file class.ilRTEGlobalTemplate.php.

260  : void
261  {
262  }

◆ setPermanentLink()

ilRTEGlobalTemplate::setPermanentLink ( string  $a_type,
?int  $a_id,
string  $a_append = "",
string  $a_target = "",
string  $a_title = "" 
)

Generates and sets a permanent ilias link.

Implements ilGlobalTemplateInterface.

Definition at line 328 of file class.ilRTEGlobalTemplate.php.

334  : void {
335  }

◆ setRightContent()

ilRTEGlobalTemplate::setRightContent ( string  $a_html)

Sets content of right column.

Implements ilGlobalTemplateInterface.

Definition at line 256 of file class.ilRTEGlobalTemplate.php.

256  : void
257  {
258  }

◆ setSubTabs()

ilRTEGlobalTemplate::setSubTabs ( string  $a_tabs_html)

sets subtabs in standard template

Implements ilGlobalTemplateInterface.

Definition at line 240 of file class.ilRTEGlobalTemplate.php.

240  : void
241  {
242  }

◆ setTabs()

ilRTEGlobalTemplate::setTabs ( string  $a_tabs_html)

sets tabs in standard template

Implements ilGlobalTemplateInterface.

Definition at line 235 of file class.ilRTEGlobalTemplate.php.

235  : void
236  {
237  }

◆ setTitle()

ilRTEGlobalTemplate::setTitle ( string  $a_title,
bool  $hidden = false 
)

Sets title in standard template.

Will override the header_page_title.

Implements ilGlobalTemplateInterface.

Definition at line 203 of file class.ilRTEGlobalTemplate.php.

203  : void
204  {
205  }

◆ setTitleIcon()

ilRTEGlobalTemplate::setTitleIcon ( string  $a_icon_path,
string  $a_icon_desc = "" 
)

set title icon

Implements ilGlobalTemplateInterface.

Definition at line 211 of file class.ilRTEGlobalTemplate.php.

211  : void
212  {
213  }

◆ setTreeFlatIcon()

ilRTEGlobalTemplate::setTreeFlatIcon ( string  $a_link,
string  $a_mode 
)

Sets a tree or flat icon.

Parameters
string$a_mode("tree" | "flat")

Implements ilGlobalTemplateInterface.

Definition at line 313 of file class.ilRTEGlobalTemplate.php.

313  : void
314  {
315  }

◆ setVariable()

ilRTEGlobalTemplate::setVariable ( string  $variable,
  $value = '' 
)

Sets the given variable to the given value.

Parameters
mixed$value

Implements ilGlobalTemplateInterface.

Definition at line 350 of file class.ilRTEGlobalTemplate.php.

Referenced by fillBodyClass(), and fillJavascriptFile().

350  : void
351  {
352  $this->template->setVariable($variable, $value);
353  }
+ Here is the caller graph for this function:

◆ touchBlock()

ilRTEGlobalTemplate::touchBlock ( string  $block)

overwrites ITX::touchBlock.

Implements ilGlobalTemplateInterface.

Definition at line 360 of file class.ilRTEGlobalTemplate.php.

360  : bool
361  {
362  return $this->template->touchBlock($block);
363  }

Field Documentation

◆ $body_class

string ilRTEGlobalTemplate::$body_class = ''
protected

Definition at line 34 of file class.ilRTEGlobalTemplate.php.

◆ $js_files

array ilRTEGlobalTemplate::$js_files = [0 => './Services/JavaScript/js/Basic.js']
protected

Definition at line 39 of file class.ilRTEGlobalTemplate.php.

◆ $js_files_batch

array ilRTEGlobalTemplate::$js_files_batch = ['./Services/JavaScript/js/Basic.js' => 1]
protected

Definition at line 51 of file class.ilRTEGlobalTemplate.php.

◆ $js_files_vp

array ilRTEGlobalTemplate::$js_files_vp = ['./Services/JavaScript/js/Basic.js' => true]
protected

Definition at line 45 of file class.ilRTEGlobalTemplate.php.

◆ $lightbox

array ilRTEGlobalTemplate::$lightbox = []
protected

Definition at line 31 of file class.ilRTEGlobalTemplate.php.

◆ $page_form_action

string ilRTEGlobalTemplate::$page_form_action = ''
protected

Definition at line 29 of file class.ilRTEGlobalTemplate.php.

◆ $permanent_link

bool ilRTEGlobalTemplate::$permanent_link = false
protected

Definition at line 30 of file class.ilRTEGlobalTemplate.php.

◆ $standard_template_loaded

bool ilRTEGlobalTemplate::$standard_template_loaded = false
protected

Definition at line 32 of file class.ilRTEGlobalTemplate.php.

◆ $template

ilTemplate ilRTEGlobalTemplate::$template
protected

Definition at line 33 of file class.ilRTEGlobalTemplate.php.

◆ $tree_flat_link

string ilRTEGlobalTemplate::$tree_flat_link = ''
protected

Definition at line 28 of file class.ilRTEGlobalTemplate.php.


The documentation for this class was generated from the following file: