TYPO3 CMS  TYPO3_6-2
AbstractAttribute.php
Go to the documentation of this file.
1 <?php
3 
22 abstract class AbstractAttribute {
23 
29  protected $value;
30 
36  protected $elementId;
37 
43  protected $localCobj;
44 
51  public function __construct($value, $elementId) {
53  $this->localCobj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
54  $this->setValue($value);
55  $this->elementId = (int)$elementId;
56  }
57 
64  public function setValue($value) {
65  if (is_string($value) === FALSE) {
66  $value = '';
67  }
68  $this->value = $value;
69  }
70 
76  abstract public function getValue();
77 
78 }