1 | <?php |
||
18 | class WidgetEvent extends Event { |
||
19 | |||
20 | /** |
||
21 | * @var Widget the widget currently being executed |
||
22 | */ |
||
23 | public $widget; |
||
24 | /** |
||
25 | * @var mixed the widget result. Event handlers may modify this property to change the widget result. |
||
26 | */ |
||
27 | public $result; |
||
28 | /** |
||
29 | * @var boolean whether to continue running the widget. Event handlers of |
||
30 | * [[Widget::EVENT_BEFORE_RUN]] may set this property to decide whether |
||
31 | * to continue running the current widget. |
||
32 | */ |
||
33 | public $isValid = true; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | * @param Widget $widget the widget associated with this widget event. |
||
39 | * @param array $config name-value pairs that will be used to initialize the object properties |
||
40 | */ |
||
41 | public function __construct($widget, $config = []) |
||
46 | } |
||
47 |