Esempio n. 1
0
 public function run($uid)
 {
     $operator = new PwDeleteReply(new PwFetchReplyByUid($uid), $this->operator);
     $operator->execute();
 }
Esempio n. 2
0
 /**
  * 删除回复
  */
 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('删除成功了');
 }
Esempio n. 3
0
 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('删除成功了');
 }