public function getKnownSegmentsToArchiveForSite(&$segments, $idSite)
    {
        $model = new Model();
        $segmentToAutoArchive = $model->getSegmentsToAutoArchive($idSite);

        foreach ($segmentToAutoArchive as $segmentInfo) {
            $segments[] = $segmentInfo['definition'];
        }

        $segments = array_unique($segments);
    }
public function getKnownSegmentsToArchiveForSite(&$segments, $idSite)
    {
        $model = new Model();
        $segmentToAutoArchive = $model->getSegmentsToAutoArchive($idSite);

        foreach ($segmentToAutoArchive as $segmentInfo) {
            $segments[] = $segmentInfo['definition'];
        }

        $segments = array_unique($segments);
    }
public function getKnownSegmentsToArchiveForSite ( & $ segments , $ idSite ) { $ model = new Model ( ) ; $ segmentToAutoArchive = $ model -> getSegmentsToAutoArchive ( $ idSite ) ; foreach ( $ segmentToAutoArchive as $ segmentInfo ) { $ segments [ ] = $ segmentInfo [ 'definition' ] ; } $ segments = array_unique ( $ segments ) ; }
Adds the pre-processed segments to the list of Segments.
Used by CronArchive, ArchiveProcessor\Rules, etc.

@param $segments
@param $idSite
Adds the pre - processed segments to the list of Segments . Used by CronArchive ArchiveProcessor \ Rules etc .