PHP 클래스 Frontend\Core\Engine\AjaxAction

저자: Tijs Verkoyen ([email protected])
저자: Davy Hellemans ([email protected])
저자: Dieter Vanden Eynde ([email protected])
상속: extends Frontend\Core\Engine\Base\AjaxAction
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Frontend\Core\Engine\Base\Config The config file

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
execute ( ) Execute the action.
getAction ( ) : string Get the current action.
getModule ( ) : string Get the current module.
loadConfig ( ) Load the config file for the requested module.

보호된 메소드들

메소드 설명
setAction ( string $action ) Set the action
setModule ( string $module ) Set the module

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
$kernel Symfony\Component\HttpKernel\KernelInterface
$action string The action that should be executed.
$module string The module that wherein the action is available.

execute() 공개 메소드

We will build the class name, require the class and call the execute method
public execute ( )

getAction() 공개 메소드

REMARK: You should not use this method from your code, but it has to be public so we can access it later on in the core-code.
public getAction ( ) : string
리턴 string

getModule() 공개 메소드

REMARK: You should not use this method from your code, but it has to be public so we can access it later on in the core-code.
public getModule ( ) : string
리턴 string

loadConfig() 공개 메소드

In the config file we have to find disabled actions, the constructor will read the folder and set possible actions. Other configurations will also be stored in it.
public loadConfig ( )

setAction() 보호된 메소드

Set the action
protected setAction ( string $action )
$action string The action that should be executed.

setModule() 보호된 메소드

Set the module
protected setModule ( string $module )
$module string The module wherein the action is available.

프로퍼티 상세

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

The config file
protected Config,Frontend\Core\Engine\Base $config
리턴 Frontend\Core\Engine\Base\Config