PHP Class tl_form_field

Provide miscellaneous methods that are used by the data configuration array.
Inheritance: extends Backend
Datei anzeigen Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( ) Import the back end user object
checkPermission ( ) Check permissions to edit table tl_form_field
getFields ( DataContainer $dc ) : array Return a list of form fields
getFormFieldTemplates ( ) : array Return all form field templates as array
listFormFields ( array $arrRow ) : string Add the type of input field
toggleIcon ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "toggle visibility" button
toggleVisibility ( integer $intId, boolean $blnVisible, DataContainer $dc = null ) Toggle the visibility of a form field

Method Details

__construct() public method

Import the back end user object
public __construct ( )

checkPermission() public method

Check permissions to edit table tl_form_field
public checkPermission ( )

getFields() public method

Return a list of form fields
public getFields ( DataContainer $dc ) : array
$dc DataContainer
return array

getFormFieldTemplates() public method

Return all form field templates as array
public getFormFieldTemplates ( ) : array
return array

listFormFields() public method

Add the type of input field
public listFormFields ( array $arrRow ) : string
$arrRow array
return string

toggleIcon() public method

Return the "toggle visibility" button
public toggleIcon ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string
$row array
$href string
$label string
$title string
$icon string
$attributes string
return string

toggleVisibility() public method

Toggle the visibility of a form field
public toggleVisibility ( integer $intId, boolean $blnVisible, DataContainer $dc = null )
$intId integer
$blnVisible boolean
$dc DataContainer