mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-11 19:20:01 +08:00
Merge pull request #12672 from rob006/patch-3
Fix phpdoc in `yii\helpers\BaseHtml`
This commit is contained in:
@@ -743,7 +743,7 @@ class BaseHtml
|
|||||||
/**
|
/**
|
||||||
* Generates a drop-down list.
|
* Generates a drop-down list.
|
||||||
* @param string $name the input name
|
* @param string $name the input name
|
||||||
* @param string|array $selection the selected value(s). String for single or array for multiple selection(s).
|
* @param string|array|null $selection the selected value(s). String for single or array for multiple selection(s).
|
||||||
* @param array $items the option data items. The array keys are option values, and the array values
|
* @param array $items the option data items. The array keys are option values, and the array values
|
||||||
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
|
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
|
||||||
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
|
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
|
||||||
@@ -792,7 +792,7 @@ class BaseHtml
|
|||||||
/**
|
/**
|
||||||
* Generates a list box.
|
* Generates a list box.
|
||||||
* @param string $name the input name
|
* @param string $name the input name
|
||||||
* @param string|array $selection the selected value(s). String for single or array for multiple selection(s).
|
* @param string|array|null $selection the selected value(s). String for single or array for multiple selection(s).
|
||||||
* @param array $items the option data items. The array keys are option values, and the array values
|
* @param array $items the option data items. The array keys are option values, and the array values
|
||||||
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
|
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
|
||||||
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
|
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
|
||||||
@@ -858,7 +858,7 @@ class BaseHtml
|
|||||||
* A checkbox list allows multiple selection, like [[listBox()]].
|
* A checkbox list allows multiple selection, like [[listBox()]].
|
||||||
* As a result, the corresponding submitted value is an array.
|
* As a result, the corresponding submitted value is an array.
|
||||||
* @param string $name the name attribute of each checkbox.
|
* @param string $name the name attribute of each checkbox.
|
||||||
* @param string|array $selection the selected value(s). String for single or array for multiple selection(s).
|
* @param string|array|null $selection the selected value(s). String for single or array for multiple selection(s).
|
||||||
* @param array $items the data item used to generate the checkboxes.
|
* @param array $items the data item used to generate the checkboxes.
|
||||||
* The array keys are the checkbox values, while the array values are the corresponding labels.
|
* The array keys are the checkbox values, while the array values are the corresponding labels.
|
||||||
* @param array $options options (name => config) for the checkbox list container tag.
|
* @param array $options options (name => config) for the checkbox list container tag.
|
||||||
@@ -938,7 +938,7 @@ class BaseHtml
|
|||||||
* Generates a list of radio buttons.
|
* Generates a list of radio buttons.
|
||||||
* A radio button list is like a checkbox list, except that it only allows single selection.
|
* A radio button list is like a checkbox list, except that it only allows single selection.
|
||||||
* @param string $name the name attribute of each radio button.
|
* @param string $name the name attribute of each radio button.
|
||||||
* @param string|array $selection the selected value(s). String for single or array for multiple selection(s).
|
* @param string|array|null $selection the selected value(s). String for single or array for multiple selection(s).
|
||||||
* @param array $items the data item used to generate the radio buttons.
|
* @param array $items the data item used to generate the radio buttons.
|
||||||
* The array keys are the radio button values, while the array values are the corresponding labels.
|
* The array keys are the radio button values, while the array values are the corresponding labels.
|
||||||
* @param array $options options (name => config) for the radio button list container tag.
|
* @param array $options options (name => config) for the radio button list container tag.
|
||||||
@@ -1672,7 +1672,7 @@ class BaseHtml
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the option tags that can be used by [[dropDownList()]] and [[listBox()]].
|
* Renders the option tags that can be used by [[dropDownList()]] and [[listBox()]].
|
||||||
* @param string|array $selection the selected value(s). String for single or array for multiple selection(s).
|
* @param string|array|null $selection the selected value(s). String for single or array for multiple selection(s).
|
||||||
* @param array $items the option data items. The array keys are option values, and the array values
|
* @param array $items the option data items. The array keys are option values, and the array values
|
||||||
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
|
* are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).
|
||||||
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
|
* For each sub-array, an option group will be generated whose label is the key associated with the sub-array.
|
||||||
|
|||||||
Reference in New Issue
Block a user