PHP Class Contao\Backend

Provide methods to manage back end controllers.
Inheritance: extends Controller
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
__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

Method Details

__construct() protected méthode

Load the database object
protected __construct ( )

addFileMetaInformationToRequest() public static méthode

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

addFilesBreadcrumb() public static méthode

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

addPageIcon() public static méthode

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

addPagesBreadcrumb() public static méthode

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

addToUrl() public static méthode

Add the request token to the URL
public static addToUrl ( string $strRequest, boolean $blnAddRef = true, array $arrUnset = [] ) : string
$strRequest string
$blnAddRef boolean
$arrUnset array
Résultat string

createFileList() public méthode

Get all allowed files and return them as string
public createFileList ( string $strFilter = '', boolean $filemount = false ) : string
$strFilter string
$filemount boolean
Résultat string

createPageList() public méthode

Get all allowed pages and return them as string
public createPageList ( ) : string
Résultat string

doCreateFileList() protected méthode

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

doCreatePageList() protected méthode

Recursively get all allowed pages and return them as string
protected doCreatePageList ( integer $intId, integer $level ) : string
$intId integer
$level integer
Résultat string

findSearchablePages() public static méthode

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

getAceType() public static méthode

Get the Ace code editor type from a file extension
public static getAceType ( string $ext ) : string
$ext string
Résultat string

getBackendModule() protected méthode

Open a back end module and return it as HTML
protected getBackendModule ( string $module ) : string
$module string
Résultat string

getSystemMessages() public static méthode

Return the system messages as HTML
public static getSystemMessages ( ) : string
Résultat string The messages HTML markup

getTheme() public static méthode

Return the current theme as string
public static getTheme ( ) : string
Résultat string The name of the theme

getThemes() public static méthode

Return the back end themes as array
public static getThemes ( ) : array
Résultat array An array of available back end themes

getTinyMceLanguage() public static méthode

Return the TinyMCE language
public static getTinyMceLanguage ( ) : string
Résultat string

getTinyTemplates() public static méthode

Return a list of TinyMCE templates as JSON string
public static getTinyTemplates ( ) : string
Résultat string

handleRunOnce() public static méthode

Handle "runonce" files
public static handleRunOnce ( )