Etienne Kneuss

home » repository » php » ircbot » libraries » class.DB_Common.php
Tree:
school
mp3
php
sample
publications
Math_Derivative
Math_Expression
ircbot
libraries
class.Link_IRC.php
class.DB_mySQL.php
class.Link.php
expt.DB_Exception.php
class.DB_mySQL_Results.php
class.DB_Common_Results.php
class.DB.php
class.DB_Common.php
iface.Observed.php
iface.Observer.php
class.BaseArray.php
class.Bot.php
modules
exceptions
bot.php
plopbot.sql
php.net
images
dump

Source code raw phps

    <?php require_once 'libraries/iface.Observed.php'; abstract class DB_common  implements Observed {      protected $_observers = array();          const UE_CONN_FAILED   = 1;     const UE_DB_SEL_FAILED = 2;     const UE_INVALID_SQL   = 3;     const UE_INVALID_RES   = 4;     abstract public function execute($query);     abstract public function connect($host, $username, $password, $database);          abstract public function escape($value);     abstract public function insertedId();     // required methods for the Observed interface     public function notify($msg, $status)     {         foreach ($this->_observers as $obs) {             $obs->update($this, $msg, $status);         }              }     public function attach(Observer $obj) {         $this->_observers[(String) $obj] = $obj;     }     public function detach(Observer $obj) {         unset($this->_observers[(String) $obj]);     } } ?>

Comments

There is currently no comment here.

Add a comment

Username:

Spam Challenge: 11+20=?

Comment: