original_string: public static function build($idSites, $period, $strDate, $segment = false, $_restrictSitesToLogin = false)
      {
          return StaticContainer::get(ArchiveQueryFactory::class)->build($idSites, $period, $strDate, $segment,
              $_restrictSitesToLogin);
      }
code: public static function build($idSites, $period, $strDate, $segment = false, $_restrictSitesToLogin = false)
      {
          return StaticContainer::get(ArchiveQueryFactory::class)->build($idSites, $period, $strDate, $segment,
              $_restrictSitesToLogin);
      }
code_tokens: public static function build ( $ idSites , $ period , $ strDate , $ segment = false , $ _restrictSitesToLogin = false ) { return StaticContainer :: get ( ArchiveQueryFactory :: class ) -> build ( $ idSites , $ period , $ strDate , $ segment , $ _restrictSitesToLogin ) ; }
docstring: Returns a new Archive instance that will query archive data for the given set of
  sites and periods, using an optional Segment.
  
  This method uses data that is found in query parameters, so the parameters to this
  function can be string values.
  
  If you want to create an Archive instance with an array of Period instances, use
  {@link Archive::factory()}.
  
  @param string|int|array $idSites A single ID (eg, `'1'`), multiple IDs (eg, `'1,2,3'` or `array(1, 2, 3)`),
  or `'all'`.
  @param string $period 'day', `'week'`, `'month'`, `'year'` or `'range'`
  @param Date|string $strDate 'YYYY-MM-DD', magic keywords (ie, 'today'; {@link Date::factory()}
  or date range (ie, 'YYYY-MM-DD,YYYY-MM-DD').
  @param bool|false|string $segment Segment definition or false if no segment should be used. {@link Piwik\Segment}
  @param bool|false|string $_restrictSitesToLogin Used only when running as a scheduled task.
  @return ArchiveQuery
docstring_tokens: Returns a new Archive instance that will query archive data for the given set of sites and periods using an optional Segment .