PHP 클래스 Frontend\Core\Engine\Block\Extra

상속: extends Frontend\Core\Engine\Base\Object
파일 보기 프로젝트 열기: forkcms/forkcms

보호된 프로퍼티들

프로퍼티 타입 설명
$overwrite boolean Should the template overwrite the current one
$templatePath string The path for the template

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, mixed $data = null )
execute ( ) Execute the action We will build the class name, require the class and call the execute method.
getAction ( ) : string Get the current action 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
getContent ( ) : string Get the block content
getData ( ) : mixed Get the data
getModule ( ) : string Get the current module 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
getOverwrite ( ) : boolean Get overwrite mode
getTemplate ( ) : array Get the assigned template.
getTemplatePath ( ) : string Get path for the template
getVariables ( ) : array Get the assigned variables for this block.
loadConfig ( ) Load the config file for the requested block.

비공개 메소드들

메소드 설명
setAction ( string $action = null ) Set the action
setData ( mixed $data ) Set the data
setModule ( string $module ) Set the module
setOverwrite ( boolean $overwrite ) Set overwrite mode
setTemplatePath ( string $path ) Set the path for the template

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, mixed $data = null )
$kernel Symfony\Component\HttpKernel\KernelInterface
$module string The module to load.
$action string The action to load.
$data mixed The data that was passed from the database.

execute() 공개 메소드

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

getAction() 공개 메소드

Get the current action 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

getContent() 공개 메소드

Get the block content
public getContent ( ) : string
리턴 string

getData() 공개 메소드

Get the data
public getData ( ) : mixed
리턴 mixed

getModule() 공개 메소드

Get the current module 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

getOverwrite() 공개 메소드

Get overwrite mode
public getOverwrite ( ) : boolean
리턴 boolean

getTemplate() 공개 메소드

Get the assigned template.
public getTemplate ( ) : array
리턴 array

getTemplatePath() 공개 메소드

Get path for the template
public getTemplatePath ( ) : string
리턴 string

getVariables() 공개 메소드

Get the assigned variables for this block.
public getVariables ( ) : array
리턴 array

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 ( )

프로퍼티 상세

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

Should the template overwrite the current one
protected bool $overwrite
리턴 boolean

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

The path for the template
protected string $templatePath
리턴 string