153 $fieldsList = array();
154 foreach($result as $key => $value)
156 if(is_object($value))
158 $value = (string) $value;
159 $result[$key] = $value;
162 if(in_array($key, $this->fieldsDisallowed))
167 if($this->fields && in_array($key, $this->fields))
169 $fieldsList[$key] = $value;
172 unset($result[$key]);
175 if($this->additionalFields)
177 $fieldsList = $fieldsList + $this->additionalFields;
180 if(count($fieldsList) > 0)
182 $result[
'FIELDS'] = $fieldsList;
195 return $this->resource->getSelectedRowsCount();
197 elseif($this->resourceCDBResult)
199 if(!($this->resourceCDBResult instanceof \CDBResultMysql))
201 $this->resourceCDBResult->NavStart(0);
204 return $this->resourceCDBResult->SelectedRowsCount();