From 61cc0333043dbc515d5a1523f440bda7242e574a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 8 Jan 2013 18:32:40 +0100 Subject: [PATCH] Fluent interface for TreeDropdownField --- forms/TreeDropdownField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/forms/TreeDropdownField.php b/forms/TreeDropdownField.php index f48696a31..2d86ddec5 100644 --- a/forms/TreeDropdownField.php +++ b/forms/TreeDropdownField.php @@ -159,6 +159,7 @@ class TreeDropdownField extends FormField { */ public function setChildrenMethod($method) { $this->childrenMethod = $method; + return $this; } /** @@ -296,6 +297,7 @@ class TreeDropdownField extends FormField { */ public function setLabelField($field) { $this->labelField = $field; + return $this; } /** @@ -310,6 +312,7 @@ class TreeDropdownField extends FormField { */ public function setKeyField($field) { $this->keyField = $field; + return $this; } /** @@ -324,6 +327,7 @@ class TreeDropdownField extends FormField { */ public function setSourceObject($class) { $this->sourceObject = $class; + return $this; } /**