PHP Class skeeks\cms\base\Widget

Inheritance: extends Component, implements yii\base\ViewContextInterface, use trait skeeks\cms\traits\WidgetTrait
ファイルを表示 Open project: skeeks-cms/cms Class Usage Examples

Protected Properties

Property Type Description
$_isBegin boolean Признак срабатывания функции static self::begin()
$_token string

Public Methods

Method Description
_begin ( ) : string Если включена дебаг мод, будет напечатан первый тег
_end ( ) : string В режиме редактирования, будет добавлен закрывающий тег + зарегистрированные данные для js
begin ( array $config = [] ) : static Begins a widget.
beginWidget ( string $namespace, array $config = [] ) : Widget
end ( ) : static Ends a widget.
init ( )
run ( ) : string

Protected Methods

Method Description
_run ( ) : string

Method Details

_begin() public method

Если включена дебаг мод, будет напечатан первый тег
public _begin ( ) : string
return string

_end() public method

В режиме редактирования, будет добавлен закрывающий тег + зарегистрированные данные для js
public _end ( ) : string
return string

_run() protected method

protected _run ( ) : string
return string

begin() public static method

This method creates an instance of the calling class. It will apply the configuration to the created instance. A matching Widget::end call should be called later.
public static begin ( array $config = [] ) : static
$config array name-value pairs that will be used to initialize the object properties
return static the newly created widget instance

beginWidget() public static method

public static beginWidget ( string $namespace, array $config = [] ) : Widget
$namespace string Unique code, which is attached to the settings in the database
$config array Standard widget settings
return Widget

end() public static method

Note that the rendering result of the widget is directly echoed out.
public static end ( ) : static
return static the widget instance that is ended.

init() public method

public init ( )

run() public method

public run ( ) : string
return string

Property Details

$_isBegin protected_oe property

Признак срабатывания функции static self::begin()
protected bool $_isBegin
return boolean

$_token protected_oe property

protected string $_token
return string