Отчет "Технологии - Браузеры" за $days дней, кол-во результатов - $maxResult

@param int $days
@param int $maxResult
352789
protected function getTechPlatforms($days = 30, $maxResult = 10)
    {
        list($startDate, $endDate) = $this->calculateDays($days);

        $this->getTechPlatformsForPeriod($startDate, $endDate, $maxResult);
    }
513795
func (s *DescribeImageBuildersInput) SetMaxResults(v int64) *DescribeImageBuildersInput {
	s.MaxResults = &v
	return s
}
190347
func (s *ListRulesPackagesInput) SetMaxResults(v int64) *ListRulesPackagesInput {
	s.MaxResults = &v
	return s
}
1039069
func (s *ListGroupResourcesInput) SetMaxResults(v int64) *ListGroupResourcesInput {
	s.MaxResults = &v
	return s
}
109998
func (s *DescribeReportDefinitionsInput) SetMaxResults(v int64) *DescribeReportDefinitionsInput {
	s.MaxResults = &v
	return s
}
1280317
func (s *ListQualificationRequestsInput) SetMaxResults(v int64) *ListQualificationRequestsInput {
	s.MaxResults = &v
	return s
}
1002233
func (s *ListThingsInThingGroupInput) SetMaxResults(v int64) *ListThingsInThingGroupInput {
	s.MaxResults = &v
	return s
}
574496
func (s *ListAttributesInput) SetMaxResults(v int64) *ListAttributesInput {
	s.MaxResults = &v
	return s
}
775529
public function generatePageVisitHitTopDays($VisitorsID, $days = 365, $parse = false)
    {
        $STARTDATE = date("Y-m-d", mktime(0, 0, 0, date("m")  , date("d")-$days, date("Y")) ); 
        $arrPageStatCount = false;
        $objPageStatCount = \Database::getInstance()
                            ->prepare("SELECT
                                        visitors_page_id,
                                        visitors_page_pid,
                                        visitors_page_lang,
                                        visitors_page_type,
                                        SUM(visitors_page_visit) AS visitors_page_visits,
                                        SUM(visitors_page_hit)   AS visitors_page_hits
                                    FROM
                                        tl_visitors_pages
                                    WHERE
                                        vid = ?
                                    AND
                                        visitors_page_date >= ?
                                    GROUP BY
                                        visitors_page_id,
                                        visitors_page_pid,
                                        visitors_page_lang,
                                        visitors_page_type
                                    ORDER BY
                                        visitors_page_visits DESC,
                                        visitors_page_hits DESC,
                                        visitors_page_id,
                                        visitors_page_pid,
                                        visitors_page_lang
                                    ")
                            ->execute($VisitorsID, $STARTDATE);
    
        while ($objPageStatCount->next())
        {
            switch ($objPageStatCount->visitors_page_type)
            {
            	case self::PAGE_TYPE_NORMAL :
            	    $objPage = \PageModel::findWithDetails($objPageStatCount->visitors_page_id);
            	    $alias   = $objPage->alias;
            	    break;
            	case self::PAGE_TYPE_NEWS :
            	    $alias   = false;
            	    $aliases = $this->getNewsAliases($objPageStatCount->visitors_page_id);
            	    if (false !== $aliases['PageAlias'])
            	    {
            	        $alias = $aliases['PageAlias'] .'/'. $aliases['NewsAlias'];
            	    }
            	    break;
            	case self::PAGE_TYPE_FAQ :
            	    $alias   = false;
            	    $aliases = $this->getFaqAliases($objPageStatCount->visitors_page_id);
            	    if (false !== $aliases['PageAlias'])
            	    {
            	        $alias = $aliases['PageAlias'] .'/'. $aliases['FaqAlias'];
            	    }
            	    break;
        	    case self::PAGE_TYPE_ISOTOPE:
        	        $alias   = false;
        	        $aliases = $this->getIsotopeAliases($objPageStatCount->visitors_page_id, $objPageStatCount->visitors_page_pid);
        	        if (false !== $aliases['PageAlias'])
        	        {
        	            $alias = $aliases['PageAlias'] .'/'. $aliases['ProductAlias'];
        	        }
        	        break;
            	case self::PAGE_TYPE_FORBIDDEN :
            	    $alias   = false;
            	    $objPage  = \PageModel::findWithDetails($objPageStatCount->visitors_page_id);
            	    $alias403 = $this->getForbiddenAlias($objPageStatCount->visitors_page_id,
            	        $objPageStatCount->visitors_page_lang);
            	    $alias = $alias403 .' ['.$objPage->alias.']';
            	    break;
            	default:
            	    $alias = '-/-';
                	break;
            }
    
            if (false !== $alias)
            {
                $arrPageStatCount[] = array
                (
                    'alias'         => $alias,
                    'lang'          => $objPageStatCount->visitors_page_lang,
                    'visits'        => $objPageStatCount->visitors_page_visits,
                    'hits'          => $objPageStatCount->visitors_page_hits
                );
            }
        }
    
        if ($parse === true)
        {
            $this->TemplatePartial = new \BackendTemplate('mod_visitors_be_stat_partial_pagevisithittop');
            $this->TemplatePartial->PageVisitHitTop = $arrPageStatCount;
            return $this->TemplatePartial->parse();
        }
        else
        {
            return $arrPageStatCount;
        }
    }
1374765
func (s *ListTaskDefinitionFamiliesInput) SetMaxResults(v int64) *ListTaskDefinitionFamiliesInput {
	s.MaxResults = &v
	return s
}
1145208
func (s *ListReviewPolicyResultsForHITInput) SetMaxResults(v int64) *ListReviewPolicyResultsForHITInput {
	s.MaxResults = &v
	return s
}
801708
public function findLogsThroughConfigs($configs, $maxResult = -1)
    {
        if ($configs === null || count($configs) == 0) {
            return null;
        }

        $queryBuilder = $this
            ->createQueryBuilder('log')
            ->leftJoin('log.workspace', 'workspace')
            ->orderBy('log.dateLog', 'DESC');

        $queryBuilder = $this->addConfigurationFilterToQueryBuilder($queryBuilder, $configs);

        if ($maxResult > 0) {
            $queryBuilder->setMaxResults($maxResult);
        }

        return $queryBuilder->getQuery();
    }
1094899
func (s *ListDominantLanguageDetectionJobsInput) SetMaxResults(v int64) *ListDominantLanguageDetectionJobsInput {
	s.MaxResults = &v
	return s
}
929724
public function getNewVsReturningSessions($parameters = [], $parseResult = true)
    {
        $this->setParams([
            'metrics'    => 'ga:sessions',
            'dimensions' => 'ga:userType',
        ]);

        return $this->execute($parameters, $parseResult);
    }
882289
func (s *ListFunctionDefinitionsInput) SetMaxResults(v string) *ListFunctionDefinitionsInput {
	s.MaxResults = &v
	return s
}
757508
func (s *ListSkillsStoreSkillsByCategoryInput) SetMaxResults(v int64) *ListSkillsStoreSkillsByCategoryInput {
	s.MaxResults = &v
	return s
}
366956
public function getNumberProspectsPerDay($maxDays = 30)
    {
    	$select = $this->tableGateway->getSql()->select();

    	$select->columns(array(new \Zend\Db\Sql\Expression('COUNT("pros_id") AS nb'), "pros_contact_date"));
    	$select->group("pros_contact_date");
    	$select->limit($maxDays);
    	
    	$resultSet = $this->tableGateway->selectWith($select);
    
    	return $resultSet;
    }