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
Afficher le fichier Open project: devisephp/cms

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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 méthode

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

getResponse() protected méthode

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

getView() protected méthode

Gets a view as the response type
protected getView ( $page ) : mixed
$page
Résultat mixed

retrieveLocalRedirect() public méthode

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

retrieveResponse() public méthode

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

show() public méthode

Displays details of a page
public show ( ) : Response
Résultat 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
Résultat Devise\Pages\Viewvars\DataBuilder

$PagesRepository protected_oe property

Repository for retrieving pages
protected PagesRepository,Devise\Pages $PagesRepository
Résultat PagesRepository