TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\View\Confirmation\ConfirmationView Class Reference
Inheritance diagram for TYPO3\CMS\Form\View\Confirmation\ConfirmationView:
TYPO3\CMS\Form\View\Confirmation\Element\ContainerElementView TYPO3\CMS\Form\View\Confirmation\Element\AbstractElementView tx_form_View_Confirmation

Public Member Functions

 __construct (\TYPO3\CMS\Form\Domain\Model\Form $model, array $typoscript)
 
 setData (\TYPO3\CMS\Form\Domain\Model\Form $model)
 
 get ()
 
- Public Member Functions inherited from TYPO3\CMS\Form\View\Confirmation\Element\ContainerElementView
 getChildElements (\DOMDocument $dom)
 
 createChildElementFromModel ($modelChild)
 
- Public Member Functions inherited from TYPO3\CMS\Form\View\Confirmation\Element\AbstractElementView
 __construct ($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)
 
 getInputValue ()
 
 getElementWrapId ()
 
 getElementWrapType ()
 
 getElementWraps ()
 
 noWrap ()
 

Public Attributes

const LOCALISATION_OBJECT_NAME = 'tx_form_view_confirmation'
 

Protected Member Functions

 getMessage ()
 
 getConfirmationButtons ()
 
 getLocalLanguageLabel ($type)
 
- Protected Member Functions inherited from TYPO3\CMS\Form\View\Confirmation\Element\AbstractElementView
 parseXML (\DOMDocument $dom, \DOMNode $reference, $emptyElement=FALSE)
 
 createAdditional ($class)
 

Protected Attributes

 $layout
 
 $typoscript = array()
 
 $localizationHandler
 
 $localCobj
 
- Protected Attributes inherited from TYPO3\CMS\Form\View\Confirmation\Element\ContainerElementView
 $containerWrap
 
- Protected Attributes inherited from TYPO3\CMS\Form\View\Confirmation\Element\AbstractElementView
 $model
 
 $elementWrap
 
 $noWrap = FALSE
 

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 ConfirmationView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::__construct ( \TYPO3\CMS\Form\Domain\Model\Form  $model,
array  $typoscript 
)

Constructor

Parameters
\TYPO3\CMS\Form\Domain\Model\Form$model
array$typoscript

Definition at line 66 of file ConfirmationView.php.

References TYPO3\CMS\Form\View\Confirmation\ConfirmationView\$typoscript, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ get()

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::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 90 of file ConfirmationView.php.

References TYPO3\CMS\Form\View\Confirmation\ConfirmationView\getConfirmationButtons(), TYPO3\CMS\Form\View\Confirmation\ConfirmationView\getMessage(), and TYPO3\CMS\Form\View\Confirmation\Element\AbstractElementView\render().

◆ getConfirmationButtons()

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::getConfirmationButtons ( )
protected

◆ getLocalLanguageLabel()

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::getLocalLanguageLabel (   $type)
protected

Get the local language label(s) for the message

Parameters
string$typeThe type
Returns
string The local language message label

Definition at line 162 of file ConfirmationView.php.

Referenced by TYPO3\CMS\Form\View\Confirmation\ConfirmationView\getConfirmationButtons(), and TYPO3\CMS\Form\View\Confirmation\ConfirmationView\getMessage().

◆ getMessage()

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::getMessage ( )
protected

Construct the message

The message is a cObj, which can be overriden using the typoscript setting confirmation.message, like

confirmation.message = TEXT confirmation.message.value = Here some text confirmation.message.wrap =

|

Returns
string XHTML string containing the message

Definition at line 115 of file ConfirmationView.php.

References TYPO3\CMS\Form\View\Confirmation\ConfirmationView\getLocalLanguageLabel().

Referenced by TYPO3\CMS\Form\View\Confirmation\ConfirmationView\get().

◆ setData()

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::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 79 of file ConfirmationView.php.

Member Data Documentation

◆ $layout

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

Definition at line 36 of file ConfirmationView.php.

◆ $localCobj

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::$localCobj
protected

Definition at line 58 of file ConfirmationView.php.

◆ $localizationHandler

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::$localizationHandler
protected

Definition at line 51 of file ConfirmationView.php.

◆ $typoscript

TYPO3\CMS\Form\View\Confirmation\ConfirmationView::$typoscript = array()
protected

◆ LOCALISATION_OBJECT_NAME

const TYPO3\CMS\Form\View\Confirmation\ConfirmationView::LOCALISATION_OBJECT_NAME = 'tx_form_view_confirmation'

Definition at line 29 of file ConfirmationView.php.