public function run($uid) { $operator = new PwDeleteReply(new PwFetchReplyByUid($uid), $this->operator); $operator->execute(); }
/** * 删除回复 */ public function doDeleteReplyAction() { $pids = $this->getInput('pids'); Wind::import('SRV:forum.srv.operation.PwDeleteReply'); Wind::import('SRV:forum.srv.dataSource.PwFetchReplyByPid'); $srv = new PwDeleteReply(new PwFetchReplyByPid($pids), $this->loginUser); $srv->execute(); $this->showMessage('删除成功了'); }
public function doDeleteReplyAction() { $pids = $this->getInput('pids'); if (!$pids) { $this->showError('operate.select'); } Wind::import('SRV:forum.srv.operation.PwDeleteReply'); Wind::import('SRV:forum.srv.dataSource.PwFetchReplyByPid'); $srv = new PwDeleteReply(new PwFetchReplyByPid($pids), new PwUserBo($this->adminUser->getUid())); $srv->execute(); $this->showMessage('删除成功了'); }