diff options
author | emkael <emkael@tlen.pl> | 2017-01-16 18:06:09 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-16 18:06:09 +0100 |
commit | bcc5a4c29ec9178d7515c8b29d186f31bac4065b (patch) | |
tree | 9124ab2ffff01c1fa083038b8f0c26b95e3c6730 /providers/Provider.php | |
parent | 68f5ac77ee0ca7788c7c48681ad2067de2af427b (diff) |
* cosmetic changes to the feed standard layout
Diffstat (limited to 'providers/Provider.php')
-rw-r--r-- | providers/Provider.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/providers/Provider.php b/providers/Provider.php index 0c3f344..02031ad 100644 --- a/providers/Provider.php +++ b/providers/Provider.php @@ -24,6 +24,8 @@ abstract class Provider { abstract protected function _spamFilter($items); + abstract protected function _sortContent($content); + protected function _getItems() { $cacheFile = sprintf($this->_getCachePath(), $this->_feed); $this->_cacheTime = file_exists($cacheFile) ? filemtime($cacheFile) : 0; @@ -42,13 +44,15 @@ abstract class Provider { if (isset($this->_options['spamfilter'])) { $items = $this->_spamFilter($items); } - return $items; + return $this->_sortContent($items); } public function cacheTime() { return $this->_cacheTime; } + abstract public function title(); + } ?> |