‪TYPO3CMS  10.4
ContentObjectArrayInternalContentObject.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
26 {
33  public function ‪render($conf = [])
34  {
35  if (!is_array($conf)) {
36  $this->‪getTimeTracker()->‪setTSlogMessage('No elements in this content object array (COA_INT).', 2);
37  return '';
38  }
39  $substKey = 'INT_SCRIPT.' . $this->‪getTypoScriptFrontendController()->‪uniqueHash();
40  $content = '<!--' . $substKey . '-->';
41  $this->‪getTypoScriptFrontendController()->config['INTincScript'][$substKey] = [
42  'conf' => $conf,
43  'cObj' => serialize($this->cObj),
44  'type' => 'COA'
45  ];
46  return $content;
47  }
48 
52  protected function ‪getTimeTracker()
53  {
54  return GeneralUtility::makeInstance(TimeTracker::class);
55  }
56 
61  {
62  return ‪$GLOBALS['TSFE'];
63  }
64 }
‪TYPO3\CMS\Frontend\ContentObject
Definition: AbstractContentObject.php:16
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject\render
‪string render($conf=[])
Definition: ContentObjectArrayInternalContentObject.php:33
‪TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController\uniqueHash
‪string uniqueHash($str='')
Definition: TypoScriptFrontendController.php:3492
‪TYPO3\CMS\Core\TimeTracker\TimeTracker\setTSlogMessage
‪setTSlogMessage($content, $num=0)
Definition: TimeTracker.php:215
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject\getTimeTracker
‪TimeTracker getTimeTracker()
Definition: ContentObjectArrayInternalContentObject.php:52
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject\getTypoScriptFrontendController
‪TypoScriptFrontendController getTypoScriptFrontendController()
Definition: ContentObjectArrayInternalContentObject.php:60
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
Definition: AbstractContentObject.php:25
‪TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
Definition: TypoScriptFrontendController.php:98
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject
Definition: ContentObjectArrayInternalContentObject.php:26
‪TYPO3\CMS\Core\TimeTracker\TimeTracker
Definition: TimeTracker.php:30