PHP 클래스 tl_theme

Provide miscellaneous methods that are used by the data configuration array.
상속: extends Backend
파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
doGetTemplateFolders ( string $path, integer $level ) : array Return all template folders as array

메소드 상세

__construct() 공개 메소드

Import the back end user object
public __construct ( )

addPreviewImage() 공개 메소드

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

checkPermission() 공개 메소드

Check permissions to edit the table
public checkPermission ( )

doGetTemplateFolders() 보호된 메소드

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

editCss() 공개 메소드

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
리턴 string

editImageSizes() 공개 메소드

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
리턴 string

editLayout() 공개 메소드

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
리턴 string

editModules() 공개 메소드

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
리턴 string

exportTheme() 공개 메소드

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
리턴 string

getTemplateFolders() 공개 메소드

Return all template folders as array
public getTemplateFolders ( ) : array
리턴 array

importTheme() 공개 메소드

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
리턴 string

scheduleUpdate() 공개 메소드

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

themeStore() 공개 메소드

Return the theme store link
public themeStore ( ) : string
리턴 string

updateStyleSheet() 공개 메소드

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