PHP Class tl_form

Provide miscellaneous methods that are used by the data configuration array.
Inheritance: extends Backend
Show file Open project: contao/core-bundle

Public Methods

Method Description
__construct ( ) Import the back end user object
checkPermission ( ) Check permissions to edit table tl_form
copyForm ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the copy form button
deleteForm ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the delete form button
editHeader ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the edit header button
generateAlias ( mixed $varValue, DataContainer $dc ) : mixed Auto-generate a form alias if it has not been set yet
getAllTables ( ) : array Get all tables and return them as array
getFormWrapperTemplates ( ) : array Return all form wrapper templates as array

Method Details

__construct() public method

Import the back end user object
public __construct ( )

checkPermission() public method

Check permissions to edit table tl_form
public checkPermission ( )

copyForm() public method

Return the copy form button
public copyForm ( 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

deleteForm() public method

Return the delete form button
public deleteForm ( 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

editHeader() public method

Return the edit header button
public editHeader ( 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

generateAlias() public method

Auto-generate a form alias if it has not been set yet
public generateAlias ( mixed $varValue, DataContainer $dc ) : mixed
$varValue mixed
$dc DataContainer
return mixed

getAllTables() public method

Get all tables and return them as array
public getAllTables ( ) : array
return array

getFormWrapperTemplates() public method

Return all form wrapper templates as array
public getFormWrapperTemplates ( ) : array
return array