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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$action string The current action
$content array
$module string The current module

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
execute ( ) Execute the action
getAction ( ) : string Get 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.
getModule ( ) : string Get the module
output ( integer $statusCode, mixed $data = null, string $message = null ) Outputs an answer to the browser

보호된 메소드들

메소드 설명
setAction ( string $action ) Set the action, for later use
setModule ( string $module ) Set the module, for later use

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
$kernel Symfony\Component\HttpKernel\KernelInterface
$action string The action to use.
$module string The module to use.

execute() 공개 메소드

Execute the action
public execute ( )

getAction() 공개 메소드

Get the action
public getAction ( ) : string
리턴 string

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

getModule() 공개 메소드

Get the module
public getModule ( ) : string
리턴 string

output() 공개 메소드

Outputs an answer to the browser
public output ( integer $statusCode, mixed $data = null, string $message = null )
$statusCode integer The status code to use, use one of the available constants (self::OK, self::BAD_REQUEST, self::FORBIDDEN, self::ERROR).
$data mixed The data to be returned (will be encoded as JSON).
$message string A text-message.

setAction() 보호된 메소드

Set the action, for later use
protected setAction ( string $action )
$action string The action to use.

setModule() 보호된 메소드

Set the module, for later use
protected setModule ( string $module )
$module string The module to use.

프로퍼티 상세

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

The current action
protected string $action
리턴 string

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

protected array $content
리턴 array

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

The current module
protected string $module
리턴 string