PHP Class tl_theme

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
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

Protected Methods

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

Method Details

__construct() public method

Import the back end user object
public __construct ( )

addPreviewImage() public method

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

checkPermission() public method

Check permissions to edit the table
public checkPermission ( )

doGetTemplateFolders() protected method

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

editCss() public method

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
return string

editImageSizes() public method

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
return string

editLayout() public method

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
return string

editModules() public method

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
return string

exportTheme() public method

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
return string

getTemplateFolders() public method

Return all template folders as array
public getTemplateFolders ( ) : array
return array

importTheme() public method

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
return string

scheduleUpdate() public method

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

themeStore() public method

Return the theme store link
public themeStore ( ) : string
return string

updateStyleSheet() public method

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