PHP Класс Backend\Core\Engine\Base\Widget

Наследование: extends KernelLoader
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$tpl Backend\Core\Engine\TwigTemplate A reference to the current template

Защищенные свойства (Protected)

Свойство Тип Описание
$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