PHP 클래스 skeeks\cms\base\Widget

상속: extends Component, implements yii\base\ViewContextInterface, use trait skeeks\cms\traits\WidgetTrait
파일 보기 프로젝트 열기: skeeks-cms/cms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_isBegin boolean Признак срабатывания функции static self::begin()
$_token string

공개 메소드들

메소드 설명
_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

보호된 메소드들

메소드 설명
_run ( ) : string

메소드 상세

_begin() 공개 메소드

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

_end() 공개 메소드

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

_run() 보호된 메소드

protected _run ( ) : string
리턴 string

begin() 공개 정적인 메소드

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
리턴 static the newly created widget instance

beginWidget() 공개 정적인 메소드

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
리턴 Widget

end() 공개 정적인 메소드

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

init() 공개 메소드

public init ( )

run() 공개 메소드

public run ( ) : string
리턴 string

프로퍼티 상세

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

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

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

protected string $_token
리턴 string