diff options
| author | 2018-05-19 13:16:51 +0200 | |
|---|---|---|
| committer | 2018-05-19 13:16:51 +0200 | |
| commit | a8ffde626313b01b80bd688345d2e005b3371b36 (patch) | |
| tree | de7773e9883eadcf5ec4354b6936a176f1754c5b /app/Models | |
| parent | 0ccda74571fd314864ce0223ed1efaae26a11ca8 (diff) | |
add visibility "public" (#1849)
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Feed.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 04101c10d..5ed9b1834 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -395,11 +395,11 @@ class FreshRSS_Feed extends Minz_Model { $this->entries = $entries; } - function cacheModifiedTime() { + public function cacheModifiedTime() { return @filemtime(CACHE_PATH . '/' . md5($this->url) . '.spc'); } - function lock() { + public function lock() { $this->lockPath = TMP_PATH . '/' . $this->hash() . '.freshrss.lock'; if (file_exists($this->lockPath) && ((time() - @filemtime($this->lockPath)) > 3600)) { @unlink($this->lockPath); @@ -412,13 +412,13 @@ class FreshRSS_Feed extends Minz_Model { return true; } - function unlock() { + public function unlock() { @unlink($this->lockPath); } //<PubSubHubbub> - function pubSubHubbubEnabled() { + public function pubSubHubbubEnabled() { $url = $this->selfUrl ? $this->selfUrl : $this->url; $hubFilename = PSHB_PATH . '/feeds/' . base64url_encode($url) . '/!hub.json'; if ($hubFile = @file_get_contents($hubFilename)) { @@ -431,7 +431,7 @@ class FreshRSS_Feed extends Minz_Model { return false; } - function pubSubHubbubError($error = true) { + public function pubSubHubbubError($error = true) { $url = $this->selfUrl ? $this->selfUrl : $this->url; $hubFilename = PSHB_PATH . '/feeds/' . base64url_encode($url) . '/!hub.json'; $hubFile = @file_get_contents($hubFilename); @@ -444,7 +444,7 @@ class FreshRSS_Feed extends Minz_Model { return false; } - function pubSubHubbubPrepare() { + public function pubSubHubbubPrepare() { $key = ''; if (FreshRSS_Context::$system_conf->base_url && $this->hubUrl && $this->selfUrl && @is_dir(PSHB_PATH)) { $path = PSHB_PATH . '/feeds/' . base64url_encode($this->selfUrl); @@ -491,7 +491,7 @@ class FreshRSS_Feed extends Minz_Model { } //Parameter true to subscribe, false to unsubscribe. - function pubSubHubbubSubscribe($state) { + public function pubSubHubbubSubscribe($state) { $url = $this->selfUrl ? $this->selfUrl : $this->url; if (FreshRSS_Context::$system_conf->base_url && $url) { $hubFilename = PSHB_PATH . '/feeds/' . base64url_encode($url) . '/!hub.json'; |
