diff --git a/forms/CompositeField.php b/forms/CompositeField.php index b4fa18d55..8257b1dfe 100755 --- a/forms/CompositeField.php +++ b/forms/CompositeField.php @@ -32,7 +32,7 @@ class CompositeField extends FormField { $children = is_array(func_get_args()) ? func_get_args() : array(); $this->children = new FieldSet($children); } - + Object::__construct(); } @@ -50,6 +50,14 @@ class CompositeField extends FormField { public function Field() { return $this->FieldHolder(); } + + /** + * Accessor method for $this->children + * @return FieldSet + */ + public function getChildren() { + return $this->children; + } /** * Returns the fields nested inside another DIV