public function commit() { if ($this->transTimes > 0) { $result = $this->_linkID->commit(); $this->_linkID->autocommit(true); $this->transTimes = 0; if (!$result) { $this->error(); return false; } } return true; }