‪TYPO3CMS  10.4
TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper:

Public Member Functions

 initializeArguments ()
 
 initialize ()
 
string render ()
 
string renderCheckbox (array $configuration)
 

Public Attributes

array $viewHelperMapping
 
string $tagName = 'input'
 

Protected Member Functions

string renderColorPicker (array $configuration)
 
string renderOffsetField (array $configuration)
 
string renderWrapField (array $configuration)
 
string renderOptionSelect (array $configuration)
 
string renderPositiveIntegerField (array $configuration)
 
string renderIntegerField (array $configuration)
 
string renderTextField (array $configuration)
 
string renderSmallTextField (array $configuration)
 
string renderUserFunction (array $configuration)
 
string getFieldName (array $configuration)
 
string renderHiddenFieldForEmptyValue (array $configuration)
 
LanguageService null getLanguageService ()
 
 addIdAttribute (array $configuration)
 

Detailed Description

ViewHelper for rendering

  • ‪extension configuration forms in install tool (Settings -> Extension Configuration
  • ‪site settings in Sites Module (site settings per site configuration)

Definition at line 33 of file TypoScriptConstantsViewHelper.php.

Member Function Documentation

◆ addIdAttribute()

◆ getFieldName()

◆ getLanguageService()

LanguageService null TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::getLanguageService ( )
protected
Returns
‪LanguageService|null Returns null if we are in the install tool standalone mode

Definition at line 344 of file TypoScriptConstantsViewHelper.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\renderOptionSelect().

◆ initialize()

TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::initialize ( )

Create a fresh instance of $this->tag each time this VH is called.

Definition at line 77 of file TypoScriptConstantsViewHelper.php.

◆ initializeArguments()

TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::initializeArguments ( )

Initialize arguments of this ViewHelper

Definition at line 60 of file TypoScriptConstantsViewHelper.php.

◆ render()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::render ( )

Render

Returns
‪string the rendered tag

Definition at line 88 of file TypoScriptConstantsViewHelper.php.

◆ renderCheckbox()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderCheckbox ( array  $configuration)

◆ renderColorPicker()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderColorPicker ( array  $configuration)
protected

Render field of type color picker

Parameters
array$configuration
Returns
‪string

Definition at line 107 of file TypoScriptConstantsViewHelper.php.

References $output, TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\addIdAttribute(), and TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\getFieldName().

◆ renderHiddenFieldForEmptyValue()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderHiddenFieldForEmptyValue ( array  $configuration)
protected

Render a hidden field for empty values

Parameters
array$configuration
Returns
‪string

Definition at line 320 of file TypoScriptConstantsViewHelper.php.

References TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\getFieldName().

Referenced by TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\renderCheckbox().

◆ renderIntegerField()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderIntegerField ( array  $configuration)
protected

Render field of type "integer"

Parameters
array$configuration
Returns
‪string

Definition at line 224 of file TypoScriptConstantsViewHelper.php.

References TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\addIdAttribute(), and TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\getFieldName().

◆ renderOffsetField()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderOffsetField ( array  $configuration)
protected

Render field of type "offset"

Parameters
array$configuration
Returns
‪string

Definition at line 140 of file TypoScriptConstantsViewHelper.php.

References TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\addIdAttribute(), and TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\getFieldName().

◆ renderOptionSelect()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderOptionSelect ( array  $configuration)
protected

◆ renderPositiveIntegerField()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderPositiveIntegerField ( array  $configuration)
protected

◆ renderSmallTextField()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderSmallTextField ( array  $configuration)
protected

Render field of type "small text"

Parameters
array$configuration
Returns
‪string

Definition at line 262 of file TypoScriptConstantsViewHelper.php.

References TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\renderTextField().

◆ renderTextField()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderTextField ( array  $configuration)
protected

◆ renderUserFunction()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderUserFunction ( array  $configuration)
protected

Render field of type "userFunc"

Parameters
array$configuration
Returns
‪string

Definition at line 292 of file TypoScriptConstantsViewHelper.php.

References TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper\getFieldName().

◆ renderWrapField()

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::renderWrapField ( array  $configuration)
protected

Member Data Documentation

◆ $tagName

string TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::$tagName = 'input'

Definition at line 55 of file TypoScriptConstantsViewHelper.php.

◆ $viewHelperMapping

array TYPO3\CMS\Core\ViewHelpers\Form\TypoScriptConstantsViewHelper::$viewHelperMapping
Initial value:
= array(
'int' => 'renderIntegerField',
'int+' => 'renderPositiveIntegerField',
'integer' => 'renderIntegerField',
'color' => 'renderColorPicker',
'wrap' => 'renderWrapField',
'offset' => 'renderOffsetField',
'options' => 'renderOptionSelect',
'boolean' => 'renderCheckbox',
'user' => 'renderUserFunction',
'small' => 'renderSmallTextField',
'string' => 'renderTextField',
'input' => 'renderTextField',
'default' => 'renderTextField'
)

Definition at line 37 of file TypoScriptConstantsViewHelper.php.