PHP 클래스 Contao\Frontend

Provide methods to manage front end controllers.
상속: extends Controller
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arrAux array Aux array
$arrMeta array Meta array
$arrProcessed array Processed files array

공개 메소드들

메소드 설명
__construct ( ) Load the database object
addToUrl ( string $strRequest, boolean $blnIgnoreParams = false, array $arrUnset = [] ) : string Overwrite the parent method as front end URLs are handled differently
getCronTimeout ( ) : integer Return the cron timeout in seconds
getMetaData ( string $strData, string $strLanguage ) : array Get the meta data from a serialized string
getPageIdFromUrl ( ) : mixed Split the current request into fragments, strip the URL suffix, recreate the $_GET array and return the page ID
getResponseFromCache ( ) : Response | null Check whether there is a cached version of the page and return a response object
getRootIdFromUrl ( ) : integer Return the root page ID
getRootPageFromUrl ( ) : PageModel Try to find a root page based on language and URL
indexPageIfApplicable ( Response $objResponse ) Index a page if applicable

보호된 메소드들

메소드 설명
getLoginStatus ( string $strCookie ) : boolean Check whether a back end or front end user is logged in
jumpToOrReload ( integer | array $intId, string $strParams = null, string $strForceLang = null ) Redirect to a jumpTo page or reload the current page
prepareMetaDescription ( string $strText ) : string Prepare a text to be used in the meta description tag

메소드 상세

__construct() 공개 메소드

Make the constructor public, so pages can be instantiated (see #6182)
public __construct ( )

addToUrl() 공개 정적인 메소드

Overwrite the parent method as front end URLs are handled differently
public static addToUrl ( string $strRequest, boolean $blnIgnoreParams = false, array $arrUnset = [] ) : string
$strRequest string
$blnIgnoreParams boolean
$arrUnset array
리턴 string

getCronTimeout() 공개 정적인 메소드

Return the cron timeout in seconds
public static getCronTimeout ( ) : integer
리턴 integer

getLoginStatus() 보호된 메소드

Check whether a back end or front end user is logged in
protected getLoginStatus ( string $strCookie ) : boolean
$strCookie string
리턴 boolean

getMetaData() 공개 정적인 메소드

Get the meta data from a serialized string
public static getMetaData ( string $strData, string $strLanguage ) : array
$strData string
$strLanguage string
리턴 array

getPageIdFromUrl() 공개 정적인 메소드

Split the current request into fragments, strip the URL suffix, recreate the $_GET array and return the page ID
public static getPageIdFromUrl ( ) : mixed
리턴 mixed

getResponseFromCache() 공개 정적인 메소드

Check whether there is a cached version of the page and return a response object
사용 중단: Deprecated since Contao 4.3, to be removed in Contao 5.0. Use proper response caching headers instead.
public static getResponseFromCache ( ) : Response | null
리턴 Symfony\Component\HttpFoundation\Response | null

getRootIdFromUrl() 공개 정적인 메소드

Return the root page ID
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Frontend::getRootPageFromUrl()->id instead.
public static getRootIdFromUrl ( ) : integer
리턴 integer

getRootPageFromUrl() 공개 정적인 메소드

Try to find a root page based on language and URL
public static getRootPageFromUrl ( ) : PageModel
리턴 PageModel

indexPageIfApplicable() 공개 정적인 메소드

Index a page if applicable
public static indexPageIfApplicable ( Response $objResponse )
$objResponse Symfony\Component\HttpFoundation\Response

jumpToOrReload() 보호된 메소드

Redirect to a jumpTo page or reload the current page
protected jumpToOrReload ( integer | array $intId, string $strParams = null, string $strForceLang = null )
$intId integer | array
$strParams string
$strForceLang string

prepareMetaDescription() 보호된 메소드

Prepare a text to be used in the meta description tag
protected prepareMetaDescription ( string $strText ) : string
$strText string
리턴 string

프로퍼티 상세

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

Aux array
protected array $arrAux
리턴 array

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

Meta array
protected array $arrMeta
리턴 array

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

Processed files array
protected array $arrProcessed
리턴 array