ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
MDB2_Driver_Native_pgsql Class Reference
+ Inheritance diagram for MDB2_Driver_Native_pgsql:
+ Collaboration diagram for MDB2_Driver_Native_pgsql:

Public Member Functions

 deleteOID ($OID)
 delete an OID More...
 
- Public Member Functions inherited from MDB2_Module_Common
 __construct ($db_index)
 Constructor. More...
 
 MDB2_Module_Common ($db_index)
 PHP 4 Constructor. More...
 
getDBInstance ()
 Get the instance of MDB2 associated with the module instance. More...
 

Additional Inherited Members

- Data Fields inherited from MDB2_Module_Common
 $db_index
 

Detailed Description

Definition at line 56 of file pgsql.php.

Member Function Documentation

◆ deleteOID()

MDB2_Driver_Native_pgsql::deleteOID (   $OID)

delete an OID

Parameters
integer$OID
Returns
mixed MDB2_OK on success or MDB2 Error Object on failure public

Definition at line 68 of file pgsql.php.

References MDB2_Module_Common\getDBInstance(), PEAR\isError(), and MDB2_OK.

69  {
70  $db =& $this->getDBInstance();
71  if (PEAR::isError($db)) {
72  return $db;
73  }
74 
75  $connection = $db->getConnection();
76  if (PEAR::isError($connection)) {
77  return $connection;
78  }
79 
80  if (!@pg_lo_unlink($connection, $OID)) {
81  return $db->raiseError(null, null, null,
82  'Unable to unlink OID: '.$OID, __FUNCTION__);
83  }
84  return MDB2_OK;
85  }
const MDB2_OK(!class_exists('PEAR'))
The method mapErrorCode in each MDB2_dbtype implementation maps native error codes to one of these...
Definition: MDB2.php:72
& getDBInstance()
Get the instance of MDB2 associated with the module instance.
Definition: MDB2.php:4244
isError($data, $code=null)
Tell whether a value is a PEAR error.
Definition: PEAR.php:280
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: