PHP 클래스 Backend\Core\Engine\Base\AjaxAction

상속: extends Object
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
execute ( ) : Response Execute the action
getContent ( ) : Response Since the display action in the backend is rather complicated and we want to make this work with our Kernel, I've added this getContent method to extract the output from the actual displaying.
output ( integer $statusCode, mixed $data = null, string $message = null ) Output an answer to the browser

메소드 상세

execute() 공개 메소드

Execute the action
public execute ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

getContent() 공개 메소드

With this function we'll be able to get the content and return it as a Symfony output object.
public getContent ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

output() 공개 메소드

Output an answer to the browser
public output ( integer $statusCode, mixed $data = null, string $message = null )
$statusCode integer The status code for the response, use the available constants: self::OK, self::BAD_REQUEST, self::FORBIDDEN, self::ERROR
$data mixed The data to output.
$message string The text-message to send.