TYPO3 CMS  TYPO3_7-6
ContainerViewHelper.php
Go to the documentation of this file.
1 <?php
2 /*
3  * This file is part of the TYPO3 CMS project.
4  *
5  * It is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License, either version 2
7  * of the License, or any later version.
8  *
9  * For the full copyright and license information, please read the
10  * LICENSE.txt file that was distributed with this source code.
11  *
12  * The TYPO3 project - inspiring people to share!
13  */
15 
40 {
60  public function render($pageTitle = '', $enableClickMenu = true, $loadExtJs = false, $loadExtJsTheme = true, $enableExtJsDebug = false, $loadJQuery = false, $includeCssFiles = null, $includeJsFiles = null, $addJsInlineLabels = null, $includeRequireJsModules = null, $addJsInlineLabelFiles = null, $addJsInline = null)
61  {
62  if (is_array($addJsInlineLabelFiles)) {
63  foreach ($addJsInlineLabelFiles as $addJsInlineLabelFile) {
64  $this->getPageRenderer()->addInlineLanguageLabelFile($addJsInlineLabelFile['file'], $addJsInlineLabelFile['prefix']);
65  }
66  }
67 
68  $content = parent::render($pageTitle, $enableClickMenu, $loadExtJs, $loadExtJsTheme, $enableExtJsDebug, $loadJQuery, $includeCssFiles, $includeJsFiles, $addJsInlineLabels, $includeRequireJsModules);
69 
70  $doc = $this->getDocInstance();
71  $doc->JScode .= $doc->wrapScriptTags($addJsInline);
72  return $doc->insertStylesAndJS($content);
73  }
74 }
render($pageTitle='', $enableClickMenu=true, $loadExtJs=false, $loadExtJsTheme=true, $enableExtJsDebug=false, $loadJQuery=false, $includeCssFiles=null, $includeJsFiles=null, $addJsInlineLabels=null, $includeRequireJsModules=null, $addJsInlineLabelFiles=null, $addJsInline=null)