PHP Class Contao\PageRoot

Inheritance: extends Frontend
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

Méthode Description
generate ( integer $rootPageId, boolean $blnReturn = false, boolean $blnPreferAlias = false ) : integer Redirect to the first active regular page
getResponse ( integer $rootPageId ) : RedirectResponse Return a response object

Méthodes protégées

Méthode Description
getNextPage ( integer $rootPageId ) : PageModel Prepare the page object and redirect URL
getRedirectUrl ( integer $rootPageId ) : string Prepare the page object and redirect URL

Method Details

generate() public méthode

Redirect to the first active regular page
public generate ( integer $rootPageId, boolean $blnReturn = false, boolean $blnPreferAlias = false ) : integer
$rootPageId integer
$blnReturn boolean
$blnPreferAlias boolean
Résultat integer

getNextPage() protected méthode

Prepare the page object and redirect URL
protected getNextPage ( integer $rootPageId ) : PageModel
$rootPageId integer
Résultat PageModel

getRedirectUrl() protected méthode

Prepare the page object and redirect URL
protected getRedirectUrl ( integer $rootPageId ) : string
$rootPageId integer
Résultat string

getResponse() public méthode

Return a response object
public getResponse ( integer $rootPageId ) : RedirectResponse
$rootPageId integer
Résultat Symfony\Component\HttpFoundation\RedirectResponse