Piwik\ArchiveProcessor\Rules::shouldProcessReportsAllPlugins PHP Method

shouldProcessReportsAllPlugins() public static method

public static shouldProcessReportsAllPlugins ( array $idSites, Segment $segment, $periodLabel )
$idSites array
$segment Piwik\Segment
    public static function shouldProcessReportsAllPlugins(array $idSites, Segment $segment, $periodLabel)
    {
        if ($segment->isEmpty() && $periodLabel != 'range') {
            return true;
        }
        return self::isSegmentPreProcessed($idSites, $segment);
    }

Usage Example

コード例 #1
0
ファイル: Loader.php プロジェクト: carriercomm/piwik
 protected function doesRequestedPluginIncludeVisitsSummary()
 {
     $processAllReportsIncludingVisitsSummary = Rules::shouldProcessReportsAllPlugins($this->params->getIdSites(), $this->params->getSegment(), $this->params->getPeriod()->getLabel());
     $doesRequestedPluginIncludeVisitsSummary = $processAllReportsIncludingVisitsSummary || $this->params->getRequestedPlugin() == 'VisitsSummary';
     return $doesRequestedPluginIncludeVisitsSummary;
 }
All Usage Examples Of Piwik\ArchiveProcessor\Rules::shouldProcessReportsAllPlugins