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

저자: Tijs Verkoyen ([email protected])
저자: Frederik Heyninck ([email protected])
저자: Davy Hellemans ([email protected])
상속: extends Object
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$URL Backend\Core\Engine\Url A reference to the URL-instance
$tpl Backend\Core\Engine\TwigTemplate A reference to the current template

보호된 프로퍼티들

프로퍼티 타입 설명
$header Backend\Core\Engine\Header The header object
$parameters array The parameters (urldecoded)

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) The constructor will set some properties. It populates the parameter array with urldecoded values for easy-use.
checkToken ( ) Check if the token is ok
createForm ( string | Symfony\Component\Form\FormTypeInterface $type, mixed $data = null, array $options = [] ) : Form Creates and returns a Form instance from the type of the form.
display ( string $template = null ) Display, this wil output the template to the browser If no template is specified we build the path form the current module and action
execute ( ) Execute the action
getParameter ( string $key, string $type = 'string', mixed $defaultValue = null ) : mixed Get a parameter for a given key The function will return null if the key is not available By default we will cast the return value into a string, if you want something else specify it by passing the wanted type.

보호된 메소드들

메소드 설명
getBackendModulePath ( ) : string
parse ( ) Parse to template

메소드 상세

__construct() 공개 메소드

The constructor will set some properties. It populates the parameter array with urldecoded values for easy-use.
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

checkToken() 공개 메소드

Check if the token is ok
public checkToken ( )

createForm() 공개 메소드

Creates and returns a Form instance from the type of the form.
public createForm ( string | Symfony\Component\Form\FormTypeInterface $type, mixed $data = null, array $options = [] ) : Form
$type string | Symfony\Component\Form\FormTypeInterface The built type of the form
$data mixed The initial data for the form
$options array Options for the form
리턴 Symfony\Component\Form\Form

display() 공개 메소드

Display, this wil output the template to the browser If no template is specified we build the path form the current module and action
public display ( string $template = null )
$template string The template to use, if not provided it will be based on the action.

execute() 공개 메소드

Execute the action
public execute ( )

getBackendModulePath() 보호된 메소드

protected getBackendModulePath ( ) : string
리턴 string

getParameter() 공개 메소드

Get a parameter for a given key The function will return null if the key is not available By default we will cast the return value into a string, if you want something else specify it by passing the wanted type.
public getParameter ( string $key, string $type = 'string', mixed $defaultValue = null ) : mixed
$key string The name of the parameter.
$type string The return-type, possible values are: bool, boolean, int, integer, float, double, string, array.
$defaultValue mixed The value that should be returned if the key is not available.
리턴 mixed

parse() 보호된 메소드

Parse to template
protected parse ( )

프로퍼티 상세

$URL 공개적으로 프로퍼티

A reference to the URL-instance
public Url,Backend\Core\Engine $URL
리턴 Backend\Core\Engine\Url

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

The header object
protected Header,Backend\Core\Engine $header
리턴 Backend\Core\Engine\Header

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

The parameters (urldecoded)
protected array $parameters
리턴 array

$tpl 공개적으로 프로퍼티

A reference to the current template
public TwigTemplate,Backend\Core\Engine $tpl
리턴 Backend\Core\Engine\TwigTemplate