forked from blallo/rss-bridge
bridges: Remove obsolete getName() and getURI()
This commit is contained in:
parent
a1257126bc
commit
0ddf664d89
20 changed files with 7 additions and 138 deletions
|
@ -9,7 +9,7 @@ class CNETBridge extends BridgeAbstract {
|
|||
$this->name = 'CNET News';
|
||||
$this->uri = 'http://www.cnet.com/';
|
||||
$this->description = 'Returns the newest articles. <br /> You may specify a topic found in some section URLs, else all topics are selected.';
|
||||
$this->update = '2016-03-16';
|
||||
$this->update = '2016-08-06';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
@ -96,12 +96,7 @@ class CNETBridge extends BridgeAbstract {
|
|||
return 'CNET News Bridge'.(empty($this->topicName) ? '' : ' - '.$this->topicName);
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return 'http://www.cnet.com/';
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 1800; // 30 minutes
|
||||
// return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
|
|||
$this->name = "Cpasbien Bridge";
|
||||
$this->uri = "http://www.cpasbien.io";
|
||||
$this->description = "Returns latest torrents from a request query";
|
||||
$this->update = "2016-01-26";
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
@ -83,10 +83,6 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
|
|||
return (!empty($this->request) ? $this->request .' - ' : '') . $this->name;
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 60*60*24; // 24 hours
|
||||
}
|
||||
|
|
|
@ -38,14 +38,6 @@ class DilbertBridge extends BridgeAbstract {
|
|||
}
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 21600; // 6 hours
|
||||
}
|
||||
|
|
|
@ -37,14 +37,6 @@ class EstCeQuonMetEnProdBridge extends BridgeAbstract {
|
|||
$this->items[] = $item;
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 21600; // 6 hours
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ class FacebookBridge extends BridgeAbstract{
|
|||
$this->name = "Facebook";
|
||||
$this->uri = "http://www.facebook.com/";
|
||||
$this->description = "Input a page title or a profile log. For a profile log, please insert the parameter as follow : myExamplePage/132621766841117";
|
||||
$this->update = "31/03/2016";
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
@ -226,10 +226,6 @@ class FacebookBridge extends BridgeAbstract{
|
|||
return (isset($this->name) ? $this->name.' - ' : '').'Facebook Bridge';
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return 'http://facebook.com';
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 300; // 5 minutes
|
||||
}
|
||||
|
|
|
@ -218,12 +218,4 @@ class FuturaSciencesBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,14 +48,4 @@ class LichessBridge extends BridgeAbstract
|
|||
|
||||
return $content;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI()
|
||||
{
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,12 +69,4 @@ class NakedSecurityBridge extends BridgeAbstract {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
|
@ -95,12 +95,4 @@ class NextgovBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
|
@ -9,7 +9,7 @@ class PinterestBridge extends BridgeAbstract{
|
|||
|
||||
$this->maintainer = "pauder";
|
||||
$this->name = "Pinterest Bridge";
|
||||
$this->uri = "http://www.pinterest.com/";
|
||||
$this->uri = "http://www.pinterest.com";
|
||||
$this->description = "Returns the newest images on a board";
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
|
@ -110,8 +110,4 @@ class PinterestBridge extends BridgeAbstract{
|
|||
return $this->username .' - '. $this->board.' - Pinterest';
|
||||
}
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return 'http://www.pinterest.com';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,10 +131,6 @@ class SensCritiqueBridge extends BridgeAbstract {
|
|||
}
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return (trim($this->uri) === "") ? "http://www.senscritique.com" : $this->uri;
|
||||
}
|
||||
|
|
|
@ -109,12 +109,4 @@ class ShanaprojectBridge extends BridgeAbstract {
|
|||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ class SoundCloudBridge extends BridgeAbstract{
|
|||
$this->name = "Soundcloud Bridge";
|
||||
$this->uri = "http://www.soundcloud.com/";
|
||||
$this->description = "Returns 10 newest music from user profile";
|
||||
$this->update = "2015-09-08";
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
@ -53,10 +53,6 @@ class SoundCloudBridge extends BridgeAbstract{
|
|||
return (!empty($this->name) ? $this->name .' - ' : '') . (!empty($this->request) ? $this->request : '');
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return 'https://www.soundcloud.com/';
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 600; // 10 minutes
|
||||
}
|
||||
|
|
|
@ -75,12 +75,4 @@ class TheHackerNewsBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
|
@ -9,7 +9,7 @@ class VkBridge extends BridgeAbstract {
|
|||
$this->name = "VK.com";
|
||||
$this->uri = "http://www.vk.com/";
|
||||
$this->description = "Working with open pages";
|
||||
$this->update = "21/02/2016";
|
||||
$this->update = "2016-08-06";
|
||||
$this->parameters["Url on page group or user"] = '[
|
||||
{
|
||||
"name" : "Url",
|
||||
|
@ -53,10 +53,6 @@ class VkBridge extends BridgeAbstract {
|
|||
return(isset($this->name) ? $this->name . ' - ' : '') . 'VK Bridge';
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return 'http://vk.com';
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 300; // 5 minutes
|
||||
}
|
||||
|
|
|
@ -60,12 +60,4 @@ class WeLiveSecurityBridge extends BridgeAbstract {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this-name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
|
@ -10,7 +10,7 @@ class WhydBridge extends BridgeAbstract{
|
|||
$this->name = "Whyd Bridge";
|
||||
$this->uri = "http://www.whyd.com/";
|
||||
$this->description = "Returns 10 newest music from user profile";
|
||||
$this->update = "2014-07-18";
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
@ -60,10 +60,6 @@ class WhydBridge extends BridgeAbstract{
|
|||
return (!empty($this->name) ? $this->name .' - ' : '') .'Whyd Bridge';
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return 'http://www.whyd.com/';
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 600; // 10 minutes
|
||||
}
|
||||
|
|
|
@ -93,12 +93,4 @@ class WorldOfTanks extends HttpCachingBridgeAbstract{
|
|||
$item->timestamp = $content->find('.b-statistic_time', 0)->getAttribute("data-timestamp");
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -302,12 +302,4 @@ class ZDNetBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,12 +43,4 @@ class ZoneTelechargementBridge extends BridgeAbstract {
|
|||
$limit++;
|
||||
}
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue