예제 #1
0
파일: Abstract.php 프로젝트: gauthierm/MDB2
 public function supported($feature)
 {
     if (!$this->db->supports($feature)) {
         return false;
     }
     return true;
 }
예제 #2
0
파일: db.php 프로젝트: ryanshoover/core
 /**
  * Start a transaction
  * @return bool
  */
 public static function beginTransaction()
 {
     self::connect();
     if (self::$backend == self::BACKEND_MDB2 && !self::$connection->supports('transactions')) {
         return false;
     }
     self::$connection->beginTransaction();
     self::$inTransaction = true;
     return true;
 }
예제 #3
0
 /**
  * The class constructor
  *
  * @return OA_Dal_Central_AdNetworks
  */
 function OA_Dal_Central_Common()
 {
     $this->oDbh = OA_DB::singleton();
     $this->hasTransactions = $this->oDbh->supports('transactions');
 }