PHP Class Devise\Pages\PageController

The templates have already been designed by the developer but new pages can be added easily by the cms administrator.
Inheritance: extends Illuminate\Routing\Controller
Datei anzeigen Open project: devisephp/cms

Protected Properties

Property Type Description
$DataBuilder Devise\Pages\Viewvars\DataBuilder The DataBuilder extracts view vars from the views.php config file for a give page
$PagesRepository PagesRepository Repository for retrieving pages

Public Methods

Method Description
__construct ( PagesRepository $PagesRepository, DataBuilder $DataBuilder, null $Input = null, null $View = null, null $Route = null, null $Redirect = null, $Cookie = null ) Creates a new DvsPagesController instance.
retrieveLocalRedirect ( DvsPage $localized ) This retrieves the a redirect for the user's language
retrieveResponse ( DvsPage $page ) This retrieves a page with all the view's vars set on the response
show ( ) : Response Displays details of a page

Protected Methods

Method Description
getFunction ( DvsPage $page ) : array Get the results from a function as the response type
getResponse ( DvsPage $page ) Gets the response for this page
getView ( $page ) : mixed Gets a view as the response type

Method Details

__construct() public method

Creates a new DvsPagesController instance.
public __construct ( PagesRepository $PagesRepository, DataBuilder $DataBuilder, null $Input = null, null $View = null, null $Route = null, null $Redirect = null, $Cookie = null )
$PagesRepository PagesRepository
$DataBuilder Devise\Pages\Viewvars\DataBuilder
$Input null
$View null
$Route null
$Redirect null

getFunction() protected method

Get the results from a function as the response type
protected getFunction ( DvsPage $page ) : array
$page DvsPage
return array

getResponse() protected method

Gets the response for this page
protected getResponse ( DvsPage $page )
$page DvsPage

getView() protected method

Gets a view as the response type
protected getView ( $page ) : mixed
$page
return mixed

retrieveLocalRedirect() public method

This retrieves the a redirect for the user's language
public retrieveLocalRedirect ( DvsPage $localized )
$localized DvsPage

retrieveResponse() public method

This retrieves a page with all the view's vars set on the response
public retrieveResponse ( DvsPage $page )
$page DvsPage

show() public method

Displays details of a page
public show ( ) : Response
return Response

Property Details

$DataBuilder protected_oe property

The DataBuilder extracts view vars from the views.php config file for a give page
protected Devise\Pages\Viewvars\DataBuilder $DataBuilder
return Devise\Pages\Viewvars\DataBuilder

$PagesRepository protected_oe property

Repository for retrieving pages
protected PagesRepository,Devise\Pages $PagesRepository
return PagesRepository