1 | <?php |
||
44 | class QueryBuilderForm extends Widget |
||
45 | { |
||
46 | /** |
||
47 | * @param array|string $action the form action URL. This parameter will be processed by [[\yii\helpers\Url::to()]]. |
||
48 | * @see method for specifying the HTTP method for this form. |
||
49 | */ |
||
50 | public $action = ['']; |
||
51 | |||
52 | /** |
||
53 | * @var string the form submission method. This should be either 'post' or 'get'. Defaults to 'get'. |
||
54 | * |
||
55 | * When you set this to 'get' you may see the url parameters repeated on each request. |
||
56 | * This is because the default value of [[action]] is set to be the current request url and each submit |
||
57 | * will add new parameters instead of replacing existing ones. |
||
58 | */ |
||
59 | public $method = 'get'; |
||
60 | |||
61 | /** |
||
62 | * @var array the HTML attributes (name-value pairs) for the form tag. |
||
63 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
64 | */ |
||
65 | public $options = []; |
||
66 | |||
67 | /** |
||
68 | * @var string the hidden input name that will be used to send JSON rules into string format |
||
69 | */ |
||
70 | public $rulesParam = 'rules'; |
||
71 | |||
72 | /** |
||
73 | * @var array|QueryBuilder QueryBuilder column configuration. |
||
74 | * For example, |
||
75 | * |
||
76 | * ```php |
||
77 | * <?= QueryBuilderForm::widget([ |
||
78 | * 'builder' => [ |
||
79 | * 'id' => 'query-builder', |
||
80 | * 'filters' => [ |
||
81 | * ['id' => 'id', 'label' => 'Id', 'type' => 'integer'], |
||
82 | * ['id' => 'name', 'label' => 'Name', 'type' => 'string'], |
||
83 | * ['id' => 'lastName', 'label' => 'Last Name', 'type' => 'string'] |
||
84 | * ] |
||
85 | * ] |
||
86 | *]) ?> |
||
87 | * ``` |
||
88 | */ |
||
89 | public $builder; |
||
90 | |||
91 | /** |
||
92 | * @var string JSON rules representation into array format |
||
93 | */ |
||
94 | public $rules; |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function init() |
||
120 | |||
121 | /** |
||
122 | * @inheritdoc |
||
123 | */ |
||
124 | public function run() |
||
164 | } |
||
165 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.