TYPO3 CMS  TYPO3_6-2
HtmlView.php
Go to the documentation of this file.
1 <?php
3 
23 
29  protected $layout = '
30  <html>
31  <head>
32  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
33  </head>
34  <body>
35  <table cellspacing="0">
36  <containerWrap />
37  </table>
38  </body>
39  </html>
40  ';
41 
47  protected $typoscript = array();
48 
55 
61  protected $localCobj;
62 
66  public function __construct(\TYPO3\CMS\Form\Domain\Model\Form $model, array $typoscript) {
67  $this->localCobj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
68  $this->localizationHandler = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\Localization');
69  $this->typoscript = $typoscript;
70  parent::__construct($model);
71  }
72 
79  public function setData(\TYPO3\CMS\Form\Domain\Model\Form $model) {
80  $this->model = (object) $model;
81  }
82 
90  public function get() {
91  $node = $this->render('element', FALSE);
92  $content = chr(10) . html_entity_decode($node->saveXML($node->firstChild), ENT_QUOTES, 'UTF-8') . chr(10);
93  return $content;
94  }
95 
96 }
__construct(\TYPO3\CMS\Form\Domain\Model\Form $model, array $typoscript)
Definition: HtmlView.php:66
setData(\TYPO3\CMS\Form\Domain\Model\Form $model)
Definition: HtmlView.php:79