Piwik\Segment::willBeArchived PHP Method

willBeArchived() public method

This method does not take any date/period into consideration. Meaning a Piwik instance might be able to archive this segment in general, but not for a certain period if eg the archiving of range dates is disabled.
public willBeArchived ( ) : boolean
return boolean
    public function willBeArchived()
    {
        if ($this->isEmpty()) {
            return true;
        }
        $idSites = $this->idSites;
        if (!is_array($idSites)) {
            $idSites = array($this->idSites);
        }
        return Rules::isRequestAuthorizedToArchive() || Rules::isBrowserArchivingAvailableForSegments() || Rules::isSegmentPreProcessed($idSites, $this);
    }