TYPO3 CMS  TYPO3_6-2
FormView.php
Go to the documentation of this file.
1 <?php
3 
23 
27  protected $expectedModelName = 'TYPO3\\CMS\\Form\\Domain\\Model\\Form';
28 
34  protected $layout = '
35  <form>
36  <containerWrap />
37  </form>';
38 
45  public function setData(\TYPO3\CMS\Form\Domain\Model\Form $model) {
46  $this->model = (object) $model;
47  }
48 
56  public function get() {
57  $node = $this->render('element', FALSE);
58  $content = chr(10) . html_entity_decode($node->saveXML($node->firstChild), ENT_QUOTES, 'UTF-8') . chr(10);
59  return $content;
60  }
61 
62 }
setData(\TYPO3\CMS\Form\Domain\Model\Form $model)
Definition: FormView.php:45
render($type='element', $returnFirstChild=TRUE)