mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2883 from TomSpeak/patch-1
DOC: DropdownField __construct
This commit is contained in:
commit
194393d705
@ -117,15 +117,15 @@ class DropdownField extends FormField {
|
|||||||
protected $disabledItems = array();
|
protected $disabledItems = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new dropdown field.
|
* @param string $name The field name
|
||||||
* @param $name The field name
|
* @param string $title The field title
|
||||||
* @param $title The field title
|
* @param array $source An map of the dropdown items
|
||||||
* @param $source An map of the dropdown items
|
* @param string $value The current value
|
||||||
* @param $value The current value
|
* @param Form $form The parent form
|
||||||
* @param $form The parent form
|
* @param string|bool $emptyString Add an empty selection on to of the {@link $source}-Array (can also be
|
||||||
* @param $emptyString mixed Add an empty selection on to of the {@link $source}-Array (can also be boolean, which
|
* boolean, which results in an empty string). Argument is deprecated
|
||||||
* results in an empty string). Argument is deprecated in 3.1, please use
|
* in 3.1, please use{@link setEmptyString()} and/or
|
||||||
* {@link setEmptyString()} and/or {@link setHasEmptyDefault(true)} instead.
|
* {@link setHasEmptyDefault(true)} instead.
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $title=null, $source=array(), $value='', $form=null, $emptyString=null) {
|
public function __construct($name, $title=null, $source=array(), $value='', $form=null, $emptyString=null) {
|
||||||
$this->setSource($source);
|
$this->setSource($source);
|
||||||
|
Loading…
Reference in New Issue
Block a user