PHP Class tl_theme

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

Méthodes publiques

Méthode Description
__construct ( ) Import the back end user object
addPreviewImage ( array $row, string $label ) : string Add an image to each record
checkPermission ( ) Check permissions to edit the table
editCss ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "edit CSS" button
editImageSizes ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "edit image sizes" button
editLayout ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "edit page layouts" button
editModules ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "edit modules" button
exportTheme ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "export theme" button
getTemplateFolders ( ) : array Return all template folders as array
importTheme ( string $href, string $label, string $title, string $class, string $attributes ) : string Return the "import theme" link
scheduleUpdate ( ) Schedule a style sheet update
themeStore ( ) : string Return the theme store link
updateStyleSheet ( ) Check for modified style sheets and update them if necessary

Méthodes protégées

Méthode Description
doGetTemplateFolders ( string $path, integer $level ) : array Return all template folders as array

Method Details

__construct() public méthode

Import the back end user object
public __construct ( )

addPreviewImage() public méthode

Add an image to each record
public addPreviewImage ( array $row, string $label ) : string
$row array
$label string
Résultat string

checkPermission() public méthode

Check permissions to edit the table
public checkPermission ( )

doGetTemplateFolders() protected méthode

Return all template folders as array
protected doGetTemplateFolders ( string $path, integer $level ) : array
$path string
$level integer
Résultat array

editCss() public méthode

Return the "edit CSS" button
public editCss ( 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

editImageSizes() public méthode

Return the "edit image sizes" button
public editImageSizes ( 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

editLayout() public méthode

Return the "edit page layouts" button
public editLayout ( 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

editModules() public méthode

Return the "edit modules" button
public editModules ( 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

exportTheme() public méthode

Return the "export theme" button
public exportTheme ( 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

getTemplateFolders() public méthode

Return all template folders as array
public getTemplateFolders ( ) : array
Résultat array

importTheme() public méthode

Return the "import theme" link
public importTheme ( string $href, string $label, string $title, string $class, string $attributes ) : string
$href string
$label string
$title string
$class string
$attributes string
Résultat string

scheduleUpdate() public méthode

This method is triggered when a single theme or multiple themes are modified (edit/editAll) or duplicated (copy/copyAll).
public scheduleUpdate ( )

themeStore() public méthode

Return the theme store link
public themeStore ( ) : string
Résultat string

updateStyleSheet() public méthode

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