ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilRTEGlobalTemplate Class Reference

Special template class to simplify handling of ITX/PEAR. 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...
 
 addAdminPanelToolbar (ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
 
 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...
 
- Public Member Functions inherited from ILIAS\UICore\GlobalTemplate
 addAdminPanelToolbar (\ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
 Add admin panel commands as toolbar. More...
 

Protected Member Functions

 fillJavascriptFile (string $file, string $vers)
 

Protected Attributes

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

Private Member Functions

 fillBodyClass ()
 

Additional Inherited Members

- Data Fields inherited from ILIAS\UICore\GlobalTemplate
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

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 52 of file class.ilRTEGlobalTemplate.php.

References XapiProxy\$plugin, and setBodyClass().

60  {
61  $this->setBodyClass('std');
62  $this->template = new ilTemplate($file, $flag1, $flag2, $in_module, $vars, $plugin, $a_use_cache);
63  }
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 
)

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

318  : void {
319  }

◆ addBlockFile()

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

overwrites ITX::addBlockFile

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by loadStandardTemplate().

363  : bool
364  {
365  return $this->template->addBlockFile($var, $block, $template_name, $in_module);
366  }
+ 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 ILIAS\UICore\GlobalTemplate.

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

163  : void
164  {
165  }

◆ addInlineCss()

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

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

Implements ILIAS\UICore\GlobalTemplate.

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

167  : void
168  {
169  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

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

◆ addOnLoadCode()

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

Add on load code.

Implements ILIAS\UICore\GlobalTemplate.

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

101  : void
102  {
103  }

◆ blockExists()

ilRTEGlobalTemplate::blockExists ( string  $block_name)

check if block exists in actual template

Parameters
string$block_name

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by fillBodyClass(), and fillJavaScriptFiles().

368  : bool
369  {
370  return $this->template->blockExists($block_name);
371  }
+ Here is the caller graph for this function:

◆ clearHeader()

ilRTEGlobalTemplate::clearHeader ( )

Clear header.

Implements ILIAS\UICore\GlobalTemplate.

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

216  : void
217  {
218  }

◆ fillBodyClass()

ilRTEGlobalTemplate::fillBodyClass ( )
private

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

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

Referenced by printToStdout().

176  : void
177  {
178  if ($this->body_class !== '' && $this->blockExists('body_class')) {
179  $this->setCurrentBlock('body_class');
180  $this->setVariable('BODY_CLASS', $this->body_class);
181  $this->parseCurrentBlock();
182  }
183  }
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 152 of file class.ilRTEGlobalTemplate.php.

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

Referenced by fillJavaScriptFiles().

152  : void
153  {
154  $this->setCurrentBlock('js_file');
155  if ($this->js_files_vp[$file]) {
156  $this->setVariable('JS_FILE', ilUtil::appendUrlParameterString($file, $vers));
157  } else {
158  $this->setVariable('JS_FILE', $file);
159  }
160  $this->parseCurrentBlock();
161  }
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 ILIAS\UICore\GlobalTemplate.

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

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

Referenced by printToStdout().

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

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

338  : string
339  {
340  return $this->template->get($part);
341  }

◆ getOnLoadCodeForAsynch()

ilRTEGlobalTemplate::getOnLoadCodeForAsynch ( )

Get js onload code for ajax calls.

Implements ILIAS\UICore\GlobalTemplate.

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

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

◆ 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 ILIAS\UICore\GlobalTemplate.

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

273  : string {
274  return '';
275  }

◆ hideFooter()

ilRTEGlobalTemplate::hideFooter ( )

Make the template hide the footer.

Implements ILIAS\UICore\GlobalTemplate.

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

70  : void
71  {
72  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

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

185  : void
186  {
187  if ($this->standard_template_loaded) {
188  return;
189  }
190 
193 
194  $this->addBlockFile('CONTENT', 'content', 'tpl.adm_content.html');
195  $this->addBlockFile('STATUSLINE', 'statusline', 'tpl.statusline.html');
196 
197  $this->standard_template_loaded = true;
198  }
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 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 ILIAS\UICore\GlobalTemplate.

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

Referenced by fillBodyClass(), and fillJavascriptFile().

358  : bool
359  {
360  return $this->template->parseCurrentBlock($block_name);
361  }
+ 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 ILIAS\UICore\GlobalTemplate.

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

References $DIC, $http, fillBodyClass(), fillJavaScriptFiles(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), ilYuiUtil\initDom(), and setCurrentBlock().

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

◆ printToString()

ilRTEGlobalTemplate::printToString ( )

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

Implements ILIAS\UICore\GlobalTemplate.

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

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

◆ resetHeaderBlock()

ilRTEGlobalTemplate::resetHeaderBlock ( bool  $a_reset_header_action = true)

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

Implements ILIAS\UICore\GlobalTemplate.

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

330  : void
331  {
332  }

◆ resetJavascript()

ilRTEGlobalTemplate::resetJavascript ( )

Reset javascript files.

Implements ILIAS\UICore\GlobalTemplate.

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

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

◆ setAlertProperties()

ilRTEGlobalTemplate::setAlertProperties ( array  $alerts)

Set alert properties.

Parameters
array<int,array>$alerts

Implements ILIAS\UICore\GlobalTemplate.

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

212  : void
213  {
214  }

◆ setBodyClass()

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

Sets the body-tags class.

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by __construct().

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

◆ setContent()

ilRTEGlobalTemplate::setContent ( string  $a_html)

Sets content for standard template.

Implements ILIAS\UICore\GlobalTemplate.

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

241  : void
242  {
243  }

◆ setCurrentBlock()

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

Sets the template to the given block.

Implements ILIAS\UICore\GlobalTemplate.

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

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

348  : bool
349  {
350  return $this->template->setCurrentBlock($part);
351  }
+ Here is the caller graph for this function:

◆ setDescription()

ilRTEGlobalTemplate::setDescription ( string  $a_descr)

Sets description below title in standard template.

Implements ILIAS\UICore\GlobalTemplate.

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

204  : void
205  {
206  }

◆ setFileUploadRefId()

ilRTEGlobalTemplate::setFileUploadRefId ( int  $a_ref_id)

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

Implements ILIAS\UICore\GlobalTemplate.

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

334  : void
335  {
336  }

◆ setHeaderActionMenu()

ilRTEGlobalTemplate::setHeaderActionMenu ( string  $a_header)

Set header action menu.

Implements ILIAS\UICore\GlobalTemplate.

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

220  : void
221  {
222  }

◆ setHeaderPageTitle()

ilRTEGlobalTemplate::setHeaderPageTitle ( string  $a_title)

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

Implements ILIAS\UICore\GlobalTemplate.

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

224  : void
225  {
226  }

◆ setLeftContent()

ilRTEGlobalTemplate::setLeftContent ( string  $a_html)

Sets content of left column.

Implements ILIAS\UICore\GlobalTemplate.

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

245  : void
246  {
247  }

◆ setLeftNavContent()

ilRTEGlobalTemplate::setLeftNavContent ( string  $a_content)

Sets content of left navigation column.

Implements ILIAS\UICore\GlobalTemplate.

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

249  : void
250  {
251  }

◆ setLocator()

ilRTEGlobalTemplate::setLocator ( )

Insert locator.

Implements ILIAS\UICore\GlobalTemplate.

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

228  : void
229  {
230  }

◆ setLoginTargetPar()

ilRTEGlobalTemplate::setLoginTargetPar ( string  $a_val)

Set target parameter for login (public sector).

This is used by the main menu

Implements ILIAS\UICore\GlobalTemplate.

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

261  : void
262  {
263  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

74  : void
75  {
76  }

◆ setPageFormAction()

ilRTEGlobalTemplate::setPageFormAction ( string  $a_action)

Sets the pages form action.

Implements ILIAS\UICore\GlobalTemplate.

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

257  : void
258  {
259  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

327  : void {
328  }

◆ setRightContent()

ilRTEGlobalTemplate::setRightContent ( string  $a_html)

Sets content of right column.

Implements ILIAS\UICore\GlobalTemplate.

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

253  : void
254  {
255  }

◆ setSubTabs()

ilRTEGlobalTemplate::setSubTabs ( string  $a_tabs_html)

sets subtabs in standard template

Implements ILIAS\UICore\GlobalTemplate.

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

237  : void
238  {
239  }

◆ setTabs()

ilRTEGlobalTemplate::setTabs ( string  $a_tabs_html)

sets tabs in standard template

Implements ILIAS\UICore\GlobalTemplate.

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

232  : void
233  {
234  }

◆ setTitle()

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

Sets title in standard template.

Will override the header_page_title.

Implements ILIAS\UICore\GlobalTemplate.

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

200  : void
201  {
202  }

◆ setTitleIcon()

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

set title icon

Implements ILIAS\UICore\GlobalTemplate.

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

208  : void
209  {
210  }

◆ setTreeFlatIcon()

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

Sets a tree or flat icon.

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

Implements ILIAS\UICore\GlobalTemplate.

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

310  : void
311  {
312  }

◆ setVariable()

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

Sets the given variable to the given value.

Parameters
mixed$value

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by fillBodyClass(), and fillJavascriptFile().

343  : void
344  {
345  $this->template->setVariable($variable, $value);
346  }
+ Here is the caller graph for this function:

◆ touchBlock()

ilRTEGlobalTemplate::touchBlock ( string  $block)

overwrites ITX::touchBlock.

Implements ILIAS\UICore\GlobalTemplate.

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

353  : bool
354  {
355  return $this->template->touchBlock($block);
356  }

Field Documentation

◆ $body_class

string ilRTEGlobalTemplate::$body_class = ''
protected

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

◆ $js_files

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

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

◆ $js_files_batch

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

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

◆ $js_files_vp

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

Definition at line 44 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 31 of file class.ilRTEGlobalTemplate.php.

◆ $template

ilTemplate ilRTEGlobalTemplate::$template
protected

Definition at line 32 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: