mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: removed listOfFields() function. Use custom code instead.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93647 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
61ee1b906d
commit
2ff4631c1f
@ -2554,24 +2554,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a bunch of fields in an HTML LI, like this:
|
|
||||||
* - name: value
|
|
||||||
* - name: value
|
|
||||||
* - name: value
|
|
||||||
*
|
|
||||||
* @deprecated 2.3 Use custom code
|
|
||||||
* @return string The fields as an HTML unordered list
|
|
||||||
*/
|
|
||||||
function listOfFields() {
|
|
||||||
$fields = func_get_args();
|
|
||||||
$result = "<ul>\n";
|
|
||||||
foreach($fields as $field)
|
|
||||||
$result .= "<li><b>$field:</b> " . $this->$field . "</li>\n";
|
|
||||||
$result .= "</ul>";
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return all objects matching the filter
|
* Return all objects matching the filter
|
||||||
* sub-classes are automatically selected and included
|
* sub-classes are automatically selected and included
|
||||||
|
@ -1414,14 +1414,6 @@ class Member_SignupEmail extends Email {
|
|||||||
</ul>
|
</ul>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
function MemberData() {
|
|
||||||
return $this->template_data->listOfFields(
|
|
||||||
"FirstName", "Surname", "Email",
|
|
||||||
"Phone", "Mobile", "Street",
|
|
||||||
"Suburb", "City", "Postcode"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user