private function _getUserListCount($type, $uid, $viewUid, $page, $pageSize) { switch ($type) { case 'follow': $count = DzCommonUserList::_getFollowUsersCount($viewUid); break; case 'followed': $count = DzCommonUserList::_getFollowedUsersCount($viewUid); break; case 'recommend': $count = $this->_getRecommendUserList($uid, $page, $pageSize); $count = $count['count']; break; case 'friend': $count = DzCommonUserList::getPostFuidListCount($viewUid); break; case 'all': $count = DzCommonUserList::_getRecommendUsersCount($uid); break; default: break; } return $count; }