TYPO3 CMS  TYPO3_6-2
HiddenElementView.php
Go to the documentation of this file.
1 <?php
3 
23 
30  public function __construct(\TYPO3\CMS\Form\Domain\Model\Element\HiddenElement $model, $spaces) {
31  parent::__construct($model, $spaces);
32  }
33 
37  public function render() {
38  $content = $this->getLabel() . ': ' . $this->getValue();
39  return str_repeat(chr(32), $this->spaces) . $content;
40  }
41 
45  protected function getLabel() {
46  $label = $this->model->getName();
47  return $label;
48  }
49 
53  protected function getValue() {
54  $value = $this->model->getAttributeValue('value');
55  return $value;
56  }
57 
58 }
__construct(\TYPO3\CMS\Form\Domain\Model\Element\HiddenElement $model, $spaces)