PHP Класс tl_templates

Provide miscellaneous methods that are used by the data configuration array.
Наследование: extends Backend
Показать файл Открыть проект

Открытые методы

Метод Описание
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