hasReportBeenPurged() public static method

In order for this function to return true, the following must also be true: - The data table for this report must either be empty or not have been fetched. - The period of this report is not a multiple period. - The date of this report must be older than the delete_reports_older_than config option.
public static hasReportBeenPurged ( Piwik\DataTable\DataTableInterface $dataTable ) : boolean
$dataTable Piwik\DataTable\DataTableInterface
return boolean
Beispiel #1
0
 /**
  * Returns true if it is likely that the data for this report has been purged and if the
  * user should be told about that.
  *
  * In order for this function to return true, the following must also be true:
  * - The data table for this report must either be empty or not have been fetched.
  * - The period of this report is not a multiple period.
  * - The date of this report must be older than the delete_reports_older_than config option.
  * @return bool
  */
 private function hasReportBeenPurged()
 {
     if (!$this->isPluginActivated('PrivacyManager')) {
         return false;
     }
     return PrivacyManager::hasReportBeenPurged($this->dataTable);
 }
Beispiel #2
0
 /**
  * Returns true if it is likely that the data for this report has been purged and if the
  * user should be told about that.
  *
  * In order for this function to return true, the following must also be true:
  * - The data table for this report must either be empty or not have been fetched.
  * - The period of this report is not a multiple period.
  * - The date of this report must be older than the delete_reports_older_than config option.
  * @return bool
  */
 private function hasReportBeenPurged()
 {
     if (!\Piwik\Plugin\Manager::getInstance()->isPluginActivated('PrivacyManager')) {
         return false;
     }
     return PrivacyManager::hasReportBeenPurged($this->dataTable);
 }