/**
  * @param   string      $table
  * @param   mixed       $fields
  * @param   mixed       $id     can be null
  * @param   ADODB       $db
  */
 public function __construct($table, $fields, $id, $db)
 {
     $this->table = $table;
     $this->fields = $fields;
     $this->id = $id;
     $this->type = $this->getTransactionType();
     $this->db_error = $db->ErrorMsg();
     parent::__construct($this->makeMessage());
 }
Example #2
0
 /**
  * Returns number of affected rows
  * @return unknown_type
  */
 public function getAffectedRows()
 {
     // self::$log[] = $sql;
     return $this->db->Affected_Rows();
 }
 /**
  *
  * Rolls back transaction
  */
 public function rollback()
 {
     return $this->db->FailTrans();
 }
Example #4
0
 /**
  * Return latest error message
  * @return string $message
  */
 public function getErrorMsg()
 {
     return $this->db->Errormsg();
 }