Пример #1
0
 /**
  * 搜索数据
  *
  * @param PwWordSo $so
  * @return array
  */
 public function searchVerify(App_Verify_So $so, $limit = 20, $offset = 0)
 {
     return $this->_getDao()->searchVerify($so->getData(), $limit, $offset);
 }
Пример #2
0
 /**
  * 认证会员管理
  *
  */
 public function usersAction()
 {
     list($page, $perpage, $username, $type) = $this->getInput(array('page', 'perpage', 'username', 'type'));
     $page = $page ? $page : 1;
     $perpage = $perpage ? $perpage : $this->perpage;
     list($start, $limit) = Pw::page2limit($page, $perpage);
     if ($username) {
         Wind::import('SRV:user.vo.PwUserSo');
         $vo = new PwUserSo();
         $vo->setUsername($username);
         $searchDs = Wekit::load('SRV:user.PwUserSearch');
         $userInfos = $searchDs->searchUser($vo, $perpage);
     }
     Wind::import('EXT:verify.service.vo.App_Verify_So');
     $so = new App_Verify_So();
     $userInfos && $so->setUid(array_keys($userInfos));
     if ($type) {
         $bitType = 1 << $type - 1;
         $so->setType($bitType);
     }
     $count = $this->_getDs()->countSearchVerify($so);
     if ($count) {
         $list = $this->_getDs()->searchVerify($so, $limit, $start);
         $list = $this->_buildData($list);
     }
     $verifyTypes = $this->_getService()->getVerifyType();
     $this->setOutput($verifyTypes, 'verifyTypes');
     $this->setOutput($page, 'page');
     $this->setOutput($perpage, 'perpage');
     $this->setOutput($count, 'count');
     $this->setOutput($list, 'list');
     $this->setOutput(array('username' => $username, 'type' => $type), 'args');
 }