Property | Type | Description | |
---|---|---|---|
$controller | string | ||
$data | Data | ||
$file | string | ||
$module | string | ||
$reflection | |||
$render | string | One of HTML, JSON or empty string | |
$template | string |
Method | Description | |
---|---|---|
__construct ( string $module, string $controller ) | Constructor of Statement | |
__toString ( ) : string | Magic cast to string | |
assign ( string $key, mixed $value ) : |
Assign key/value pair to Data object | |
checkAccept ( ) | Check Accept | |
checkMethod ( ) | Check Method | |
checkPrivilege ( ) | Check Privilege | |
getData ( ) : Data | Get controller Data container | |
getReflection ( ) : |
Get Reflection | |
jsonSerialize ( ) : array | Specify data which should be serialized to JSON | |
run ( array $params = [] ) : Data | __invoke |
Method | Description | |
---|---|---|
getFile ( ) : string | Get controller file path | |
setFile ( ) : void | Setup controller file | |
setReflection ( ) : |
Retrieve reflection for anonymous function |
public __construct ( string $module, string $controller ) | ||
$module | string | |
$controller | string |
public getReflection ( ) : |
||
return |
public jsonSerialize ( ) : array | ||
return | array |
protected setReflection ( ) : |
||
return |
protected Reflection,Bluz\Controller $reflection | ||
return |
protected string $render | ||
return | string |