* @package client * @link https://www.zentao.net */ class client extends control { /** * 删除一个客户端版本。 * Delete a client version. * * @param int $clientID * @access public * @return void */ public function delete($clientID) { $this->dao->delete()->from(TABLE_IM_CLIENT)->where('id')->eq($clientID)->exec(); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); return $this->send(array('result' => 'success', 'load' => true)); } }