/** * 删除记录[如果没有设置条件,将删除当前对象] * @access public * @return mixed */ public function remove() { $this->_checkWhere(); if ($this->_adv_where == null) { throw new XF_Db_Table_Select_Exception('缺少删除条件', 500); } $this->_allotDatabaseServer('REMOVE'); $this->_db_drive_connect->showQuery($this->_show_query); $this->_db_table->__removeBefore($this->_adv_where); $result = $this->_db_drive_connect->remove($this->_db_table->getTableName(), $this->_adv_where); if ($result !== false) { $this->_db_table->__remove($this->_adv_where); } $this->_clearProperty(); return $result; }