PHP 클래스 tl_templates

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

공개 메소드들

메소드 설명
addBreadcrumb ( ) Add the breadcrumb menu
addFileLocation ( DataContainer $dc ) : string Add the file location instead of the help text (see #6503)
addNewTemplate ( ) : string Create a new template
compareButton ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the "compare template" button
compareTemplate ( DataContainer $dc ) : string Compares the current to the original template
editSource ( array $row, string $href, string $label, string $title, string $icon, string $attributes ) : string Return the edit file source button

보호된 메소드들

메소드 설명
getTargetFolders ( string $strFolder, integer $intLevel = 1 ) : string Recursively scan the templates directory and return all folders as array

메소드 상세

addBreadcrumb() 공개 메소드

Add the breadcrumb menu
public addBreadcrumb ( )

addFileLocation() 공개 메소드

Add the file location instead of the help text (see #6503)
public addFileLocation ( DataContainer $dc ) : string
$dc DataContainer
리턴 string

addNewTemplate() 공개 메소드

Create a new template
public addNewTemplate ( ) : string
리턴 string

compareButton() 공개 메소드

Return the "compare template" button
public compareButton ( 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

compareTemplate() 공개 메소드

Compares the current to the original template
public compareTemplate ( DataContainer $dc ) : string
$dc DataContainer
리턴 string

editSource() 공개 메소드

Return the edit file source button
public editSource ( 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

getTargetFolders() 보호된 메소드

Recursively scan the templates directory and return all folders as array
protected getTargetFolders ( string $strFolder, integer $intLevel = 1 ) : string
$strFolder string
$intLevel integer
리턴 string