API CHANGE Usage of FieldSet is deprecated, use FieldList instead

This commit is contained in:
Stig Lindqvist 2011-09-27 11:55:49 +13:00 committed by Stig Lindqvist
parent bf73265252
commit b6f88036eb
2 changed files with 4 additions and 4 deletions

View File

@ -328,7 +328,7 @@ JS;
} }
/** /**
* @return FieldSet * @return FieldList
*/ */
function createFieldSet() { function createFieldSet() {
$fieldset = new FieldList(); $fieldset = new FieldList();
@ -359,7 +359,7 @@ JS;
* this method. * this method.
*/ */
function getCustomFieldsFor($childData) { function getCustomFieldsFor($childData) {
if($this->detailFormFields instanceof FieldSet) { if($this->detailFormFields instanceof FieldList) {
return $this->detailFormFields; return $this->detailFormFields;
} }

View File

@ -278,7 +278,7 @@ class TableField extends TableListField {
* transformation if {@link $IsReadonly} is set, or the current user * transformation if {@link $IsReadonly} is set, or the current user
* doesn't have edit permissions. * doesn't have edit permissions.
* *
* @return FieldSet * @return FieldList
*/ */
function FieldSetForRow() { function FieldSetForRow() {
$fieldset = new FieldList(); $fieldset = new FieldList();
@ -624,7 +624,7 @@ class TableField_Item extends TableListField_Item {
/** /**
* Represents each cell of the table with an attribute. * Represents each cell of the table with an attribute.
* *
* @return FieldSet * @return FieldList
*/ */
function createFields() { function createFields() {
// Existing record // Existing record