piwik/core/Archive.php
/**
     * Gets the IDs of the archives we're querying for and stores them in $this->archives.
     * This function will not launch the archiving process (and is thus much, much faster
     * than cacheArchiveIdsAfterLaunching).
     *
     * @param array $plugins List of plugin names from which data is being requested.
     */
Gets the IDs of the archives we're querying for and stores them in $this->archives.
This function will not launch the archiving process (and is thus much, much faster
than cacheArchiveIdsAfterLaunching).

@param array $plugins List of plugin names from which data is being requested.
Gets the IDs of the archives we ' re querying for and stores them in $this - > archives . This function will not launch the archiving process ( and is thus much much faster than cacheArchiveIdsAfterLaunching ) . @param array $plugins List of plugin names from which data is being requested .
private function cacheArchiveIdsWithoutLaunching($plugins)
    {
        $idarchivesByReport = ArchiveSelector::getArchiveIds(
            $this->params->getIdSites(), $this->params->getPeriods(), $this->params->getSegment(), $plugins);
        foreach ($plugins as $plugin) {
            $doneFlag = $this->getDoneStringForPlugin($plugin);
            $this->initializeArchiveIdCache($doneFlag);
        }
        foreach ($idarchivesByReport as $doneFlag => $idarchivesByDate) {
            foreach ($idarchivesByDate as $dateRange => $idarchives) {
                foreach ($idarchives as $idarchive) {
                    $this->idarchives[$doneFlag][$dateRange][] = $idarchive;
                }
            }
        }
    }
private function cacheArchiveIdsWithoutLaunching ( $ plugins ) { $ idarchivesByReport = ArchiveSelector :: getArchiveIds ( $ this -> params -> getIdSites ( ) , $ this -> params -> getPeriods ( ) , $ this -> params -> getSegment ( ) , $ plugins ) ; foreach ( $ plugins as $ plugin ) { $ doneFlag = $ this -> getDoneStringForPlugin ( $ plugin ) ; $ this -> initializeArchiveIdCache ( $ doneFlag ) ; } foreach ( $ idarchivesByReport as $ doneFlag => $ idarchivesByDate ) { foreach ( $ idarchivesByDate as $ dateRange => $ idarchives ) { foreach ( $ idarchives as $ idarchive ) { $ this -> idarchives [ $ doneFlag ] [ $ dateRange ] [ ] = $ idarchive ; } } } }
Gets the IDs of the archives we're querying for and stores them in $this->archives.
Gets the IDs of the archives we ' re querying for and stores them in $this - > archives .
// initialize archive ID cache for each report