/** * 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(); }
/** * Starts a transaction */ public static function start_transaction() { if (!self::hasMasterDB()) { return; } self::$errors = array(); self::getMasterDB()->StartTrans(); }