‪TYPO3CMS  10.4
AbstractContentObject.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 
20 
25 {
29  protected ‪$cObj;
30 
34  protected ‪$pageRenderer;
35 
42  {
43  $this->cObj = ‪$cObj;
44  }
45 
52  abstract public function ‪render($conf = []);
53 
59  public function ‪getContentObjectRenderer()
60  {
61  return ‪$this->cObj;
62  }
63 
67  protected function ‪getPageRenderer()
68  {
69  if ($this->pageRenderer === null) {
70  $this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
71  }
72 
74  }
75 }
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\$pageRenderer
‪PageRenderer $pageRenderer
Definition: AbstractContentObject.php:32
‪TYPO3\CMS\Frontend\ContentObject
Definition: AbstractContentObject.php:16
‪TYPO3\CMS\Core\Page\PageRenderer
Definition: PageRenderer.php:42
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
Definition: AbstractContentObject.php:25
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\$cObj
‪ContentObjectRenderer $cObj
Definition: AbstractContentObject.php:28
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\__construct
‪__construct(ContentObjectRenderer $cObj)
Definition: AbstractContentObject.php:39
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\getContentObjectRenderer
‪ContentObjectRenderer getContentObjectRenderer()
Definition: AbstractContentObject.php:57
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:97
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\getPageRenderer
‪PageRenderer getPageRenderer()
Definition: AbstractContentObject.php:65
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\render
‪string render($conf=[])