/** * 指示在调用 complete_trans() 时回滚事务 */ function setTransFailed() { $this->_trans_failed = true; $this->_dbo->setTransFailed(); }