public function initWebsiteIds()
    {
        if (count($this->shouldArchiveSpecifiedSites) > 0) {
            $this->logger->info("- Will process " . count($this->shouldArchiveSpecifiedSites) . " websites (--force-idsites)");

            return $this->shouldArchiveSpecifiedSites;
        }

        $this->findWebsiteIdsInTimezoneWithNewDay($this->allWebsites);
        $this->findInvalidatedSitesToReprocess();

        if ($this->shouldArchiveAllSites) {
            $this->logger->info("- Will process all " . count($this->allWebsites) . " websites");
        }

        return $this->allWebsites;
    }
public function initWebsiteIds()
    {
        if (count($this->shouldArchiveSpecifiedSites) > 0) {
            $this->logger->info("- Will process " . count($this->shouldArchiveSpecifiedSites) . " websites (--force-idsites)");

            return $this->shouldArchiveSpecifiedSites;
        }

        $this->findWebsiteIdsInTimezoneWithNewDay($this->allWebsites);
        $this->findInvalidatedSitesToReprocess();

        if ($this->shouldArchiveAllSites) {
            $this->logger->info("- Will process all " . count($this->allWebsites) . " websites");
        }

        return $this->allWebsites;
    }
public function initWebsiteIds ( ) { if ( count ( $ this -> shouldArchiveSpecifiedSites ) > 0 ) { $ this -> logger -> info ( "- Will process " . count ( $ this -> shouldArchiveSpecifiedSites ) . " websites (--force-idsites)" ) ; return $ this -> shouldArchiveSpecifiedSites ; } $ this -> findWebsiteIdsInTimezoneWithNewDay ( $ this -> allWebsites ) ; $ this -> findInvalidatedSitesToReprocess ( ) ; if ( $ this -> shouldArchiveAllSites ) { $ this -> logger -> info ( "- Will process all " . count ( $ this -> allWebsites ) . " websites" ) ; } return $ this -> allWebsites ; }
Returns the list of sites to loop over and archive.
@return array
Returns the list of sites to loop over and archive .