프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$errorAction | string | Error action | |
$project | Project config object | ||
$request | Pop\Http\Request | Request | |
$response | Pop\Http\Response | Response | |
$view | View object | ||
$viewPath | string | View path |
메소드 | 설명 | |
---|---|---|
__construct ( Pop\Http\Request $request = null, Pop\Http\Response $response = null, |
Constructor | |
dispatch ( string $action = 'index' ) : |
Dispatch the controller based on the action | |
getErrorAction ( ) : string | Get the error action | |
getProject ( ) : |
Get the project object | |
getRequest ( ) : Pop\Http\Request | Get the request object | |
getResponse ( ) : Pop\Http\Response | Get the response object | |
getView ( ) : |
Get the view object | |
getViewPath ( ) : string | Get the view path | |
send ( integer $code = 200, array $headers = null ) : void | Finalize the request and send the response. | |
sendJson ( mixed $values, integer $code = 200, array $headers = null ) : void | Method to send a JSON response | |
setErrorAction ( string $error ) : |
Set the error action | |
setProject ( |
Set the response object | |
setRequest ( Pop\Http\Request $request ) : |
Set the request object | |
setResponse ( Pop\Http\Response $response ) : |
Set the response object | |
setViewPath ( string $viewPath ) : |
Set the response object |
public __construct ( Pop\Http\Request $request = null, Pop\Http\Response $response = null, |
||
$request | Pop\Http\Request | |
$response | Pop\Http\Response | |
$project | ||
$viewPath | string | |
리턴 |
public getRequest ( ) : Pop\Http\Request | ||
리턴 | Pop\Http\Request |
public getResponse ( ) : Pop\Http\Response | ||
리턴 | Pop\Http\Response |
public setErrorAction ( string $error ) : |
||
$error | string | |
리턴 |
public setProject ( |
||
$project | ||
리턴 |
public setRequest ( Pop\Http\Request $request ) : |
||
$request | Pop\Http\Request | |
리턴 |
public setResponse ( Pop\Http\Response $response ) : |
||
$response | Pop\Http\Response | |
리턴 |
public setViewPath ( string $viewPath ) : |
||
$viewPath | string | |
리턴 |
protected Project,Pop\Project $project | ||
리턴 |