Piwik\ArchiveProcessor\Rules::getDoneStringFlagFor PHP Method

getDoneStringFlagFor() public static method

Returns the name of the archive field used to tell the status of an archive, (ie, whether the archive was created successfully or not).
public static getDoneStringFlagFor ( array $idSites, Segment $segment, string $periodLabel, string $plugin ) : string
$idSites array
$segment Piwik\Segment
$periodLabel string
$plugin string
return string
    public static function getDoneStringFlagFor(array $idSites, $segment, $periodLabel, $plugin)
    {
        if (!self::shouldProcessReportsAllPlugins($idSites, $segment, $periodLabel)) {
            return self::getDoneFlagArchiveContainsOnePlugin($segment, $plugin);
        }
        return self::getDoneFlagArchiveContainsAllPlugins($segment);
    }

Usage Example

Ejemplo n.º 1
0
 public function __construct(ArchiveProcessor\Parameters $params, $isArchiveTemporary)
 {
     $this->idArchive = false;
     $this->idSite = $params->getSite()->getId();
     $this->segment = $params->getSegment();
     $this->period = $params->getPeriod();
     $this->doneFlag = Rules::getDoneStringFlagFor($this->segment, $this->period->getLabel(), $params->getRequestedPlugin());
     $this->isArchiveTemporary = $isArchiveTemporary;
     $this->dateStart = $this->period->getDateStart();
 }
All Usage Examples Of Piwik\ArchiveProcessor\Rules::getDoneStringFlagFor