mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Added getter method for CompositeField->children
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61149 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dc5607d8f0
commit
7f6be42004
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user