PHP 클래스 Contao\FrontendTemplate

상속: extends Template
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$blnCheckRequest boolean Unsued $_GET check

공개 메소드들

메소드 설명
addToUrl ( string $strRequest, boolean $blnIgnoreParams = false, array $arrUnset = [] ) : string Point to Frontend::addToUrl() in front end templates (see #6736)
getCustomSection ( string $strKey ) : string Return a custom layout section
getCustomSections ( string $strKey = null ) : string Return all custom layout sections
getResponse ( boolean $blnCheckRequest = false ) : Response Return a response object
hasAuthenticatedBackendUser ( ) : boolean Check whether there is an authenticated back end user
output ( boolean $blnCheckRequest = false ) Send the response to the client
parse ( ) : string Add a hook to modify the template output
section ( string $key, string $template = null ) Return a custom layout section
sections ( string $key = null, string $template = null ) Return the custom layout sections

보호된 메소드들

메소드 설명
addToCache ( ) Add the template output to the cache and add the cache headers
addToSearchIndex ( ) Add the template output to the search index
compile ( ) Compile the template

비공개 메소드들

메소드 설명
setCacheHeaders ( Response $response ) : Response Set the cache headers according to the page settings.

메소드 상세

addToCache() 보호된 메소드

Add the template output to the cache and add the cache headers
사용 중단: Deprecated since Contao 4.3, to be removed in Contao 5.0. Use proper response caching headers instead.
protected addToCache ( )

addToSearchIndex() 보호된 메소드

Add the template output to the search index
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use the kernel.terminate event instead.
protected addToSearchIndex ( )

addToUrl() 공개 정적인 메소드

Point to Frontend::addToUrl() in front end templates (see #6736)
public static addToUrl ( string $strRequest, boolean $blnIgnoreParams = false, array $arrUnset = [] ) : string
$strRequest string The request string to be added
$blnIgnoreParams boolean If true, the $_GET parameters will be ignored
$arrUnset array An optional array of keys to unset
리턴 string The new URI string

compile() 보호된 메소드

Compile the template
protected compile ( )

getCustomSection() 공개 메소드

Return a custom layout section
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use FrontendTemplate::section() instead.
public getCustomSection ( string $strKey ) : string
$strKey string The section name
리턴 string The section markup

getCustomSections() 공개 메소드

Return all custom layout sections
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use FrontendTemplate::sections() instead.
public getCustomSections ( string $strKey = null ) : string
$strKey string An optional section name
리턴 string The section markup

getResponse() 공개 메소드

Return a response object
public getResponse ( boolean $blnCheckRequest = false ) : Response
$blnCheckRequest boolean If true, check for unsued $_GET parameters
리턴 Symfony\Component\HttpFoundation\Response The response object

hasAuthenticatedBackendUser() 공개 메소드

Check whether there is an authenticated back end user
public hasAuthenticatedBackendUser ( ) : boolean
리턴 boolean True if there is an authenticated back end user

output() 공개 메소드

Send the response to the client
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use FrontendTemplate::getResponse() instead.
public output ( boolean $blnCheckRequest = false )
$blnCheckRequest boolean If true, check for unsued $_GET parameters

parse() 공개 메소드

Add a hook to modify the template output
public parse ( ) : string
리턴 string The template markup

section() 공개 메소드

Return a custom layout section
public section ( string $key, string $template = null )
$key string The section name
$template string An optional template name

sections() 공개 메소드

Return the custom layout sections
public sections ( string $key = null, string $template = null )
$key string An optional section name
$template string An optional template name

프로퍼티 상세

$blnCheckRequest 보호되어 있는 프로퍼티

Unsued $_GET check
protected bool $blnCheckRequest
리턴 boolean