$pkey[] = $key;
$pval[] = self::valueString($this->$key);
} else {
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
throw new Exception("Unknown key type $key => $type for " . $this->tableName());
}
}
} else if ($type == 'fulltext') {
$search_engine = new MySQLSearch($this, $table);
} else {
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
throw new ServerException('Unknown search type: ' . $type);
}
} else {
if (!$dsn) {
// TRANS: Exception thrown when database name or Data Source Name could not be found.
- throw new Exception(_("No database name / DSN found anywhere"));
+ throw new Exception(_("No database name or DSN found anywhere."));
}
return $dsn;
if ($message instanceof PEAR_Error) {
$message = $message->getMessage();
}
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
throw new ServerException("[$id] DB_DataObject error [$type]: $message");
}
case 'sql':
case 'datetime':
case 'time':
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
throw new ServerException("Unhandled DB_DataObject_Cast type passed as cacheKey value: '$v->type'");
break;
default:
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
throw new ServerException("Unknown DB_DataObject_Cast type passed as cacheKey value: '$v->type'");
break;
}
if ($this->_call($method, $params, $return)) {
return $return;
} else {
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
throw new Exception('Call to undefined method ' .
get_class($this) . '::' . $method);
}
$this->debug("Cant find database schema: {$this->_database}/{$this->__table} \n".
"in links file data: " . print_r($_DB_DATAOBJECT['INI'],true),"databaseStructure",5);
// we have to die here!! - it causes chaos if we don't (including looping forever!)
- // FIXME: i18n?
+ // Low level exception. No need for i18n as discussed with Brion.
$this->raiseError( "Unable to load schema for database and table (turn debugging up to 5 for full error message)", DB_DATAOBJECT_ERROR_INVALIDARGS, PEAR_ERROR_DIE);
return false;
}