API CHANGE Removed DataObjectSet->consolidateString()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65066 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-02 00:55:12 +00:00
parent 09564b0132
commit eb38e4d9c8

View File

@ -1,10 +1,4 @@
<?php <?php
/**
* @package sapphire
* @subpackage model
*/
/** /**
* This class represents a set of {@link ViewableData} subclasses (mostly {@link DataObject} or {@link ArrayData}). * This class represents a set of {@link ViewableData} subclasses (mostly {@link DataObject} or {@link ArrayData}).
* It is used by the ORM-layer of Silverstripe to return query-results from {@link SQLQuery}. * It is used by the ORM-layer of Silverstripe to return query-results from {@link SQLQuery}.
@ -112,25 +106,6 @@ class DataObjectSet extends ViewableData implements IteratorAggregate {
} }
return $output; return $output;
} }
/**
* Consolidate the DataObjectSet into XHTML
* The string will contain the field values of the specified fields.
* @return string
*/
public function consolidateString() {
$fieldList = func_get_args();
$data = $this->consolidate($fieldList);
$result = "<p>array (<br >";
foreach($data as $record) {
$result .= " &nbsp; &nbsp; array( ";
foreach($record as $field) $result .= " '" . htmlentities(addslashes($field)) . "',";
$result .= "), <br />";
}
$result .= ")</p>";
return $result;
}
/** /**
* Destory all of the DataObjects in this set. * Destory all of the DataObjects in this set.