PHP Class tl_templates

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

Protected Methods

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

Method Details

addBreadcrumb() public method

Add the breadcrumb menu
public addBreadcrumb ( )

addFileLocation() public method

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

addNewTemplate() public method

Create a new template
public addNewTemplate ( ) : string
return string

compareButton() public method

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

compareTemplate() public method

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

editSource() public method

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

getTargetFolders() protected method

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