PHP Класс Contao\Backend

Provide methods to manage back end controllers.
Наследование: extends Controller
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
addFileMetaInformationToRequest ( string $strUuid, string $strPtable, integer $intPid ) Add the file meta information to the request
addFilesBreadcrumb ( string $strKey = 'tl_files_node' ) Add a breadcrumb menu to the file tree
addPageIcon ( array $row, string $label, DataContainer $dc = null, string $imageAttribute = '', boolean $blnReturnImage = false, boolean $blnProtected = false ) : string Add an image to each page in the tree
addPagesBreadcrumb ( string $strKey = 'tl_page_node' ) Add a breadcrumb menu to the page tree
addToUrl ( string $strRequest, boolean $blnAddRef = true, array $arrUnset = [] ) : string Add the request token to the URL
createFileList ( string $strFilter = '', boolean $filemount = false ) : string Get all allowed files and return them as string
createPageList ( ) : string Get all allowed pages and return them as string
findSearchablePages ( integer $pid, string $domain = '', boolean $blnIsSitemap = false ) : array Get all searchable pages and return them as array
getAceType ( string $ext ) : string Get the Ace code editor type from a file extension
getSystemMessages ( ) : string Return the system messages as HTML
getTheme ( ) : string Return the current theme as string
getThemes ( ) : array Return the back end themes as array
getTinyMceLanguage ( ) : string Return the TinyMCE language
getTinyTemplates ( ) : string Return a list of TinyMCE templates as JSON string
handleRunOnce ( ) Handle "runonce" files

Защищенные методы

Метод Описание
__construct ( ) Load the database object
doCreateFileList ( string $strFolder = null, integer $level, string $strFilter = '' ) : string Recursively get all allowed files and return them as string
doCreatePageList ( integer $intId, integer $level ) : string Recursively get all allowed pages and return them as string
getBackendModule ( string $module ) : string Open a back end module and return it as HTML

Описание методов

__construct() защищенный Метод

Load the database object
protected __construct ( )

addFileMetaInformationToRequest() публичный статический Метод

Add the file meta information to the request
public static addFileMetaInformationToRequest ( string $strUuid, string $strPtable, integer $intPid )
$strUuid string
$strPtable string
$intPid integer

addFilesBreadcrumb() публичный статический Метод

Add a breadcrumb menu to the file tree
public static addFilesBreadcrumb ( string $strKey = 'tl_files_node' )
$strKey string

addPageIcon() публичный статический Метод

Add an image to each page in the tree
public static addPageIcon ( array $row, string $label, DataContainer $dc = null, string $imageAttribute = '', boolean $blnReturnImage = false, boolean $blnProtected = false ) : string
$row array
$label string
$dc DataContainer
$imageAttribute string
$blnReturnImage boolean
$blnProtected boolean
Результат string

addPagesBreadcrumb() публичный статический Метод

Add a breadcrumb menu to the page tree
public static addPagesBreadcrumb ( string $strKey = 'tl_page_node' )
$strKey string

addToUrl() публичный статический Метод

Add the request token to the URL
public static addToUrl ( string $strRequest, boolean $blnAddRef = true, array $arrUnset = [] ) : string
$strRequest string
$blnAddRef boolean
$arrUnset array
Результат string

createFileList() публичный Метод

Get all allowed files and return them as string
public createFileList ( string $strFilter = '', boolean $filemount = false ) : string
$strFilter string
$filemount boolean
Результат string

createPageList() публичный Метод

Get all allowed pages and return them as string
public createPageList ( ) : string
Результат string

doCreateFileList() защищенный Метод

Recursively get all allowed files and return them as string
protected doCreateFileList ( string $strFolder = null, integer $level, string $strFilter = '' ) : string
$strFolder string
$level integer
$strFilter string
Результат string

doCreatePageList() защищенный Метод

Recursively get all allowed pages and return them as string
protected doCreatePageList ( integer $intId, integer $level ) : string
$intId integer
$level integer
Результат string

findSearchablePages() публичный статический Метод

Get all searchable pages and return them as array
public static findSearchablePages ( integer $pid, string $domain = '', boolean $blnIsSitemap = false ) : array
$pid integer
$domain string
$blnIsSitemap boolean
Результат array

getAceType() публичный статический Метод

Get the Ace code editor type from a file extension
public static getAceType ( string $ext ) : string
$ext string
Результат string

getBackendModule() защищенный Метод

Open a back end module and return it as HTML
protected getBackendModule ( string $module ) : string
$module string
Результат string

getSystemMessages() публичный статический Метод

Return the system messages as HTML
public static getSystemMessages ( ) : string
Результат string The messages HTML markup

getTheme() публичный статический Метод

Return the current theme as string
public static getTheme ( ) : string
Результат string The name of the theme

getThemes() публичный статический Метод

Return the back end themes as array
public static getThemes ( ) : array
Результат array An array of available back end themes

getTinyMceLanguage() публичный статический Метод

Return the TinyMCE language
public static getTinyMceLanguage ( ) : string
Результат string

getTinyTemplates() публичный статический Метод

Return a list of TinyMCE templates as JSON string
public static getTinyTemplates ( ) : string
Результат string

handleRunOnce() публичный статический Метод

Handle "runonce" files
public static handleRunOnce ( )