PHP Class Contao\PageRoot

Inheritance: extends Frontend
Show file Open project: contao/core-bundle

Public Methods

Method 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

Protected Methods

Method 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 method

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

getNextPage() protected method

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

getRedirectUrl() protected method

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

getResponse() public method

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