/** * Dumps the result as a table in text mode * @method __toString */ function __toString() { try { $ob = new Q_OutputBuffer(); $results = array(); foreach ($this->fields as $key => $value) { $results[] = array('Field name:' => $key, 'Field value:' => $value, 'Field modified:' => $this->wasModified($key) ? 'Yes' : 'No'); } Db_Utils::dump_table($results); return $ob->getClean(); } catch (Exception $e) { return $e->getMessage(); } }