PHP Class tl_style

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
checkCategory ( mixed $varValue ) : string Automatically set the category if not set
checkPermission ( ) Check permissions to edit the table
filePicker ( DataContainer $dc ) : string Return the file picker wizard
scheduleUpdate ( ) Schedule a style sheet update
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 format definition
updateAfterRestore ( integer $id, string $table, array $data ) Update a style sheet after a version has been restored
updateStyleSheet ( ) Check for modified style sheets and update them if necessary

Method Details

__construct() public method

Import the back end user object
public __construct ( )

checkCategory() public method

Automatically set the category if not set
public checkCategory ( mixed $varValue ) : string
$varValue mixed
return string

checkPermission() public method

Check permissions to edit the table
public checkPermission ( )

filePicker() public method

Return the file picker wizard
public filePicker ( DataContainer $dc ) : string
$dc DataContainer
return string

scheduleUpdate() public method

This method is triggered when a single style or multiple styles are modified (edit/editAll), duplicated (copy/copyAll), moved (cut/cutAll) or deleted (delete/deleteAll).
public scheduleUpdate ( )

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 format definition
public toggleVisibility ( integer $intId, boolean $blnVisible, DataContainer $dc = null )
$intId integer
$blnVisible boolean
$dc DataContainer

updateAfterRestore() public method

Update a style sheet after a version has been restored
public updateAfterRestore ( integer $id, string $table, array $data )
$id integer
$table string
$data array

updateStyleSheet() public method

Check for modified style sheets and update them if necessary
public updateStyleSheet ( )