public function getNumberOfVisitsByVisitCount($idSite, $period, $date, $segment = false)
    {
        $dataTable = $this->getDataTable(
            Archiver::VISITS_COUNT_RECORD_NAME, $idSite, $period, $date, $segment, Metrics::INDEX_NB_VISITS);

        $dataTable->queueFilter('AddSegmentByRangeLabel', array('visitCount'));
        $dataTable->queueFilter('BeautifyRangeLabels', array(
                                                            Piwik::translate('General_OneVisit'), Piwik::translate('General_NVisits')));

        return $dataTable;
    }
public function getNumberOfVisitsByVisitCount($idSite, $period, $date, $segment = false)
    {
        $dataTable = $this->getDataTable(
            Archiver::VISITS_COUNT_RECORD_NAME, $idSite, $period, $date, $segment, Metrics::INDEX_NB_VISITS);

        $dataTable->queueFilter('AddSegmentByRangeLabel', array('visitCount'));
        $dataTable->queueFilter('BeautifyRangeLabels', array(
                                                            Piwik::translate('General_OneVisit'), Piwik::translate('General_NVisits')));

        return $dataTable;
    }
public function getNumberOfVisitsByVisitCount ( $ idSite , $ period , $ date , $ segment = false ) { $ dataTable = $ this -> getDataTable ( Archiver :: VISITS_COUNT_RECORD_NAME , $ idSite , $ period , $ date , $ segment , Metrics :: INDEX_NB_VISITS ) ; $ dataTable -> queueFilter ( 'AddSegmentByRangeLabel' , array ( 'visitCount' ) ) ; $ dataTable -> queueFilter ( 'BeautifyRangeLabels' , array ( Piwik :: translate ( 'General_OneVisit' ) , Piwik :: translate ( 'General_NVisits' ) ) ) ; return $ dataTable ; }
Returns a DataTable that associates ranges of visit numbers with the count of visits
whose visit number falls within those ranges.

@param int $idSite The site to select data from.
@param string $period The period type.
@param string $date The date type.
@param string|bool $segment The segment.
@return DataTable the archived report data.
Returns a DataTable that associates ranges of visit numbers with the count of visits whose visit number falls within those ranges .