ENHANCEMENT Using actual classname in DataObjectSet->debug()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65582 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-11 02:36:30 +00:00
parent 5df97fba10
commit 79a7e6d27a

View File

@ -739,7 +739,7 @@ class DataObjectSet extends ViewableData implements IteratorAggregate {
* @return string
*/
public function debug() {
$val = "<h2>dataobject set</h2><ul>";
$val = "<h2>" . $this->class . "</h2><ul>";
foreach($this as $item) {
$val .= "<li style=\"list-style-type: disc; margin-left: 20px\">" . Debug::text($item) . "</li>";
}