summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-31 17:42:44 +0100
committeremkael <emkael@tlen.pl>2019-01-31 19:41:51 +0100
commit4ec34ae1ea35a21d569115cd0e98450d084e5ac4 (patch)
tree79a6386cb5e69e622ba7b106b4d1842389a2be78 /providers
parent071ec7fc3a9391d98a0fdfda741d5cf064f4ed48 (diff)
Removing obsolete classes
Diffstat (limited to 'providers')
-rw-r--r--providers/Beer.php42
1 files changed, 0 insertions, 42 deletions
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 @@
-<?php
-
-namespace Providers;
-
-require_once('Facebook.php');
-
-class Beer extends \Providers\Facebook {
-
- protected $_feedGroup;
-
- public function __construct($feed, $options=[]) {
- parent::__construct($feed, $options);
- $this->_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);
- }
-
-}
-
-?>