mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-01 00:49:33 +02: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();
|
$children = is_array(func_get_args()) ? func_get_args() : array();
|
||||||
$this->children = new FieldSet($children);
|
$this->children = new FieldSet($children);
|
||||||
}
|
}
|
||||||
|
|
||||||
Object::__construct();
|
Object::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,6 +50,14 @@ class CompositeField extends FormField {
|
||||||
public function Field() {
|
public function Field() {
|
||||||
return $this->FieldHolder();
|
return $this->FieldHolder();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accessor method for $this->children
|
||||||
|
* @return FieldSet
|
||||||
|
*/
|
||||||
|
public function getChildren() {
|
||||||
|
return $this->children;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the fields nested inside another DIV
|
* Returns the fields nested inside another DIV
|
||||||
|
|
Loading…
Reference in New Issue
Block a user