TYPO3 CMS  TYPO3_6-2
AbstractAdditionalElement.php
Go to the documentation of this file.
1 <?php
3 
22 abstract class AbstractAdditionalElement {
23 
29  protected $value;
30 
36  protected $type;
37 
43  protected $layout;
44 
50  protected $localCobj;
51 
58  public function __construct($type, $value) {
60  $this->localCobj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
61  $this->value = $value;
62  $this->type = $type;
63  }
64 
70  public function getLayout() {
71  return $this->layout;
72  }
73 
80  public function setLayout($layout) {
81  $this->layout = (string) $layout;
82  }
83 
89  abstract public function getValue();
90 
91 }