public function __get($strKey)
{
switch ($strKey) {
case 'query':
return $this->strQuery;
break;
case 'numRows':
return $this->count();
break;
case 'numFields':
return $this->resResult->columnCount();
break;
case 'isModified':
return $this->blnModified;
break;
default:
if (empty($this->arrCache)) {
$this->next();
}
if (isset($this->arrCache[$strKey])) {
return $this->arrCache[$strKey];
}
break;
}
return null;
}