renommage de PEAR en DOLIPEAR

This commit is contained in:
Regis Houssin
2007-08-17 09:04:26 +00:00
parent 4ebb2bc445
commit 1c5df696a7
25 changed files with 402 additions and 402 deletions

View File

@@ -218,7 +218,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
register_shutdown_function('MDB2_closeOpenTransactions');
}
$result =& $this->_doQuery('BEGIN TRANSACTION', true);
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
return $result;
}
$this->in_transaction = true;
@@ -251,7 +251,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
}
$result =& $this->_doQuery('COMMIT TRANSACTION', true);
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
return $result;
}
$this->in_transaction = false;
@@ -285,7 +285,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
}
$result =& $this->_doQuery('ROLLBACK TRANSACTION', true);
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
return $result;
}
$this->in_transaction = false;
@@ -311,7 +311,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
$this->disconnect(false);
}
if (!PEAR::loadExtension($this->phptype)) {
if (!DOLIPEAR::loadExtension($this->phptype)) {
return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__);
}
@@ -335,7 +335,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
if (!empty($this->dsn['charset'])) {
$result = $this->setCharset($this->dsn['charset'], $connection);
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
return $result;
}
}
@@ -420,7 +420,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
$this->last_query = $query;
$result = $this->debug($query, 'query', array('is_manip' => $is_manip, 'when' => 'pre'));
if ($result) {
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
return $result;
}
$query = $result;
@@ -432,7 +432,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
if (is_null($connection)) {
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
if (DOLIPEAR::isError($connection)) {
return $connection;
}
}
@@ -477,7 +477,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
{
if (is_null($connection)) {
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
if (DOLIPEAR::isError($connection)) {
return $connection;
}
}
@@ -525,13 +525,13 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
} else {
$query = 'SELECT @@VERSION';
$server_info = $this->queryOne($query, 'text');
if (PEAR::isError($server_info)) {
if (DOLIPEAR::isError($server_info)) {
return $server_info;
}
}
// cache server_info
$this->connected_server_info = $server_info;
if (!$native && !PEAR::isError($server_info)) {
if (!$native && !DOLIPEAR::isError($server_info)) {
if (preg_match('/([0-9]+)\.([0-9]+)\.([0-9]+)/', $server_info, $tmp)) {
$server_info = array(
'major' => $tmp[1],
@@ -566,7 +566,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
{
$query = "SELECT * FROM $seq_name";
$tableExists =& $this->_doQuery($query, true);
if (PEAR::isError($tableExists)) {
if (DOLIPEAR::isError($tableExists)) {
if ($tableExists->getCode() == MDB2_ERROR_NOSUCHTABLE) {
return false;
}
@@ -606,11 +606,11 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
}
$result =& $this->_doQuery($query, true);
$this->popExpect();
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
if ($ondemand && !$this->_checkSequence($sequence_name)) {
$this->loadModule('Manager', null, true);
$result = $this->manager->createSequence($seq_name);
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
return $this->raiseError($result, null, null,
'on demand sequence '.$seq_name.' could not be created', __FUNCTION__);
} else {
@@ -623,7 +623,7 @@ class MDB2_Driver_mssql extends MDB2_Driver_Common
if (is_numeric($value)) {
$query = "DELETE FROM $sequence_name WHERE $seqcol_name < $value";
$result =& $this->_doQuery($query, true);
if (PEAR::isError($result)) {
if (DOLIPEAR::isError($result)) {
$this->warnings[] = 'nextID: could not delete previous sequence table values from '.$seq_name;
}
}
@@ -714,7 +714,7 @@ class MDB2_Result_mssql extends MDB2_Result_Common
}
if (!is_null($rownum)) {
$seek = $this->seek($rownum);
if (PEAR::isError($seek)) {
if (DOLIPEAR::isError($seek)) {
return $seek;
}
}
@@ -778,7 +778,7 @@ class MDB2_Result_mssql extends MDB2_Result_Common
{
$columns = array();
$numcols = $this->numCols();
if (PEAR::isError($numcols)) {
if (DOLIPEAR::isError($numcols)) {
return $numcols;
}
for ($column = 0; $column < $numcols; $column++) {
@@ -906,7 +906,7 @@ class MDB2_BufferedResult_mssql extends MDB2_Result_mssql
function valid()
{
$numrows = $this->numRows();
if (PEAR::isError($numrows)) {
if (DOLIPEAR::isError($numrows)) {
return $numrows;
}
return $this->rownum < ($numrows - 1);