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:
Will Rossiter 2009-11-26 21:24:38 +00:00
parent 61ee1b906d
commit 2ff4631c1f
2 changed files with 0 additions and 26 deletions

View File

@ -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

View File

@ -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"
);
}
} }