function delete() { if ($_REQUEST['f_id']) { $this->begin('index.php?ctl=member/gask&act=detail&p[0]=' . $_REQUEST['f_id']); } else { $this->begin('index.php?ctl=member/gask&act=index'); } if ($_POST['_finder']) { parent::delete(); } else { $objComment = $this->system->loadModel('comment/comment'); if (is_array($_REQUEST['comment_id'])) { foreach ($_REQUEST['comment_id'] as $id) { $objComment->toRemove($id); } } } $this->end(true, __('操作成功!')); }
/** * 清除回收站(一并删除规则) * * @access public * @return void */ function delete() { // 删除规则 $oDataSync = $this->system->loadModel('distribution/autosync'); $oDataSync->deleteRuleRelation($_POST['rule_id']); parent::delete(); }