mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-27 20:06:19 +08:00
Add visibility for all class elements (#20557)
This commit is contained in:
@ -30,18 +30,18 @@ class Widget extends Component implements ViewContextInterface
|
||||
* @event Event an event that is triggered when the widget is initialized via [[init()]].
|
||||
* @since 2.0.11
|
||||
*/
|
||||
const EVENT_INIT = 'init';
|
||||
public const EVENT_INIT = 'init';
|
||||
/**
|
||||
* @event WidgetEvent an event raised right before executing a widget.
|
||||
* You may set [[WidgetEvent::isValid]] to be false to cancel the widget execution.
|
||||
* @since 2.0.11
|
||||
*/
|
||||
const EVENT_BEFORE_RUN = 'beforeRun';
|
||||
public const EVENT_BEFORE_RUN = 'beforeRun';
|
||||
/**
|
||||
* @event WidgetEvent an event raised right after executing a widget.
|
||||
* @since 2.0.11
|
||||
*/
|
||||
const EVENT_AFTER_RUN = 'afterRun';
|
||||
public const EVENT_AFTER_RUN = 'afterRun';
|
||||
|
||||
/**
|
||||
* @var int a counter used to generate [[id]] for widgets.
|
||||
|
||||
Reference in New Issue
Block a user