diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-17 04:44:25 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-18 08:30:28 +0300 |
commit | acd924de32bb40be3305027b812f83ba7310bf6f (patch) | |
tree | ddf6a1bfcd4a7a8b81d06fc37741e01fc2ec1324 /plugins | |
parent | 42807de32ab64bef2c18eb1f6a6d0a0358f8c57f (diff) |
Fixes #7223, add new INI option [General] process_new_segments_from that controls the start date of archiving for segments that have not been archived before. If a creation date cannot be found, now is used.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SegmentEditor/Model.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/SegmentEditor/Model.php b/plugins/SegmentEditor/Model.php index 8bfcc957ae..2192e3ca58 100644 --- a/plugins/SegmentEditor/Model.php +++ b/plugins/SegmentEditor/Model.php @@ -26,6 +26,21 @@ class Model } /** + * Returns all stored segments that haven't been deleted. Ignores the site the segments are enabled + * for and whether to auto archive or not. + * + * @return array + */ + public function getAllSegmentsAndIgnoreVisibility() + { + $sql = "SELECT * FROM " . $this->table . " WHERE deleted = 0"; + + $segments = $this->getDb()->fetchAll($sql); + + return $segments; + } + + /** * Returns all stored segments. * * @param bool|int $idSite Whether to return stored segments for a specific idSite, or segments that are available |