TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\View\Form\FormView Class Reference
Inheritance diagram for TYPO3\CMS\Form\View\Form\FormView:
TYPO3\CMS\Form\View\Form\Element\ContainerElementView TYPO3\CMS\Form\View\Form\Element\AbstractElementView tx_form_View_Form

Public Member Functions

 setData (\TYPO3\CMS\Form\Domain\Model\Form $model)
 
 get ()
 
- Public Member Functions inherited from TYPO3\CMS\Form\View\Form\Element\ContainerElementView
 getChildElements (\DOMDocument $dom)
 
 createChildElementFromModel ($modelChild)
 
- Public Member Functions inherited from TYPO3\CMS\Form\View\Form\Element\AbstractElementView
 __construct (\TYPO3\CMS\Form\Domain\Model\Element\AbstractElement $model)
 
 render ($type='element', $returnFirstChild=TRUE)
 
 replaceNodeWithFragment (\DOMDocument $dom, \DOMNode $node, \DOMNode $value)
 
 setAttributes (\DOMElement $domElement)
 
 setAttribute (\DOMElement $domElement, $key)
 
 setAttributeWithValueofOtherAttribute (\DOMElement $domElement, $key, $other)
 
 getAdditional ($key)
 
 getElementData ($encodeSpecialCharacters=TRUE)
 
 getElementWrapId ()
 
 getElementWrapType ()
 
 getElementWraps ()
 
 noWrap ()
 

Protected Attributes

 $expectedModelName = 'TYPO3\\CMS\\Form\\Domain\\Model\\Form'
 
 $layout
 
- Protected Attributes inherited from TYPO3\CMS\Form\View\Form\Element\ContainerElementView
 $containerWrap
 
- Protected Attributes inherited from TYPO3\CMS\Form\View\Form\Element\AbstractElementView
 $model
 
 $expectedModelName
 
 $elementWrap
 
 $noWrap = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Form\View\Form\Element\AbstractElementView
 isValidModel (\TYPO3\CMS\Form\Domain\Model\Element\AbstractElement $model)
 
 getExpectedModelName (\TYPO3\CMS\Form\Domain\Model\Element\AbstractElement $model)
 
 parseXML (\DOMDocument $dom, \DOMNode $reference)
 
 createAdditional ($class)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Main view layer for Forms.

Author
Patrick Broens patri.nosp@m.ck@p.nosp@m.atric.nosp@m.kbro.nosp@m.ens.n.nosp@m.l

Definition at line 22 of file FormView.php.

Member Function Documentation

◆ get()

TYPO3\CMS\Form\View\Form\FormView::get ( )

Start the main DOMdocument for the form Return it as a string using saveXML() to get a proper formatted output (when using formatOutput :-)

Returns
string XHTML string containing the whole form

Definition at line 56 of file FormView.php.

References TYPO3\CMS\Form\View\Form\Element\AbstractElementView\render().

◆ setData()

TYPO3\CMS\Form\View\Form\FormView::setData ( \TYPO3\CMS\Form\Domain\Model\Form  $model)

Set the data for the FORM tag

Parameters
\TYPO3\CMS\Form\Domain\Model\Form$formModelThe model of the form
Returns
void

Definition at line 45 of file FormView.php.

Member Data Documentation

◆ $expectedModelName

TYPO3\CMS\Form\View\Form\FormView::$expectedModelName = 'TYPO3\\CMS\\Form\\Domain\\Model\\Form'
protected

Definition at line 27 of file FormView.php.

◆ $layout

TYPO3\CMS\Form\View\Form\FormView::$layout
protected
Initial value:
= '
<form>
<containerWrap />
</form>'

Definition at line 34 of file FormView.php.