From 4ec34ae1ea35a21d569115cd0e98450d084e5ac4 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 31 Jan 2019 17:42:44 +0100 Subject: Removing obsolete classes --- providers/Beer.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 providers/Beer.php (limited to 'providers') diff --git a/providers/Beer.php b/providers/Beer.php deleted file mode 100644 index 0de1a25..0000000 --- a/providers/Beer.php +++ /dev/null @@ -1,42 +0,0 @@ -_feedGroup = $feed; - $this->_groupConfig = json_decode(file_get_contents('../config/beer.json'), TRUE); - } - - protected function _getCachePath() { - return '../cache/beer.%s'; - } - - protected function _fetchItems() { - $data = []; - foreach ($this->_groupConfig[$this->_feedGroup] as $feed) { - $this->_feed = $feed; - $data = array_merge($data, parent::_fetchItems()); - } - $this->_feed = $this->_feedGroup; - return $data; - } - - protected function _sortContent($content) { - usort($content, function($c1, $c2) { return $c2->Time - $c1->Time; }); - return $content; - } - - public function title() { - return sprintf("Beer Facebook page posts - %s", $this->_feed); - } - -} - -?> -- cgit v1.2.3