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
コード例 #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();
 }
コード例 #2
0
ファイル: Archive.php プロジェクト: carriercomm/piwik
 /**
  * Returns the done string flag for a plugin using this instance's segment & periods.
  * @param string $plugin
  * @return string
  */
 private function getDoneStringForPlugin($plugin)
 {
     return Rules::getDoneStringFlagFor($this->params->getIdSites(), $this->params->getSegment(), $this->getPeriodLabel(), $plugin, $this->params->isSkipAggregationOfSubTables());
 }
コード例 #3
0
ファイル: Archive.php プロジェクト: sebastianpiskorski/piwik
 /**
  * Returns the done string flag for a plugin using this instance's segment & periods.
  * @param string $plugin
  * @return string
  */
 private function getDoneStringForPlugin($plugin, $idSites)
 {
     return Rules::getDoneStringFlagFor($idSites, $this->params->getSegment(), $this->getPeriodLabel(), $plugin);
 }