/**
  * ban manage
  * 
  * @return PwThreadManageDoBan
  */
 protected function _getBanManage($manage)
 {
     Wind::import('SRV:forum.srv.manage.PwThreadManageDoBan');
     $do = new PwThreadManageDoBan($manage, $this->loginUser);
     if ($this->doAction) {
         $banInfo = new stdClass();
         $banInfo->types = $this->getInput('types', 'post');
         $banInfo->end_time = $this->getInput('end_time', 'post');
         $banInfo->reason = $this->getInput('reason', 'post');
         $banInfo->ban_range = intval($this->getInput('ban_range', 'post'));
         $banInfo->sendNotice = intval($this->getInput('sendnotice', 'post'));
         $do->setBanInfo($banInfo)->setBanUids($this->getInput('uids', 'post'))->setDeletes($this->getInput('delete', 'post'));
     } else {
         /* @var $banService PwUserBanService */
         $banService = Wekit::load('user.srv.PwUserBanService');
         $uid = $this->getInput('uid', 'get');
         if ($uid) {
             $do->setBanUids($uid);
         }
         $info = $do->getBanUsers();
         $this->setOutput($banService->getBanType(), 'types');
         $this->setOutput($info, 'userNames');
         $this->setOutput(count($info), 'count');
         $this->setOutput($do->getRight(), 'right');
         $this->setOutput('doban', 'doaction');
         $this->setOutput('用户禁止', 'title');
     }
     return $do;
 }
 /** 
  * ban manage
  *  
  * @return PwThreadManageDoBan
  */
 protected function _getBanManage($manage)
 {
     Wind::import('SRV:forum.srv.manage.PwThreadManageDoBan');
     $do = new PwThreadManageDoBan($manage, new PwUserBo($this->uid));
     $banInfo = new stdClass();
     $banInfo->types = array(1, 2, 4);
     $banInfo->reason = '任性';
     $banInfo->ban_range = 0;
     $banInfo->sendNotice = 1;
     $banInfo->end_time = $this->getInput('end_time');
     $do->setBanInfo($banInfo)->setBanUids($this->getInput('uids'));
     return $do;
 }