mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
09564b0132
commit
eb38e4d9c8
@ -1,10 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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}.
|
||||
@ -113,25 +107,6 @@ class DataObjectSet extends ViewableData implements IteratorAggregate {
|
||||
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 .= " array( ";
|
||||
foreach($record as $field) $result .= " '" . htmlentities(addslashes($field)) . "',";
|
||||
$result .= "), <br />";
|
||||
}
|
||||
$result .= ")</p>";
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destory all of the DataObjects in this set.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user