From acd924de32bb40be3305027b812f83ba7310bf6f Mon Sep 17 00:00:00 2001 From: diosmosis Date: Mon, 16 Mar 2015 18:44:25 -0700 Subject: 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. --- plugins/SegmentEditor/Model.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'plugins') 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 @@ -25,6 +25,21 @@ class Model $this->table = Common::prefixTable(self::$rawPrefix); } + /** + * 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. * -- cgit v1.2.3