http://www.fsf.org/ or write * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. * */ // POSTGRESQL DBMS HANDLING // TODO: Implement this class /** * This is the cmsdAm postgresql handling class. * * Stay tuned, it is not even written!!

* Class instance: $cms->postgresqldbms * @author dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net> */ class cmsdam_postgresqldbms { var $link; var $db; var $result; var $stack; var $DB_servername; var $DB_name; var $DB_username; var $DB_tbl_prefix; var $DB_password = ""; var $db_connected = 0; function DB_connect() { /* This method connects to the DBMS and select the DB, returns true on success or false on error */ if ($this->db_connected == 1) { // We are already connected to the DB! return true; } // Try to connect to mysql if ($this->dbconnect() == false) { // Error connecting $this->db_connected = 0; return false; } // Now we are connected // Try to select the right DB if ($this->dbselect() == false) { // Error selecting DB $this->db_connected = 0; return false; } // Now the DB is selected $this->db_connected = 1; // echo "DEBUG: CONNECTED: " . $this->db_connected . "!!"; return true; } function DB_close() { // This method close the DBMS connection // Close the DB connection $this->dbclose(); $this->db_connected = 0; return true; } function dbconnect() { // TODO: IMPLEMENT THESE METHODS echo "POSTGRESQL must be implemented"; exit (1); } function dbelect() { // TODO: IMPLEMENT THESE METHODS echo "POSTGRESQL must be implemented"; exit (1); } function dbclose() { // TODO: IMPLEMENT THESE METHODS echo "POSTGRESQL must be implemented"; exit (1); } } ?>