PHP 클래스 Bluz\Controller\Controller

저자: Anton Shevchuk
상속: implements JsonSerializable, use trait Bluz\Common\Helper, use trait Bluz\Response\ResponseTrait
파일 보기 프로젝트 열기: bluzphp/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$controller string
$data Data
$file string
$module string
$reflection Reflection
$render string One of HTML, JSON or empty string
$template string

공개 메소드들

메소드 설명
__construct ( string $module, string $controller ) Constructor of Statement
__toString ( ) : string Magic cast to string
assign ( string $key, mixed $value ) : Controller Assign key/value pair to Data object
checkAccept ( ) Check Accept
checkMethod ( ) Check Method
checkPrivilege ( ) Check Privilege
getData ( ) : Data Get controller Data container
getReflection ( ) : Reflection Get Reflection
jsonSerialize ( ) : array Specify data which should be serialized to JSON
run ( array $params = [] ) : Data __invoke

보호된 메소드들

메소드 설명
getFile ( ) : string Get controller file path
setFile ( ) : void Setup controller file
setReflection ( ) : Reflection Retrieve reflection for anonymous function

메소드 상세

__construct() 공개 메소드

Constructor of Statement
public __construct ( string $module, string $controller )
$module string
$controller string

__toString() 공개 메소드

Magic cast to string
public __toString ( ) : string
리턴 string

assign() 공개 메소드

Assign key/value pair to Data object
public assign ( string $key, mixed $value ) : Controller
$key string
$value mixed
리턴 Controller

checkAccept() 공개 메소드

Check Accept
public checkAccept ( )

checkMethod() 공개 메소드

Check Method
public checkMethod ( )

checkPrivilege() 공개 메소드

Check Privilege
public checkPrivilege ( )

getData() 공개 메소드

Get controller Data container
public getData ( ) : Data
리턴 Data

getFile() 보호된 메소드

Get controller file path
protected getFile ( ) : string
리턴 string

getReflection() 공개 메소드

Get Reflection
public getReflection ( ) : Reflection
리턴 Reflection

jsonSerialize() 공개 메소드

Specify data which should be serialized to JSON
public jsonSerialize ( ) : array
리턴 array

run() 공개 메소드

__invoke
public run ( array $params = [] ) : Data
$params array
리턴 Data

setFile() 보호된 메소드

Setup controller file
protected setFile ( ) : void
리턴 void

setReflection() 보호된 메소드

Retrieve reflection for anonymous function
protected setReflection ( ) : Reflection
리턴 Reflection

프로퍼티 상세

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

protected string $controller
리턴 string

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

protected Data $data
리턴 Data

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

protected string $file
리턴 string

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

protected string $module
리턴 string

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

protected Reflection,Bluz\Controller $reflection
리턴 Reflection

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

One of HTML, JSON or empty string
protected string $render
리턴 string

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

protected string $template
리턴 string