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

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

공개 메소드들

메소드 설명
__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
getCustomTemplate ( ) : string | null
getData ( ) : mixed Get the data
getForId ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, integer | null $id = null ) : string | null
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
getTemplate ( ) : array Get the assigned template.
loadConfig ( ) Load the config file for the requested block.
render ( string $template = null ) : string Get the block content

비공개 메소드들

메소드 설명
setAction ( string $action = null ) Set the action
setData ( mixed $data ) Set the data
setModule ( string $module ) Set the module

메소드 상세

__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() 공개 메소드

public getContent ( ) : string
리턴 string

getCustomTemplate() 공개 메소드

public getCustomTemplate ( ) : string | null
리턴 string | null

getData() 공개 메소드

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

getForId() 공개 정적인 메소드

public static getForId ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, integer | null $id = null ) : string | null
$kernel Symfony\Component\HttpKernel\KernelInterface
$module string The module to load.
$action string The action to load.
$id integer | null This is not the modules_extra id but the id of the item itself
리턴 string | null if we have data it is still serialised since it will be unserialized in the constructor

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

getTemplate() 공개 메소드

Get the assigned template.
public getTemplate ( ) : 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 be stored in it also.
public loadConfig ( )

render() 공개 메소드

Get the block content
public render ( string $template = null ) : string
$template string
리턴 string