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

상속: extends KernelLoader
파일 보기 프로젝트 열기: forkcms/forkcms

공개 프로퍼티들

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

보호된 프로퍼티들

프로퍼티 타입 설명
$header Backend\Core\Engine\Header The header object
$rights array Required rights needed for this widget.

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) The constructor will set some properties, it populates the parameter array with urldecoded values for ease of use.
getColumn ( ) : string Get the column
getPosition ( ) : mixed Get the position
getTemplatePath ( ) : mixed Get the template path
isAllowed ( ) : boolean Is this widget allowed for this user?
redirect ( string $url, integer $code = 302 ) Redirect to a given URL

보호된 메소드들

메소드 설명
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
setColumn ( string $column ) Set column for the widget
setPosition ( integer $position ) Set the position for the widget

메소드 상세

__construct() 공개 메소드

The constructor will set some properties, it populates the parameter array with urldecoded values for ease of use.
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

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
protected display ( string $template = null )
$template string The template to use.

getColumn() 공개 메소드

Get the column
public getColumn ( ) : string
리턴 string

getPosition() 공개 메소드

Get the position
public getPosition ( ) : mixed
리턴 mixed

getTemplatePath() 공개 메소드

Get the template path
public getTemplatePath ( ) : mixed
리턴 mixed

isAllowed() 공개 메소드

Is this widget allowed for this user?
public isAllowed ( ) : boolean
리턴 boolean

redirect() 공개 메소드

Redirect to a given URL
public redirect ( string $url, integer $code = 302 )
$url string The URL whereto will be redirected.
$code integer The redirect code, default is 302 which means this is a temporary redirect.

setColumn() 보호된 메소드

Set column for the widget
protected setColumn ( string $column )
$column string Possible values are: left, middle, right.

setPosition() 보호된 메소드

Set the position for the widget
protected setPosition ( integer $position )
$position integer The position for the widget.

프로퍼티 상세

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

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

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

Required rights needed for this widget.
protected array $rights
리턴 array

$tpl 공개적으로 프로퍼티

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