PHP Class tl_templates

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

Méthodes protégées

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

Method Details

addBreadcrumb() public méthode

Add the breadcrumb menu
public addBreadcrumb ( )

addFileLocation() public méthode

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

addNewTemplate() public méthode

Create a new template
public addNewTemplate ( ) : string
Résultat string

compareButton() public méthode

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
Résultat string

compareTemplate() public méthode

Compares the current to the original template
public compareTemplate ( DataContainer $dc ) : string
$dc DataContainer
Résultat string

editSource() public méthode

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
Résultat string

getTargetFolders() protected méthode

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