PHP Class skeeks\cms\base\Widget

Inheritance: extends Component, implements yii\base\ViewContextInterface, use trait skeeks\cms\traits\WidgetTrait
Afficher le fichier Open project: skeeks-cms/cms Class Usage Examples

Protected Properties

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
_run ( ) : string

Method Details

_begin() public méthode

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

_end() public méthode

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

_run() protected méthode

protected _run ( ) : string
Résultat string

begin() public static méthode

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
Résultat static the newly created widget instance

beginWidget() public static méthode

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
Résultat Widget

end() public static méthode

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

init() public méthode

public init ( )

run() public méthode

public run ( ) : string
Résultat string

Property Details

$_isBegin protected_oe property

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

$_token protected_oe property

protected string $_token
Résultat string