mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fluent interface for TreeDropdownField
This commit is contained in:
parent
79997477b3
commit
61cc033304
@ -159,6 +159,7 @@ class TreeDropdownField extends FormField {
|
|||||||
*/
|
*/
|
||||||
public function setChildrenMethod($method) {
|
public function setChildrenMethod($method) {
|
||||||
$this->childrenMethod = $method;
|
$this->childrenMethod = $method;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -296,6 +297,7 @@ class TreeDropdownField extends FormField {
|
|||||||
*/
|
*/
|
||||||
public function setLabelField($field) {
|
public function setLabelField($field) {
|
||||||
$this->labelField = $field;
|
$this->labelField = $field;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -310,6 +312,7 @@ class TreeDropdownField extends FormField {
|
|||||||
*/
|
*/
|
||||||
public function setKeyField($field) {
|
public function setKeyField($field) {
|
||||||
$this->keyField = $field;
|
$this->keyField = $field;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -324,6 +327,7 @@ class TreeDropdownField extends FormField {
|
|||||||
*/
|
*/
|
||||||
public function setSourceObject($class) {
|
public function setSourceObject($class) {
|
||||||
$this->sourceObject = $class;
|
$this->sourceObject = $class;
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user