コード例 #1
0
 /**
  * Gets aql::$errors and adds them to the stack
  */
 protected function addAQLErrors()
 {
     foreach (aql::$errors as $e) {
         $this->addInternalError('aql_class_error', array('message' => $e->getMessage(), 'Exception' => $e));
     }
     aql::$errors = array();
 }
コード例 #2
0
 /**
  * Starts a transaction
  */
 public static function start_transaction()
 {
     if (!self::hasMasterDB()) {
         return;
     }
     self::$errors = array();
     self::getMasterDB()->StartTrans();
 }