public function expandAttributes($Name = 'Attributes')
{
$Result =& $this->result();
foreach ($Result as &$Row) {
if (is_object($Row)) {
if (is_string($Row->{$Name})) {
$Attributes = dbdecode($Row->{$Name});
if (is_array($Attributes)) {
foreach ($Attributes as $N => $V) {
$Row->{$N} = $V;
}
}
unset($Row->{$Name});
}
} else {
if (is_string($Row[$Name])) {
$Attributes = dbdecode($Row[$Name]);
if (is_array($Attributes)) {
$Row = array_merge($Row, $Attributes);
}
unset($Row[$Name]);
}
}
}
}