1 | <?php |
||
37 | class InputWidget extends Widget |
||
38 | { |
||
39 | /** |
||
40 | * @var Model the data model that this widget is associated with. |
||
41 | */ |
||
42 | public $model; |
||
43 | /** |
||
44 | * @var string the model attribute that this widget is associated with. |
||
45 | */ |
||
46 | public $attribute; |
||
47 | /** |
||
48 | * @var string the input name. This must be set if [[model]] and [[attribute]] are not set. |
||
49 | */ |
||
50 | public $name; |
||
51 | /** |
||
52 | * @var string the input value. |
||
53 | */ |
||
54 | public $value; |
||
55 | /** |
||
56 | * @var array the HTML attributes for the input tag. |
||
57 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
58 | */ |
||
59 | public $options = []; |
||
60 | |||
61 | |||
62 | /** |
||
63 | * Initializes the widget. |
||
64 | * If you override this method, make sure you call the parent implementation first. |
||
65 | */ |
||
66 | 1 | public function init() |
|
76 | |||
77 | /** |
||
78 | * @return bool whether this widget is associated with a data model. |
||
79 | */ |
||
80 | 1 | protected function hasModel() |
|
84 | } |
||
85 |