PHP Class tl_form_field

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

Méthodes publiques

Méthode 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 méthode

Import the back end user object
public __construct ( )

checkPermission() public méthode

Check permissions to edit table tl_form_field
public checkPermission ( )

getFields() public méthode

Return a list of form fields
public getFields ( DataContainer $dc ) : array
$dc DataContainer
Résultat array

getFormFieldTemplates() public méthode

Return all form field templates as array
public getFormFieldTemplates ( ) : array
Résultat array

listFormFields() public méthode

Add the type of input field
public listFormFields ( array $arrRow ) : string
$arrRow array
Résultat string

toggleIcon() public méthode

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
Résultat string

toggleVisibility() public méthode

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