PHP 클래스 Devise\Pages\PageController

The templates have already been designed by the developer but new pages can be added easily by the cms administrator.
상속: extends Illuminate\Routing\Controller
파일 보기 프로젝트 열기: devisephp/cms

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

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() 보호된 메소드

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

getResponse() 보호된 메소드

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

getView() 보호된 메소드

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

retrieveLocalRedirect() 공개 메소드

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

retrieveResponse() 공개 메소드

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

show() 공개 메소드

Displays details of a page
public show ( ) : Response
리턴 Response

프로퍼티 상세

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

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

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

Repository for retrieving pages
protected PagesRepository,Devise\Pages $PagesRepository
리턴 PagesRepository