TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Utility\FormUtility Class Reference
Inheritance diagram for TYPO3\CMS\Form\Utility\FormUtility:
TYPO3\CMS\Core\SingletonInterface tx_form_Common

Public Member Functions

 __construct ()
 
 getFormObjects ()
 
 setFormObjects (array $formObjects)
 
 initializeFormObjects ()
 
 initializePageTsConfig ()
 
 getLastPartOfClassName ($object, $lowercase=FALSE)
 

Static Public Member Functions

static getInstance ()
 

Protected Attributes

 $formObjects = array()
 

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! Common helper methods.

Author
Oliver Hader olive.nosp@m.r.ha.nosp@m.der@t.nosp@m.ypo3.nosp@m..org

Definition at line 22 of file FormUtility.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Utility\FormUtility::__construct ( )

Initializes this object.

Definition at line 41 of file FormUtility.php.

References TYPO3\CMS\Form\Utility\FormUtility\setFormObjects().

Member Function Documentation

◆ getFormObjects()

TYPO3\CMS\Form\Utility\FormUtility::getFormObjects ( )

Gets the available form objects.

Returns
array

Definition at line 72 of file FormUtility.php.

References TYPO3\CMS\Form\Utility\FormUtility\$formObjects.

Referenced by TYPO3\CMS\Form\Utility\FormUtility\initializeFormObjects().

◆ getInstance()

◆ getLastPartOfClassName()

TYPO3\CMS\Form\Utility\FormUtility::getLastPartOfClassName (   $object,
  $lowercase = FALSE 
)

Gets the last part of the current object's class name. e.g. for 'tx_form_View_Confirmation_Additional' it will be 'Additional'

Parameters
object$objectThe object to be used
boolean$lowercaseWhether to convert to lowercase
Returns
string

Definition at line 120 of file FormUtility.php.

◆ initializeFormObjects()

TYPO3\CMS\Form\Utility\FormUtility::initializeFormObjects ( )

Initializes the available form objects.

Returns

Definition at line 91 of file FormUtility.php.

References $GLOBALS, and TYPO3\CMS\Form\Utility\FormUtility\getFormObjects().

◆ initializePageTsConfig()

TYPO3\CMS\Form\Utility\FormUtility::initializePageTsConfig ( )

Initializes the Page TSconfig properties.

Returns

Definition at line 107 of file FormUtility.php.

References TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addPageTSConfig().

◆ setFormObjects()

TYPO3\CMS\Form\Utility\FormUtility::setFormObjects ( array  $formObjects)

Sets the available form objects.

Parameters
array$formObjects
Returns
void

Definition at line 82 of file FormUtility.php.

References TYPO3\CMS\Form\Utility\FormUtility\$formObjects.

Referenced by TYPO3\CMS\Form\Utility\FormUtility\__construct().

Member Data Documentation

◆ $formObjects

TYPO3\CMS\Form\Utility\FormUtility::$formObjects = array()
protected