diff --git a/bridges/ABCTabsBridge.php b/bridges/ABCTabsBridge.php
index 355f82d..51a767a 100644
--- a/bridges/ABCTabsBridge.php
+++ b/bridges/ABCTabsBridge.php
@@ -1,14 +1,10 @@
maintainer = "kranack";
- $this->name = "ABC Tabs Bridge";
- $this->uri = "http://www.abc-tabs.com/";
- $this->description = "Returns 22 newest tabs";
-
- }
+ public $maintainer = "kranack";
+ public $name = "ABC Tabs Bridge";
+ public $uri = "http://www.abc-tabs.com/";
+ public $description = "Returns 22 newest tabs";
public function collectData(){
$html = '';
diff --git a/bridges/AcrimedBridge.php b/bridges/AcrimedBridge.php
index 8ddbc85..abf1083 100644
--- a/bridges/AcrimedBridge.php
+++ b/bridges/AcrimedBridge.php
@@ -1,14 +1,11 @@
maintainer = "qwertygc";
- $this->name = "Acrimed Bridge";
- $this->uri = "http://www.acrimed.org/";
- $this->description = "Returns the newest articles.";
-
- }
+ public $maintainer = "qwertygc";
+ public $name = "Acrimed Bridge";
+ public $uri = "http://www.acrimed.org/";
+ public $description = "Returns the newest articles.";
public function collectData(){
diff --git a/bridges/AllocineFRBridge.php b/bridges/AllocineFRBridge.php
index c9c0f0f..4289b0c 100644
--- a/bridges/AllocineFRBridge.php
+++ b/bridges/AllocineFRBridge.php
@@ -1,28 +1,25 @@
maintainer = "superbaillot.net";
- $this->name = "Allo Cine Bridge";
- $this->uri = "http://www.allocine.fr";
- $this->description = "Bridge for allocine.fr";
-
- $this->parameters[] = array(
- 'category'=>array(
+ public $maintainer = "superbaillot.net";
+ public $name = "Allo Cine Bridge";
+ public $uri = "http://www.allocine.fr";
+ public $description = "Bridge for allocine.fr";
+ public $parameters = array( array(
+ 'category'=>array(
'name'=>'category',
'type'=>'list',
'required'=>true,
'exampleValue'=>'Faux Raccord',
'title'=>'Select your category',
'values'=>array(
- 'Faux Raccord'=>'faux-raccord',
- 'Top 5'=>'top-5',
- 'Tueurs En Serie'=>'tuers-en-serie'
+ 'Faux Raccord'=>'faux-raccord',
+ 'Top 5'=>'top-5',
+ 'Tueurs En Serie'=>'tuers-en-serie'
)
- )
- );
- }
+ )
+ ));
public function collectData(){
$params=$this->parameters[$this->queriedContext];
diff --git a/bridges/AnimeUltimeBridge.php b/bridges/AnimeUltimeBridge.php
index 3f0370c..51e74e1 100644
--- a/bridges/AnimeUltimeBridge.php
+++ b/bridges/AnimeUltimeBridge.php
@@ -1,16 +1,11 @@
maintainer = 'ORelio';
- $this->name = 'Anime-Ultime';
- $this->uri = 'http://www.anime-ultime.net/';
- $this->description = 'Returns the 10 newest releases posted on Anime-Ultime';
-
- $this->parameters[] = array(
+ public $maintainer = 'ORelio';
+ public $name = 'Anime-Ultime';
+ public $uri = 'http://www.anime-ultime.net/';
+ public $description = 'Returns the 10 newest releases posted on Anime-Ultime';
+ public $parameters = array( array(
'type'=>array(
'name'=>'Type',
'type'=>'list',
@@ -21,8 +16,9 @@ class AnimeUltimeBridge extends BridgeAbstract {
'Tokusatsu'=>'T'
)
)
- );
- }
+ ));
+
+ private $filter = 'Releases';
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/ArstechnicaBridge.php b/bridges/ArstechnicaBridge.php
index 6c5521f..d2a62b2 100644
--- a/bridges/ArstechnicaBridge.php
+++ b/bridges/ArstechnicaBridge.php
@@ -3,14 +3,10 @@
#error_reporting(E_ALL);
class ArstechnicaBridge extends BridgeAbstract {
- public function loadMetadatas() {
-
- $this->maintainer = "prysme";
- $this->name = "ArstechnicaBridge";
- $this->uri = "http://arstechnica.com";
- $this->description = "The PC enthusiast's resource. Power users and the tools they love, without computing religion";
-
- }
+ public $maintainer = "prysme";
+ public $name = "ArstechnicaBridge";
+ public $uri = "http://arstechnica.com";
+ public $description = "The PC enthusiast's resource. Power users and the tools they love, without computing religion";
function StripWithDelimiters($string, $start, $end) {
while (strpos($string, $start) !== false) {
diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php
index bc8725b..2f24b81 100644
--- a/bridges/Arte7Bridge.php
+++ b/bridges/Arte7Bridge.php
@@ -1,50 +1,48 @@
-maintainer = "mitsukarenai";
- $this->name = "Arte +7";
- $this->uri = "http://www.arte.tv/";
- $this->description = "Returns newest videos from ARTE +7";
- $this->parameters["Catégorie (Français)"] = array(
- 'catfr'=>array(
- 'type'=>'list',
- 'name'=>'Catégorie',
- 'values'=>array(
- 'Toutes les vidéos (français)'=>'toutes-les-videos',
- 'Actu & société'=>'actu-société',
- 'Séries & fiction'=>'séries-fiction',
- 'Cinéma'=>'cinéma',
- 'Arts & spectacles classiques'=>'arts-spectacles-classiques',
- 'Culture pop'=>'culture-pop',
- 'Découverte'=>'découverte',
- 'Histoire'=>'histoire',
- 'Junior'=>'junior'
+ public $maintainer = "mitsukarenai";
+ public $name = "Arte +7";
+ public $uri = "http://www.arte.tv/";
+ public $description = "Returns newest videos from ARTE +7";
+ public $parameters = array(
+ 'Catégorie (Français)' => array(
+ 'catfr'=>array(
+ 'type'=>'list',
+ 'name'=>'Catégorie',
+ 'values'=>array(
+ 'Toutes les vidéos (français)'=>'toutes-les-videos',
+ 'Actu & société'=>'actu-société',
+ 'Séries & fiction'=>'séries-fiction',
+ 'Cinéma'=>'cinéma',
+ 'Arts & spectacles classiques'=>'arts-spectacles-classiques',
+ 'Culture pop'=>'culture-pop',
+ 'Découverte'=>'découverte',
+ 'Histoire'=>'histoire',
+ 'Junior'=>'junior'
+ )
+ )
+ ),
+ 'Catégorie (Allemand)' => array(
+ 'catde'=>array(
+ 'type'=>'list',
+ 'name'=>'Catégorie',
+ 'values'=>array(
+ 'Alle Videos (deutsch)'=>'alle-videos',
+ 'Aktuelles & Gesellschaft'=>'aktuelles-gesellschaft',
+ 'Fernsehfilme & Serien'=>'fernsehfilme-serien',
+ 'Kino'=>'kino',
+ 'Kunst & Kultur'=>'kunst-kultur',
+ 'Popkultur & Alternativ'=>'popkultur-alternativ',
+ 'Entdeckung'=>'entdeckung',
+ 'Geschichte'=>'geschichte',
+ 'Junior'=>'junior'
+ )
+ )
)
- )
);
- $this->parameters["Catégorie (Allemand)"] = array(
- 'catde'=>array(
- 'type'=>'list',
- 'name'=>'Catégorie',
- 'values'=>array(
- 'Alle Videos (deutsch)'=>'alle-videos',
- 'Aktuelles & Gesellschaft'=>'aktuelles-gesellschaft',
- 'Fernsehfilme & Serien'=>'fernsehfilme-serien',
- 'Kino'=>'kino',
- 'Kunst & Kultur'=>'kunst-kultur',
- 'Popkultur & Alternativ'=>'popkultur-alternativ',
- 'Entdeckung'=>'entdeckung',
- 'Geschichte'=>'geschichte',
- 'Junior'=>'junior'
- )
- )
- );
- }
-
protected function extractVideoset($category='toutes-les-videos', $lang='fr'){
$url = 'http://www.arte.tv/guide/'.$lang.'/plus7/'.$category;
$input = $this->getContents($url) or die('Could not request ARTE.');
diff --git a/bridges/AskfmBridge.php b/bridges/AskfmBridge.php
index 0ff3655..0a88d51 100644
--- a/bridges/AskfmBridge.php
+++ b/bridges/AskfmBridge.php
@@ -1,20 +1,18 @@
maintainer = "az5he6ch";
- $this->name = "Ask.fm Answers";
- $this->uri = "http://ask.fm/";
- $this->description = "Returns answers from an Ask.fm user";
-
- $this->parameters["Ask.fm username"] = array(
- 'u'=>array(
- 'name'=>'Username',
- 'required'=>true
- )
- );
- }
+ public $maintainer = "az5he6ch";
+ public $name = "Ask.fm Answers";
+ public $uri = "http://ask.fm/";
+ public $description = "Returns answers from an Ask.fm user";
+ public $parameters = array(
+ 'Ask.fm username'=>array(
+ 'u'=>array(
+ 'name'=>'Username',
+ 'required'=>true
+ )
+ )
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php
index fa64c07..a5666e8 100644
--- a/bridges/BandcampBridge.php
+++ b/bridges/BandcampBridge.php
@@ -1,20 +1,16 @@
maintainer = "sebsauvage";
- $this->name = "Bandcamp Tag";
- $this->uri = "http://bandcamp.com/";
- $this->description = "New bandcamp release by tag";
-
- $this->parameters[] = array(
- 'tag'=>array(
+ public $maintainer = "sebsauvage";
+ public $name = "Bandcamp Tag";
+ public $uri = "http://bandcamp.com/";
+ public $description = "New bandcamp release by tag";
+ public $parameters = array( array(
+ 'tag'=>array(
'name'=>'tag',
'type'=>'text'
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/BastaBridge.php b/bridges/BastaBridge.php
index ec46b5f..e91f9fa 100644
--- a/bridges/BastaBridge.php
+++ b/bridges/BastaBridge.php
@@ -1,11 +1,9 @@
maintainer = "qwertygc";
- $this->name = "Bastamag Bridge";
- $this->uri = "http://www.bastamag.net/";
- $this->description = "Returns the newest articles.";
- }
+ public $maintainer = "qwertygc";
+ public $name = "Bastamag Bridge";
+ public $uri = "http://www.bastamag.net/";
+ public $description = "Returns the newest articles.";
public function collectData(){
// Replaces all relative image URLs by absolute URLs. Relative URLs always start with 'local/'!
diff --git a/bridges/BlaguesDeMerdeBridge.php b/bridges/BlaguesDeMerdeBridge.php
index 0f32467..5d1b277 100644
--- a/bridges/BlaguesDeMerdeBridge.php
+++ b/bridges/BlaguesDeMerdeBridge.php
@@ -1,14 +1,11 @@
maintainer = "superbaillot.net";
- $this->name = "Blagues De Merde";
- $this->uri = "http://www.blaguesdemerde.fr/";
- $this->description = "Blagues De Merde";
-
- }
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://www.blaguesdemerde.fr/') or $this->returnServerError('Could not request BDM.');
diff --git a/bridges/BooruprojectBridge.php b/bridges/BooruprojectBridge.php
index a4e3aeb..3684541 100644
--- a/bridges/BooruprojectBridge.php
+++ b/bridges/BooruprojectBridge.php
@@ -1,23 +1,20 @@
maintainer = "mitsukarenai";
- $this->name = "Booruproject";
- $this->uri = "http://booru.org/";
- $this->description = "Returns images from given page and booruproject instance (****.booru.org)";
+ public $maintainer = "mitsukarenai";
+ public $name = "Booruproject";
+ public $uri = "http://booru.org/";
+ public $description = "Returns images from given page and booruproject instance (****.booru.org)";
- $this->parameters[] = array(
+ public $parameters = array( array(
'i'=>array(
'name'=>'instance (required)',
'required'=>true
),
'p'=>array('name'=>'page'),
't'=>array('name'=>'tags')
- );
- }
-
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/CADBridge.php b/bridges/CADBridge.php
index 4c695f0..8073f86 100644
--- a/bridges/CADBridge.php
+++ b/bridges/CADBridge.php
@@ -1,11 +1,9 @@
maintainer = "nyutag";
- $this->name = "CAD Bridge";
- $this->uri = "http://www.cad-comic.com/";
- $this->description = "Returns the newest articles.";
- }
+ public $maintainer = "nyutag";
+ public $name = "CAD Bridge";
+ public $uri = "http://www.cad-comic.com/";
+ public $description = "Returns the newest articles.";
private function CADExtractContent($url) {
$html3 = $this->getSimpleHTMLDOM($url);
diff --git a/bridges/CNETBridge.php b/bridges/CNETBridge.php
index b92cecc..445c119 100644
--- a/bridges/CNETBridge.php
+++ b/bridges/CNETBridge.php
@@ -1,17 +1,14 @@
You may specify a topic found in some section URLs, else all topics are selected.';
- $this->maintainer = 'ORelio';
- $this->name = 'CNET News';
- $this->uri = 'http://www.cnet.com/';
- $this->description = 'Returns the newest articles.
You may specify a topic found in some section URLs, else all topics are selected.';
-
- $this->parameters[] = array(
- 'topic'=>array('name'=>'Topic name')
- );
- }
+ public $parameters = array( array(
+ 'topic'=>array('name'=>'Topic name')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/CastorusBridge.php b/bridges/CastorusBridge.php
index 73e8a1a..c328293 100644
--- a/bridges/CastorusBridge.php
+++ b/bridges/CastorusBridge.php
@@ -1,31 +1,31 @@
maintainer = "logmanoriginal";
- $this->name = "Castorus Bridge";
- $this->uri = 'http://www.castorus.com';
- $this->description = "Returns the latest changes";
+ public $maintainer = "logmanoriginal";
+ public $name = "Castorus Bridge";
+ public $uri = 'http://www.castorus.com';
+ public $description = "Returns the latest changes";
- $this->parameters["Get latest changes"] = array();
- $this->parameters["Get latest changes via ZIP code"] = array(
- 'zip'=>array(
- 'name'=>'ZIP code',
- 'type'=>'text',
- 'required'=>true,
- 'exampleValue'=>'74910, 74',
- 'title'=>'Insert ZIP code (complete or partial)'
- )
- );
- $this->parameters["Get latest changes via city name"] = array(
- 'city'=>array(
- 'name'=>'City name',
- 'type'=>'text',
- 'required'=>true,
- 'exampleValue'=>'Seyssel, Seys',
- 'title'=>'Insert city name (complete or partial)'
- )
- );
- }
+ public $parameters = array(
+ 'Get latest changes' => array(),
+ 'Get latest changes via ZIP code' => array(
+ 'zip'=>array(
+ 'name'=>'ZIP code',
+ 'type'=>'text',
+ 'required'=>true,
+ 'exampleValue'=>'74910, 74',
+ 'title'=>'Insert ZIP code (complete or partial)'
+ )
+ ),
+ 'Get latest changes via city name' => array(
+ 'city'=>array(
+ 'name'=>'City name',
+ 'type'=>'text',
+ 'required'=>true,
+ 'exampleValue'=>'Seyssel, Seys',
+ 'title'=>'Insert city name (complete or partial)'
+ )
+ )
+ );
// Extracts the tile from an actitiy
private function ExtractActivityTitle($activity){
diff --git a/bridges/CollegeDeFranceBridge.php b/bridges/CollegeDeFranceBridge.php
index 241e6f3..fc69533 100644
--- a/bridges/CollegeDeFranceBridge.php
+++ b/bridges/CollegeDeFranceBridge.php
@@ -1,12 +1,10 @@
maintainer = "pit-fgfjiudghdf";
- $this->name = "CollegeDeFrance";
- $this->uri = "http://www.college-de-france.fr/";
- $this->description = "Returns the latest audio and video from CollegeDeFrance";
- }
+ public $maintainer = "pit-fgfjiudghdf";
+ public $name = "CollegeDeFrance";
+ public $uri = "http://www.college-de-france.fr/";
+ public $description = "Returns the latest audio and video from CollegeDeFrance";
public function collectData(){
$months = array(
diff --git a/bridges/CommonDreamsBridge.php b/bridges/CommonDreamsBridge.php
index 21dfcbe..23627e3 100644
--- a/bridges/CommonDreamsBridge.php
+++ b/bridges/CommonDreamsBridge.php
@@ -1,12 +1,10 @@
maintainer = "nyutag";
- $this->name = "CommonDreams Bridge";
- $this->uri = "http://www.commondreams.org/";
- $this->description = "Returns the newest articles.";
- }
+ public $maintainer = "nyutag";
+ public $name = "CommonDreams Bridge";
+ public $uri = "http://www.commondreams.org/";
+ public $description = "Returns the newest articles.";
private function CommonDreamsExtractContent($url) {
$html3 = $this->getSimpleHTMLDOM($url);
diff --git a/bridges/CopieDoubleBridge.php b/bridges/CopieDoubleBridge.php
index a4420e6..7c06d95 100644
--- a/bridges/CopieDoubleBridge.php
+++ b/bridges/CopieDoubleBridge.php
@@ -1,15 +1,10 @@
maintainer = "superbaillot.net";
- $this->name = "CopieDouble";
- $this->uri = "http://www.copie-double.com/";
- $this->description = "CopieDouble";
-
- }
-
+ public $maintainer = "superbaillot.net";
+ public $name = "CopieDouble";
+ public $uri = "http://www.copie-double.com/";
+ public $description = "CopieDouble";
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://www.copie-double.com/') or $this->returnServerError('Could not request CopieDouble.');
diff --git a/bridges/CourrierInternationalBridge.php b/bridges/CourrierInternationalBridge.php
index 62c8fee..634b88c 100644
--- a/bridges/CourrierInternationalBridge.php
+++ b/bridges/CourrierInternationalBridge.php
@@ -1,14 +1,10 @@
maintainer = "teromene";
- $this->name = "Courrier International Bridge";
- $this->uri = "http://CourrierInternational.fr/";
- $this->description = "Courrier International bridge";
-
- }
+ public $maintainer = "teromene";
+ public $name = "Courrier International Bridge";
+ public $uri = "http://CourrierInternational.fr/";
+ public $description = "Courrier International bridge";
public function collectData(){
diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php
index d41d442..a8e1b5a 100644
--- a/bridges/CpasbienBridge.php
+++ b/bridges/CpasbienBridge.php
@@ -1,23 +1,18 @@
maintainer = "lagaisse";
- $this->name = "Cpasbien Bridge";
- $this->uri = "http://www.cpasbien.io";
- $this->description = "Returns latest torrents from a request query";
-
- $this->parameters[] = array(
- 'q'=>array(
+ public $parameters = array( array(
+ 'q'=>array(
'name'=>'Search',
'required'=>true,
'title'=>'Type your search'
- )
- );
-
- }
-
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/CryptomeBridge.php b/bridges/CryptomeBridge.php
index daf404f..b7e5fbb 100644
--- a/bridges/CryptomeBridge.php
+++ b/bridges/CryptomeBridge.php
@@ -1,22 +1,18 @@
maintainer = "BoboTiG";
- $this->name = "Cryptome";
- $this->uri = "http://cryptome.org/";
- $this->description = "Returns the N most recent documents.";
-
- $this->parameters[] = array(
- 'n'=>array(
+ public $parameters = array( array(
+ 'n'=>array(
'name'=>'number of elements',
'type'=>'number',
'exampleValue'=>10
- )
- );
- }
-
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/DailymotionBridge.php b/bridges/DailymotionBridge.php
index f085f04..50c8988 100644
--- a/bridges/DailymotionBridge.php
+++ b/bridges/DailymotionBridge.php
@@ -1,38 +1,37 @@
maintainer = "mitsukarenai";
- $this->name = "Dailymotion Bridge";
- $this->uri = "https://www.dailymotion.com/";
- $this->description = "Returns the 5 newest videos by username/playlist or search";
-
- $this->parameters["By username"] = array(
- 'u'=>array(
- 'name'=>'username',
- 'required'=>true
- )
- );
-
- $this->parameters["By playlist id"] = array(
- 'p'=>array(
- 'name'=>'playlist id',
- 'required'=>true
- )
- );
-
- $this->parameters["From search results"] = array(
- 's'=>array(
- 'name'=>'Search keyword',
- 'required'=>true
+ public $parameters = array (
+ 'By username' => array(
+ 'u'=>array(
+ 'name'=>'username',
+ 'required'=>true
+ )
),
- 'pa'=>array(
- 'name'=>'Page',
- 'type'=>'number'
+
+ 'By playlist id' => array(
+ 'p'=>array(
+ 'name'=>'playlist id',
+ 'required'=>true
+ )
+ ),
+
+ 'From search results' => array(
+ 's'=>array(
+ 'name'=>'Search keyword',
+ 'required'=>true
+ ),
+ 'pa'=>array(
+ 'name'=>'Page',
+ 'type'=>'number'
+ )
)
);
- }
function getMetadata($id) {
$metadata=array();
diff --git a/bridges/DanbooruBridge.php b/bridges/DanbooruBridge.php
index f41bc77..0e73967 100644
--- a/bridges/DanbooruBridge.php
+++ b/bridges/DanbooruBridge.php
@@ -1,18 +1,15 @@
maintainer = "mitsukarenai";
- $this->name = "Danbooru";
- $this->uri = "http://donmai.us/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array('name'=>'page'),
- 't'=>array('name'=>'tags')
- );
- }
+ public $parameters = array( array(
+ 'p'=>array('name'=>'page'),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/DansTonChatBridge.php b/bridges/DansTonChatBridge.php
index 83f6cd2..32bfe23 100644
--- a/bridges/DansTonChatBridge.php
+++ b/bridges/DansTonChatBridge.php
@@ -1,14 +1,10 @@
maintainer = "Astalaseven";
- $this->name = "DansTonChat Bridge";
- $this->uri = "http://danstonchat.com";
- $this->description = "Returns latest quotes from DansTonChat.";
-
- }
+ public $maintainer = "Astalaseven";
+ public $name = "DansTonChat Bridge";
+ public $uri = "http://danstonchat.com";
+ public $description = "Returns latest quotes from DansTonChat.";
public function collectData(){
$html = '';
diff --git a/bridges/DauphineLibereBridge.php b/bridges/DauphineLibereBridge.php
index d97a0a5..f55017f 100644
--- a/bridges/DauphineLibereBridge.php
+++ b/bridges/DauphineLibereBridge.php
@@ -1,37 +1,34 @@
maintainer = "qwertygc";
- $this->name = "Dauphine Bridge";
- $this->uri = "http://www.ledauphine.com/";
- $this->description = "Returns the newest articles.";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'Catégorie de l\'article',
'type'=>'list',
'values'=>array(
- 'À la une'=>'',
- 'France Monde'=>'france-monde',
- 'Faits Divers'=>'faits-divers',
- 'Économie et Finance'=>'economie-et-finance',
- 'Politique'=>'politique',
- 'Sport'=>'sport',
- 'Ain'=>'ain',
- 'Alpes-de-Haute-Provence'=>'haute-provence',
- 'Hautes-Alpes'=>'hautes-alpes',
- 'Ardèche'=>'ardeche',
- 'Drôme'=>'drome',
- 'Isère Sud'=>'isere-sud',
- 'Savoie'=>'savoie',
- 'Haute-Savoie'=>'haute-savoie',
- 'Vaucluse'=>'vaucluse'
+ 'À la une'=>'',
+ 'France Monde'=>'france-monde',
+ 'Faits Divers'=>'faits-divers',
+ 'Économie et Finance'=>'economie-et-finance',
+ 'Politique'=>'politique',
+ 'Sport'=>'sport',
+ 'Ain'=>'ain',
+ 'Alpes-de-Haute-Provence'=>'haute-provence',
+ 'Hautes-Alpes'=>'hautes-alpes',
+ 'Ardèche'=>'ardeche',
+ 'Drôme'=>'drome',
+ 'Isère Sud'=>'isere-sud',
+ 'Savoie'=>'savoie',
+ 'Haute-Savoie'=>'haute-savoie',
+ 'Vaucluse'=>'vaucluse'
)
- )
- );
- }
+ )
+ ));
private function ExtractContent($url, $context) {
$html2 = $this->getSimpleHTMLDOM($url,false,$context);
diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php
index f6d6efb..feddc32 100644
--- a/bridges/DemoBridge.php
+++ b/bridges/DemoBridge.php
@@ -1,54 +1,53 @@
maintainer = "teromene";
- $this->name = "DemoBridge";
- $this->uri = "http://github.com/sebsauvage/rss-bridge";
- $this->description = "Bridge used for demos";
-
- $this->parameters['testCheckbox'] = array(
- 'testCheckbox'=>array(
- 'type'=>'checkbox',
- 'name'=>'test des checkbox'
- )
- );
-
- $this->parameters['testList'] = array(
- 'testList'=>array(
- 'type'=>'list',
- 'name'=>'test des listes',
- 'values'=>array(
- 'Test'=>'test',
- 'Test 2'=>'test2'
+ public $parameters = array(
+ 'testCheckbox' => array(
+ 'testCheckbox'=>array(
+ 'type'=>'checkbox',
+ 'name'=>'test des checkbox'
)
- )
- );
+ ),
- $this->parameters['testNumber'] = array(
- 'testNumber'=>array(
- 'type'=>'number',
- 'name'=>'test des numéros',
- 'exampleValue'=>'1515632'
- )
- );
- }
+ 'testList' => array(
+ 'testList'=>array(
+ 'type'=>'list',
+ 'name'=>'test des listes',
+ 'values'=>array(
+ 'Test'=>'test',
+ 'Test 2'=>'test2'
+ )
+ )
+ ),
- public function collectData(){
+ 'testNumber' => array(
+ 'testNumber'=>array(
+ 'type'=>'number',
+ 'name'=>'test des numéros',
+ 'exampleValue'=>'1515632'
+ )
+ )
+ );
- $item = array();
- $item['author'] = "Me!";
- $item['title'] = "Test";
- $item['content'] = "Awesome content !";
- $item['id'] = "Lalala";
- $item['uri'] = "http://test.test/test";
+ public function collectData(){
- $this->items[] = $item;
+ $item = array();
+ $item['author'] = "Me!";
+ $item['title'] = "Test";
+ $item['content'] = "Awesome content !";
+ $item['id'] = "Lalala";
+ $item['uri'] = "http://test.test/test";
+
+ $this->items[] = $item;
}
- public function getCacheDuration(){
- return 00; // 1 hour
- }
+ public function getCacheDuration(){
+ return 00; // 1 hour
+ }
}
diff --git a/bridges/DeveloppezDotComBridge.php b/bridges/DeveloppezDotComBridge.php
index ca18fe3..d1453fa 100644
--- a/bridges/DeveloppezDotComBridge.php
+++ b/bridges/DeveloppezDotComBridge.php
@@ -1,12 +1,10 @@
maintainer = "polopollo";
- $this->name = "Developpez.com Actus (FR)";
- $this->uri = "http://www.developpez.com/";
- $this->description = "Returns the 15 newest posts from DeveloppezDotCom (full text).";
- }
+ public $maintainer = "polopollo";
+ public $name = "Developpez.com Actus (FR)";
+ public $uri = "http://www.developpez.com/";
+ public $description = "Returns the 15 newest posts from DeveloppezDotCom (full text).";
private function DeveloppezDotComStripCDATA($string) {
$string = str_replace('maintainer = 'kranack';
- $this->name = 'Dilbert Daily Strip';
- $this->uri = 'http://dilbert.com';
- $this->description = 'The Unofficial Dilbert Daily Comic Strip';
-
- }
+ public $maintainer = 'kranack';
+ public $name = 'Dilbert Daily Strip';
+ public $uri = 'http://dilbert.com';
+ public $description = 'The Unofficial Dilbert Daily Comic Strip';
public function collectData(){
diff --git a/bridges/DollbooruBridge.php b/bridges/DollbooruBridge.php
index fb3a5da..43faba4 100644
--- a/bridges/DollbooruBridge.php
+++ b/bridges/DollbooruBridge.php
@@ -1,22 +1,19 @@
maintainer = "mitsukarenai";
- $this->name = "Dollbooru";
- $this->uri = "http://dollbooru.org/";
- $this->description = "Returns images from given page";
+ public $maintainer = "mitsukarenai";
+ public $name = "Dollbooru";
+ public $uri = "http://dollbooru.org/";
+ public $description = "Returns images from given page";
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php
index 1522978..143ab9f 100644
--- a/bridges/DuckDuckGoBridge.php
+++ b/bridges/DuckDuckGoBridge.php
@@ -1,19 +1,16 @@
maintainer = "Astalaseven";
- $this->name = "DuckDuckGo";
- $this->uri = "https://duckduckgo.com/";
- $this->description = "Returns most recent results from DuckDuckGo.";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'keyword',
'required'=>true)
- );
- }
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/EZTVBridge.php b/bridges/EZTVBridge.php
index 83b93d1..5e28413 100644
--- a/bridges/EZTVBridge.php
+++ b/bridges/EZTVBridge.php
@@ -1,21 +1,18 @@
maintainer = "alexAubin";
- $this->name = "EZTV";
- $this->uri = "https://eztv.ch/";
- $this->description = "Returns list of *recent* torrents for a specific show on EZTV. Get showID from URLs in https://eztv.ch/shows/showID/show-full-name.";
-
- $this->parameters[] = array(
- 'i'=>array(
+ public $parameters = array( array(
+ 'i'=>array(
'name'=>'Show ids',
'exampleValue'=>'showID1,showID2,…',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/EliteDangerousGalnetBridge.php b/bridges/EliteDangerousGalnetBridge.php
index 9e9400d..26f091f 100644
--- a/bridges/EliteDangerousGalnetBridge.php
+++ b/bridges/EliteDangerousGalnetBridge.php
@@ -1,14 +1,10 @@
-
maintainer = "corenting";
- $this->name = "Elite: Dangerous Galnet";
- $this->uri = "https://community.elitedangerous.com/galnet";
- $this->description = "Returns the latest page of news from Galnet";
- }
+ public $maintainer = "corenting";
+ public $name = "Elite: Dangerous Galnet";
+ public $uri = "https://community.elitedangerous.com/galnet";
+ public $description = "Returns the latest page of news from Galnet";
public function collectData()
{
diff --git a/bridges/ElsevierBridge.php b/bridges/ElsevierBridge.php
index 25a9446..6a96a6c 100644
--- a/bridges/ElsevierBridge.php
+++ b/bridges/ElsevierBridge.php
@@ -1,21 +1,18 @@
maintainer = 'Pierre Mazière';
- $this->name = 'Elsevier journals recent articles';
- $this->uri = 'http://www.journals.elsevier.com';
- $this->description = 'Returns the recent articles published in Elsevier journals';
-
- $this->parameters[] = array(
- 'j'=>array(
+ public $parameters = array( array(
+ 'j'=>array(
'name'=>'Journal name',
'required'=>true,
'exampleValue'=>'academic-pediactrics',
'title'=>'Insert html-part of your journal'
- )
- );
- }
+ )
+ ));
// Extracts the list of names from an article as string
private function ExtractArticleName ($article){
diff --git a/bridges/EstCeQuonMetEnProdBridge.php b/bridges/EstCeQuonMetEnProdBridge.php
index 383d771..531d68b 100644
--- a/bridges/EstCeQuonMetEnProdBridge.php
+++ b/bridges/EstCeQuonMetEnProdBridge.php
@@ -1,12 +1,10 @@
maintainer = 'ORelio';
- $this->name = 'Est-ce qu\'on met en prod aujourd\'hui ?';
- $this->uri = 'https://www.estcequonmetenprodaujourdhui.info/';
- $this->description = 'Should we put a website in production today? (French)';
- }
+ public $maintainer = 'ORelio';
+ public $name = 'Est-ce qu\'on met en prod aujourd\'hui ?';
+ public $uri = 'https://www.estcequonmetenprodaujourdhui.info/';
+ public $description = 'Should we put a website in production today? (French)';
public function collectData(){
function ExtractFromDelimiters($string, $start, $end) {
diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php
index 4c67c50..d3ef9bf 100644
--- a/bridges/FacebookBridge.php
+++ b/bridges/FacebookBridge.php
@@ -1,20 +1,17 @@
maintainer = "teromene";
- $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->parameters[] =array(
- 'u'=>array(
+ public $parameters =array( array(
+ 'u'=>array(
'name'=>'Username',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/FierPandaBridge.php b/bridges/FierPandaBridge.php
index 44a792a..b6e0074 100644
--- a/bridges/FierPandaBridge.php
+++ b/bridges/FierPandaBridge.php
@@ -1,14 +1,10 @@
maintainer = "snroki";
- $this->name = "Fier Panda Bridge";
- $this->uri = "http://www.fier-panda.fr/";
- $this->description = "Returns latest articles from Fier Panda.";
-
- }
+ public $maintainer = "snroki";
+ public $name = "Fier Panda Bridge";
+ public $uri = "http://www.fier-panda.fr/";
+ public $description = "Returns latest articles from Fier Panda.";
public function collectData(){
$link = 'http://www.fier-panda.fr/';
diff --git a/bridges/FlickrExploreBridge.php b/bridges/FlickrExploreBridge.php
index 09f946e..d407f76 100644
--- a/bridges/FlickrExploreBridge.php
+++ b/bridges/FlickrExploreBridge.php
@@ -1,14 +1,10 @@
maintainer = "sebsauvage";
- $this->name = "Flickr Explore";
- $this->uri = "https://www.flickr.com/explore";
- $this->description = "Returns the latest interesting images from Flickr";
-
- }
+ public $maintainer = "sebsauvage";
+ public $name = "Flickr Explore";
+ public $uri = "https://www.flickr.com/explore";
+ public $description = "Returns the latest interesting images from Flickr";
public function collectData(){
$html = $this->getSimpleHTMLDOM('https://www.flickr.com/explore') or $this->returnServerError('Could not request Flickr.');
diff --git a/bridges/FlickrTagBridge.php b/bridges/FlickrTagBridge.php
index 2c6158d..43e22d9 100644
--- a/bridges/FlickrTagBridge.php
+++ b/bridges/FlickrTagBridge.php
@@ -1,21 +1,20 @@
maintainer = "erwang";
- $this->name = "Flickr TagUser";
- $this->uri = "http://www.flickr.com/";
- $this->description = "Returns the tagged or user images from Flickr";
+ public $parameters = array(
+ 'By keyword' => array(
+ 'q'=>array('name'=>'keyword')
+ ),
- $this->parameters["By keyword"] = array(
- 'q'=>array('name'=>'keyword')
- );
-
- $this->parameters["By username"] = array(
- 'u'=>array('name'=>'Username')
- );
- }
+ 'By username' => array(
+ 'u'=>array('name'=>'Username')
+ ),
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/FootitoBridge.php b/bridges/FootitoBridge.php
index 326cbd5..4751885 100644
--- a/bridges/FootitoBridge.php
+++ b/bridges/FootitoBridge.php
@@ -1,14 +1,10 @@
maintainer = "superbaillot.net";
- $this->name = "Footito";
- $this->uri = "http://www.footito.fr/";
- $this->description = "Footito";
-
- }
+ public $maintainer = "superbaillot.net";
+ public $name = "Footito";
+ public $uri = "http://www.footito.fr/";
+ public $description = "Footito";
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://www.footito.fr/') or $this->returnServerError('Could not request Footito.');
diff --git a/bridges/FourchanBridge.php b/bridges/FourchanBridge.php
index 976d8db..f566364 100644
--- a/bridges/FourchanBridge.php
+++ b/bridges/FourchanBridge.php
@@ -1,18 +1,14 @@
maintainer = "mitsukarenai";
- $this->name = "4chan";
- $this->uri = "https://www.4chan.org/";
- $this->description = "Returns posts from the specified thread";
-
- $this->parameters[] = array(
- 't'=>array('name'=>'Thread URL')
- );
- }
+ public $maintainer = "mitsukarenai";
+ public $name = "4chan";
+ public $uri = "https://www.4chan.org/";
+ public $description = "Returns posts from the specified thread";
+ public $parameters = array( array(
+ 't'=>array('name'=>'Thread URL')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/FreenewsBridge.php b/bridges/FreenewsBridge.php
index 727f9f5..7c50a09 100644
--- a/bridges/FreenewsBridge.php
+++ b/bridges/FreenewsBridge.php
@@ -2,13 +2,10 @@
define("FREENEWS_RSS", 'http://feeds.feedburner.com/Freenews-Freebox?format=xml');
class FreenewsBridge extends RssExpander {
- public function loadMetadatas() {
-
- $this->maintainer = "mitsukarenai";
- $this->name = "Freenews";
- $this->uri = "http://freenews.fr";
- $this->description = "Un site d'actualité pour les freenautes (mais ne parlant pas que de la freebox). Ne rentrez pas d'id si vous voulez accéder aux actualités générales.";
- }
+ public $maintainer = "mitsukarenai";
+ public $name = "Freenews";
+ public $uri = "http://freenews.fr";
+ public $description = "Un site d'actualité pour les freenautes (mais ne parlant pas que de la freebox). Ne rentrez pas d'id si vous voulez accéder aux actualités générales.";
public function collectData(){
parent::collectExpandableDatas(FREENEWS_RSS);
diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php
index 0603393..d25d6ac 100644
--- a/bridges/FuturaSciencesBridge.php
+++ b/bridges/FuturaSciencesBridge.php
@@ -1,85 +1,82 @@
maintainer = 'ORelio';
- $this->name = 'Futura-Sciences Bridge';
- $this->uri = 'http://www.futura-sciences.com/';
- $this->description = 'Returns the newest articles.';
-
- $this->parameters[] = array(
- 'feed'=> array(
+ public $parameters = array( array(
+ 'feed'=> array(
'name'=>'Feed',
'type'=>'list',
'values'=>array(
- 'Les flux multi-magazines'=>array(
- 'Les dernières actualités de Futura-Sciences'=>'actualites',
- 'Les dernières définitions de Futura-Sciences'=>'definitions',
- 'Les dernières photos de Futura-Sciences'=>'photos',
- 'Les dernières questions - réponses de Futura-Sciences'=>'questions-reponses',
- 'Les derniers dossiers de Futura-Sciences'=>'dossiers'
- ),
- 'Les flux Services'=> array(
- 'Les cartes virtuelles de Futura-Sciences'=>'services/cartes-virtuelles',
- 'Les fonds d\'écran de Futura-Sciences'=>'services/fonds-ecran'
- ),
- 'Les flux Santé'=>array(
- 'Les dernières actualités de Futura-Santé'=>'sante/actualites',
- 'Les dernières définitions de Futura-Santé'=>'sante/definitions',
- 'Les dernières questions-réponses de Futura-Santé'=>'sante/question-reponses',
- 'Les derniers dossiers de Futura-Santé'=>'sante/dossiers'
- ),
- 'Les flux High-Tech'=>array(
- 'Les dernières actualités de Futura-High-Tech'=>'high-tech/actualites',
- 'Les dernières astuces de Futura-High-Tech'=>'high-tech/question-reponses',
- 'Les dernières définitions de Futura-High-Tech'=>'high-tech/definitions',
- 'Les derniers dossiers de Futura-High-Tech'=>'high-tech/dossiers'
- ),
- 'Les flux Espace'=>array(
- 'Les dernières actualités de Futura-Espace'=>'espace/actualites',
- 'Les dernières définitions de Futura-Espace'=>'espace/definitions',
- 'Les dernières questions-réponses de Futura-Espace'=>'espace/question-reponses',
- 'Les derniers dossiers de Futura-Espace'=>'espace/dossiers'
- ),
- 'Les flux Environnement'=>array(
- 'Les dernières actualités de Futura-Environnement'=>'environnement/actualites',
- 'Les dernières définitions de Futura-Environnement'=>'environnement/definitions',
- 'Les dernières questions-réponses de Futura-Environnement'=>'environnement/question-reponses',
- 'Les derniers dossiers de Futura-Environnement'=>'environnement/dossiers'
- ),
- 'Les flux Maison'=>array(
- 'Les dernières actualités de Futura-Maison'=>'maison/actualites',
- 'Les dernières astuces de Futura-Maison'=>'maison/question-reponses',
- 'Les dernières définitions de Futura-Maison'=>'maison/definitions',
- 'Les derniers dossiers de Futura-Maison'=>'maison/dossiers'
- ),
- 'Les flux Nature'=>array(
- 'Les dernières actualités de Futura-Nature'=>'nature/actualites',
- 'Les dernières définitions de Futura-Nature'=>'nature/definitions',
- 'Les dernières questions-réponses de Futura-Nature'=>'nature/question-reponses',
- 'Les derniers dossiers de Futura-Nature'=>'nature/dossiers'
- ),
- 'Les flux Terre'=>array(
- 'Les dernières actualités de Futura-Terre'=>'terre/actualites',
- 'Les dernières définitions de Futura-Terre'=>'terre/definitions',
- 'Les dernières questions-réponses de Futura-Terre'=>'terre/question-reponses',
- 'Les derniers dossiers de Futura-Terre'=>'terre/dossiers'
- ),
- 'Les flux Matière'=>array(
- 'Les dernières actualités de Futura-Matière'=>'matiere/actualites',
- 'Les dernières définitions de Futura-Matière'=>'matiere/definitions',
- 'Les dernières questions-réponses de Futura-Matière'=>'matiere/question-reponses',
- 'Les derniers dossiers de Futura-Matière'=>'matiere/dossiers'
- ),
- 'Les flux Mathématiques'=>array(
- 'Les dernières actualités de Futura-Mathématiques'=>'mathematiques/actualites',
- 'Les derniers dossiers de Futura-Mathématiques'=>'mathematiques/dossiers'
- )
+ 'Les flux multi-magazines'=>array(
+ 'Les dernières actualités de Futura-Sciences'=>'actualites',
+ 'Les dernières définitions de Futura-Sciences'=>'definitions',
+ 'Les dernières photos de Futura-Sciences'=>'photos',
+ 'Les dernières questions - réponses de Futura-Sciences'=>'questions-reponses',
+ 'Les derniers dossiers de Futura-Sciences'=>'dossiers'
+ ),
+ 'Les flux Services'=> array(
+ 'Les cartes virtuelles de Futura-Sciences'=>'services/cartes-virtuelles',
+ 'Les fonds d\'écran de Futura-Sciences'=>'services/fonds-ecran'
+ ),
+ 'Les flux Santé'=>array(
+ 'Les dernières actualités de Futura-Santé'=>'sante/actualites',
+ 'Les dernières définitions de Futura-Santé'=>'sante/definitions',
+ 'Les dernières questions-réponses de Futura-Santé'=>'sante/question-reponses',
+ 'Les derniers dossiers de Futura-Santé'=>'sante/dossiers'
+ ),
+ 'Les flux High-Tech'=>array(
+ 'Les dernières actualités de Futura-High-Tech'=>'high-tech/actualites',
+ 'Les dernières astuces de Futura-High-Tech'=>'high-tech/question-reponses',
+ 'Les dernières définitions de Futura-High-Tech'=>'high-tech/definitions',
+ 'Les derniers dossiers de Futura-High-Tech'=>'high-tech/dossiers'
+ ),
+ 'Les flux Espace'=>array(
+ 'Les dernières actualités de Futura-Espace'=>'espace/actualites',
+ 'Les dernières définitions de Futura-Espace'=>'espace/definitions',
+ 'Les dernières questions-réponses de Futura-Espace'=>'espace/question-reponses',
+ 'Les derniers dossiers de Futura-Espace'=>'espace/dossiers'
+ ),
+ 'Les flux Environnement'=>array(
+ 'Les dernières actualités de Futura-Environnement'=>'environnement/actualites',
+ 'Les dernières définitions de Futura-Environnement'=>'environnement/definitions',
+ 'Les dernières questions-réponses de Futura-Environnement'=>'environnement/question-reponses',
+ 'Les derniers dossiers de Futura-Environnement'=>'environnement/dossiers'
+ ),
+ 'Les flux Maison'=>array(
+ 'Les dernières actualités de Futura-Maison'=>'maison/actualites',
+ 'Les dernières astuces de Futura-Maison'=>'maison/question-reponses',
+ 'Les dernières définitions de Futura-Maison'=>'maison/definitions',
+ 'Les derniers dossiers de Futura-Maison'=>'maison/dossiers'
+ ),
+ 'Les flux Nature'=>array(
+ 'Les dernières actualités de Futura-Nature'=>'nature/actualites',
+ 'Les dernières définitions de Futura-Nature'=>'nature/definitions',
+ 'Les dernières questions-réponses de Futura-Nature'=>'nature/question-reponses',
+ 'Les derniers dossiers de Futura-Nature'=>'nature/dossiers'
+ ),
+ 'Les flux Terre'=>array(
+ 'Les dernières actualités de Futura-Terre'=>'terre/actualites',
+ 'Les dernières définitions de Futura-Terre'=>'terre/definitions',
+ 'Les dernières questions-réponses de Futura-Terre'=>'terre/question-reponses',
+ 'Les derniers dossiers de Futura-Terre'=>'terre/dossiers'
+ ),
+ 'Les flux Matière'=>array(
+ 'Les dernières actualités de Futura-Matière'=>'matiere/actualites',
+ 'Les dernières définitions de Futura-Matière'=>'matiere/definitions',
+ 'Les dernières questions-réponses de Futura-Matière'=>'matiere/question-reponses',
+ 'Les derniers dossiers de Futura-Matière'=>'matiere/dossiers'
+ ),
+ 'Les flux Mathématiques'=>array(
+ 'Les dernières actualités de Futura-Mathématiques'=>'mathematiques/actualites',
+ 'Les derniers dossiers de Futura-Mathématiques'=>'mathematiques/dossiers'
+ )
)
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/GBAtempBridge.php b/bridges/GBAtempBridge.php
index d928117..ef554ad 100644
--- a/bridges/GBAtempBridge.php
+++ b/bridges/GBAtempBridge.php
@@ -1,27 +1,24 @@
maintainer = 'ORelio';
- $this->name = 'GBAtemp';
- $this->uri = 'http://gbatemp.net/';
- $this->description = 'GBAtemp is a user friendly underground video game community.';
-
- $this->parameters[] = array(
- 'type'=>array(
+ public $parameters = array( array(
+ 'type'=>array(
'name'=>'Type',
'type'=>'list',
'required'=>true,
'values'=>array(
- 'News'=>'N',
- 'Reviews'=>'R',
- 'Tutorials'=>'T',
- 'Forum'=>'F'
+ 'News'=>'N',
+ 'Reviews'=>'R',
+ 'Tutorials'=>'T',
+ 'Forum'=>'F'
)
- )
- );
- }
+ )
+ ));
private function ExtractFromDelimiters($string, $start, $end) {
if (strpos($string, $start) !== false) {
diff --git a/bridges/GawkerBridge.php b/bridges/GawkerBridge.php
index 6012220..3d6bc2b 100644
--- a/bridges/GawkerBridge.php
+++ b/bridges/GawkerBridge.php
@@ -4,20 +4,17 @@ define("RSS_SUFFIX", "/full");
class GawkerBridge extends RssExpander{
- public function loadMetadatas() {
+ public $maintainer = "mitsukarenai";
+ public $name = "Gawker media";
+ public $uri = "http://feeds.gawker.com/";
+ public $description = "A bridge allowing access to any of the numerous Gawker media blogs (Lifehacker, deadspin, Kotaku, Jezebel, and so on. Notice you have to give its id to find the RSS stream in gawker maze";
- $this->maintainer = "mitsukarenai";
- $this->name = "Gawker media";
- $this->uri = "http://feeds.gawker.com/";
- $this->description = "A bridge allowing access to any of the numerous Gawker media blogs (Lifehacker, deadspin, Kotaku, Jezebel, and so on. Notice you have to give its id to find the RSS stream in gawker maze";
-
- $this->parameters[] = array(
- 'site'=>array(
- 'name'=>'site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL',
- 'required'=>true
- )
- );
- }
+ public $parameters = array( array(
+ 'site'=>array(
+ 'name'=>'site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL',
+ 'required'=>true
+ )
+ ));
private function toURI($name) {
diff --git a/bridges/GelbooruBridge.php b/bridges/GelbooruBridge.php
index 94d3594..486c9eb 100644
--- a/bridges/GelbooruBridge.php
+++ b/bridges/GelbooruBridge.php
@@ -1,22 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Gelbooru";
- $this->uri = "http://gelbooru.com/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
-
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/GiphyBridge.php b/bridges/GiphyBridge.php
index b294969..cf2af65 100644
--- a/bridges/GiphyBridge.php
+++ b/bridges/GiphyBridge.php
@@ -3,22 +3,18 @@ define('GIPHY_LIMIT', 10);
class GiphyBridge extends BridgeAbstract{
- public function loadMetadatas() {
+ public $maintainer = "kraoc";
+ public $name = "Giphy Bridge";
+ public $uri = "http://giphy.com/";
+ public $description = "Bridge for giphy.com";
- $this->maintainer = "kraoc";
- $this->name = "Giphy Bridge";
- $this->uri = "http://giphy.com/";
- $this->description = "Bridge for giphy.com";
-
- $this->parameters[] = array(
- 's'=>array('name'=>'search tag'),
- 'n'=>array(
- 'name'=>'max number of returned items',
- 'type'=>'number'
- )
- );
-
- }
+ public $parameters = array( array(
+ 's'=>array('name'=>'search tag'),
+ 'n'=>array(
+ 'name'=>'max number of returned items',
+ 'type'=>'number'
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/GithubIssueBridge.php b/bridges/GithubIssueBridge.php
index 3374ed8..83c98be 100644
--- a/bridges/GithubIssueBridge.php
+++ b/bridges/GithubIssueBridge.php
@@ -1,13 +1,13 @@
maintainer = 'Pierre Mazière';
- $this->name = 'Github Issue';
- $this->uri = '';
- $this->description = 'Returns the issues or comments of an issue of a github project';
+ public $maintainer = 'Pierre Mazière';
+ public $name = 'Github Issue';
+ public $uri = '';
+ public $description = 'Returns the issues or comments of an issue of a github project';
- $this->parameters['global']=array (
+ public $parameters=array(
+ 'global'=>array (
'u'=>array(
'name'=>'User name',
'required'=>true
@@ -16,20 +16,20 @@ class GithubIssueBridge extends BridgeAbstract{
'name'=>'Project name',
'required'=>true
)
- );
+ ),
- $this->parameters['Project Issues']=array();
- $this->parameters['Issue comments']=array(
+ 'Project Issues'=>array(),
+ 'Issue comments'=>array(
'i'=>array(
'name'=>'Issue number',
'type'=>'number',
'required'=>'true'
)
- );
- }
+ )
+ );
public function collectData(){
- $param=$this->parameters[$this->queriedContext];
+ $param=$this->parameters[$this->queriedContext];
$uri = 'https://github.com/'.$param['u']['value'].'/'.$param['p']['value'].'/issues/'.(isset($param['i']['value'])?$param['i']['value']:'');
$html = $this->getSimpleHTMLDOM($uri)
or $this->returnServerError('No results for Github Issue '.$param['i']['value'].' in project '.$param['u']['value'].'/'.$param['p']['value']);
diff --git a/bridges/GitlabCommitsBridge.php b/bridges/GitlabCommitsBridge.php
index 61c15b5..c8558fe 100644
--- a/bridges/GitlabCommitsBridge.php
+++ b/bridges/GitlabCommitsBridge.php
@@ -1,19 +1,12 @@
maintainer = 'Pierre Mazière';
- $this->name = 'Gitlab Commits';
- $this->uri = '';
- $this->description = 'Returns the commits of a project hosted on a gitlab instance';
+ public $maintainer = 'Pierre Mazière';
+ public $name = 'Gitlab Commits';
+ public $uri = '';
+ public $description = 'Returns the commits of a project hosted on a gitlab instance';
- $this->parameters[] = array(
+ public $parameters = array( array(
'uri'=>array(
'name'=>'Base URI',
'defaultValue'=>'https://gitlab.com'
@@ -30,8 +23,7 @@ class GitlabCommitsBridge extends BridgeAbstract{
'name'=>'Project branch',
'defaultValue'=>'master'
)
- );
- }
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/GizmodoFRBridge.php b/bridges/GizmodoFRBridge.php
index ce4e96d..e79dcd4 100644
--- a/bridges/GizmodoFRBridge.php
+++ b/bridges/GizmodoFRBridge.php
@@ -1,14 +1,10 @@
maintainer = "polopollo";
- $this->name = "GizmodoFR";
- $this->uri = "http://www.gizmodo.fr/";
- $this->description = "Returns the 15 newest posts from GizmodoFR (full text).";
-
- }
+ public $maintainer = "polopollo";
+ public $name = "GizmodoFR";
+ public $uri = "http://www.gizmodo.fr/";
+ public $description = "Returns the 15 newest posts from GizmodoFR (full text).";
public function collectData(){
diff --git a/bridges/GooglePlusPostBridge.php b/bridges/GooglePlusPostBridge.php
index 56af452..62414b5 100644
--- a/bridges/GooglePlusPostBridge.php
+++ b/bridges/GooglePlusPostBridge.php
@@ -4,21 +4,17 @@ class GooglePlusPostBridge extends BridgeAbstract
protected $_title;
protected $_url;
- public function loadMetadatas() {
+ public $maintainer = "Grummfy";
+ public $name = "Google Plus Post Bridge";
+ public $uri = "http://plus.google.com/";
+ public $description = "Returns user public post (without API).";
- $this->maintainer = "Grummfy";
- $this->name = "Google Plus Post Bridge";
- $this->uri = "http://plus.google.com/";
- $this->description = "Returns user public post (without API).";
-
- $this->parameters[] = array(
- 'username'=>array(
- 'name'=>'username or Id',
- 'required'=>true
- )
- );
-
- }
+ public $parameters = array( array(
+ 'username'=>array(
+ 'name'=>'username or Id',
+ 'required'=>true
+ )
+ ));
const GOOGLE_PLUS_BASE_URL = 'https://plus.google.com/';
diff --git a/bridges/GoogleSearchBridge.php b/bridges/GoogleSearchBridge.php
index c2512bf..9d1cf5c 100644
--- a/bridges/GoogleSearchBridge.php
+++ b/bridges/GoogleSearchBridge.php
@@ -9,21 +9,18 @@
*/
class GoogleSearchBridge extends BridgeAbstract{
- public function loadMetadatas() {
- $this->maintainer = "sebsauvage";
- $this->name = "Google search";
- $this->uri = "https://www.google.com/";
- $this->description = "Returns most recent results from Google search.";
+ public $maintainer = "sebsauvage";
+ public $name = "Google search";
+ public $uri = "https://www.google.com/";
+ public $description = "Returns most recent results from Google search.";
- $this->parameters[] = array(
- 'q'=>array(
- 'name'=>"keyword",
- 'required'=>true
- )
- );
-
- }
+ public $parameters = array( array(
+ 'q'=>array(
+ 'name'=>"keyword",
+ 'required'=>true
+ )
+ ));
public function collectData(){
diff --git a/bridges/GuruMedBridge.php b/bridges/GuruMedBridge.php
index 6561755..a91e5e3 100644
--- a/bridges/GuruMedBridge.php
+++ b/bridges/GuruMedBridge.php
@@ -1,12 +1,10 @@
maintainer = "qwertygc";
- $this->name = "GuruMed";
- $this->uri = "http://www.gurumed.org";
- $this->description = "Returns the 5 newest posts from Gurumed (full text)";
- }
+ public $maintainer = "qwertygc";
+ public $name = "GuruMed";
+ public $uri = "http://www.gurumed.org";
+ public $description = "Returns the 5 newest posts from Gurumed (full text)";
private function GurumedStripCDATA($string) {
$string = str_replace('maintainer = "nel50n";
- $this->name = "HD Wallpapers Bridge";
- $this->uri = "http://www.hdwallpapers.in/";
- $this->description = "Returns the latests wallpapers from HDWallpapers";
+ public $maintainer = "nel50n";
+ public $name = "HD Wallpapers Bridge";
+ public $uri = "http://www.hdwallpapers.in/";
+ public $description = "Returns the latests wallpapers from HDWallpapers";
- $this->parameters[] = array(
- 'c'=>array('name'=>'category'),
- 'm'=>array('name'=>'max number of wallpapers'),
- 'r'=>array(
+ public $parameters = array( array(
+ 'c'=>array('name'=>'category'),
+ 'm'=>array('name'=>'max number of wallpapers'),
+ 'r'=>array(
'name'=>'resolution',
'exampleValue'=>'1920x1200, 1680x1050,…'
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/HentaiHavenBridge.php b/bridges/HentaiHavenBridge.php
index 2238192..7be6145 100644
--- a/bridges/HentaiHavenBridge.php
+++ b/bridges/HentaiHavenBridge.php
@@ -1,14 +1,10 @@
maintainer = "albirew";
- $this->name = "Hentai Haven";
- $this->uri = "http://hentaihaven.org/";
- $this->description = "Returns releases from Hentai Haven";
-
- }
+ public $maintainer = "albirew";
+ public $name = "Hentai Haven";
+ public $uri = "http://hentaihaven.org/";
+ public $description = "Returns releases from Hentai Haven";
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://hentaihaven.org/') or $this->returnServerError('Could not request Hentai Haven.');
diff --git a/bridges/IdenticaBridge.php b/bridges/IdenticaBridge.php
index 15ed759..9168523 100644
--- a/bridges/IdenticaBridge.php
+++ b/bridges/IdenticaBridge.php
@@ -1,21 +1,17 @@
maintainer = "mitsukarenai";
- $this->name = "Identica Bridge";
- $this->uri = "https://identi.ca/";
- $this->description = "Returns user timelines";
-
- $this->parameters[] = array(
- 'u'=>array(
- 'name'=>'username',
- 'required'=>true
- )
- );
-
- }
+ public $parameters = array( array(
+ 'u'=>array(
+ 'name'=>'username',
+ 'required'=>true
+ )
+ ));
public function collectData(){
$html = '';
diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php
index 9b48890..1c7905c 100644
--- a/bridges/InstagramBridge.php
+++ b/bridges/InstagramBridge.php
@@ -1,21 +1,17 @@
maintainer = "pauder";
- $this->name = "Instagram Bridge";
- $this->uri = "http://instagram.com/";
- $this->description = "Returns the newest images";
-
- $this->parameters[] = array(
- 'u'=>array(
- 'name'=>'username',
- 'required'=>true
- )
- );
-
- }
+ public $parameters = array( array(
+ 'u'=>array(
+ 'name'=>'username',
+ 'required'=>true
+ )
+ ));
public function collectData(){
$html = $this->getSimpleHTMLDOM($this->getURI())
diff --git a/bridges/IsoHuntBridge.php b/bridges/IsoHuntBridge.php
index bfeb2fd..5f9cad7 100644
--- a/bridges/IsoHuntBridge.php
+++ b/bridges/IsoHuntBridge.php
@@ -1,93 +1,93 @@
maintainer = 'logmanoriginal';
- $this->name = 'isoHunt Bridge'; // Is replaced later!
- $this->uri = 'https://isohunt.to'; // Is replaced later!
- $this->description = 'Returns the latest results by category or search result';
+ public $maintainer = 'logmanoriginal';
+ public $name = 'isoHunt Bridge'; // Is replaced later!
+ public $uri = 'https://isohunt.to'; // Is replaced later!
+ public $description = 'Returns the latest results by category or search result';
+
+ public $parameters = array(
+ /*
+ * Get feeds for one of the "latest" categories
+ * Notice: The categories "News" and "Top Searches" are received from the main page
+ * Elements are sorted by name ascending!
+ */
+ 'By "Latest" category' => array(
+ 'latest_category'=>array(
+ 'name'=>'Latest category',
+ 'type'=>'list',
+ 'required'=>true,
+ 'title'=>'Select your category',
+ 'defaultValue'=>'News',
+ 'values'=>array(
+ 'Hot Torrents'=>'hot_torrents',
+ 'News'=>'news',
+ 'Releases'=>'releases',
+ 'Torrents'=>'torrents'
+ )
+ )
+ ),
/*
- * Get feeds for one of the "latest" categories
- * Notice: The categories "News" and "Top Searches" are received from the main page
- * Elements are sorted by name ascending!
- */
- $this->parameters['By "Latest" category'] = array(
- 'latest_category'=>array(
- 'name'=>'Latest category',
- 'type'=>'list',
- 'required'=>true,
- 'title'=>'Select your category',
- 'defaultValue'=>'News',
- 'values'=>array(
- 'Hot Torrents'=>'hot_torrents',
- 'News'=>'news',
- 'Releases'=>'releases',
- 'Torrents'=>'torrents'
+ * Get feeds for one of the "torrent" categories
+ * Make sure to add new categories also to get_torrent_category_index($)!
+ * Elements are sorted by name ascending!
+ */
+ 'By "Torrent" category' => array(
+ 'torrent_category'=>array(
+ 'name'=>'Torrent category',
+ 'type'=>'list',
+ 'required'=>true,
+ 'title'=>'Select your category',
+ 'defaultValue'=>'Anime',
+ 'values'=>array(
+ 'Adult'=>'adult',
+ 'Anime'=>'anime',
+ 'Books'=>'books',
+ 'Games'=>'games',
+ 'Movies'=>'movies',
+ 'Music'=>'music',
+ 'Other'=>'other',
+ 'Series & TV'=>'series_tv',
+ 'Software'=>'software'
+ )
+ ),
+ 'torrent_popularity'=>array(
+ 'name'=>'Sort by popularity',
+ 'type'=>'checkbox',
+ 'title'=>'Activate to receive results by popularity'
)
- )
- );
+ ),
/*
- * Get feeds for one of the "torrent" categories
- * Make sure to add new categories also to get_torrent_category_index($)!
- * Elements are sorted by name ascending!
- */
- $this->parameters['By "Torrent" category'] = array(
- 'torrent_category'=>array(
- 'name'=>'Torrent category',
- 'type'=>'list',
- 'required'=>true,
- 'title'=>'Select your category',
- 'defaultValue'=>'Anime',
- 'values'=>array(
- 'Adult'=>'adult',
- 'Anime'=>'anime',
- 'Books'=>'books',
- 'Games'=>'games',
- 'Movies'=>'movies',
- 'Music'=>'music',
- 'Other'=>'other',
- 'Series & TV'=>'series_tv',
- 'Software'=>'software'
+ * Get feeds for a specific search request
+ */
+ 'Search torrent by name' => array(
+ 'search_name'=>array(
+ 'name'=>'Name',
+ 'required'=>true,
+ 'title'=>'Insert your search query',
+ 'exampleValue'=>'Bridge'
+ ),
+ 'search_category'=>array(
+ 'name'=>'Category',
+ 'type'=>'list',
+ 'title'=>'Select your category',
+ 'defaultValue'=>'All',
+ 'values'=>array(
+ 'Adult'=>'adult',
+ 'All'=>'all',
+ 'Anime'=>'anime',
+ 'Books'=>'books',
+ 'Games'=>'games',
+ 'Movies'=>'movies',
+ 'Music'=>'music',
+ 'Other'=>'other',
+ 'Series & TV'=>'series_tv',
+ 'Software'=>'software'
+ )
)
- ),
- 'torrent_popularity'=>array(
- 'name'=>'Sort by popularity',
- 'type'=>'checkbox',
- 'title'=>'Activate to receive results by popularity'
- )
- );
-
- /*
- * Get feeds for a specific search request
- */
- $this->parameters['Search torrent by name'] = array(
- 'search_name'=>array(
- 'name'=>'Name',
- 'required'=>true,
- 'title'=>'Insert your search query',
- 'exampleValue'=>'Bridge'
- ),
- 'search_category'=>array(
- 'name'=>'Category',
- 'type'=>'list',
- 'title'=>'Select your category',
- 'defaultValue'=>'All',
- 'values'=>array(
- 'Adult'=>'adult',
- 'All'=>'all',
- 'Anime'=>'anime',
- 'Books'=>'books',
- 'Games'=>'games',
- 'Movies'=>'movies',
- 'Music'=>'music',
- 'Other'=>'other',
- 'Series & TV'=>'series_tv',
- 'Software'=>'software'
- )
- )
- );
- }
+ )
+ );
public function collectData(){
$params=$this->parameters[$this->queriedContext];
diff --git a/bridges/JapanExpoBridge.php b/bridges/JapanExpoBridge.php
index 7ac1f8a..828593e 100644
--- a/bridges/JapanExpoBridge.php
+++ b/bridges/JapanExpoBridge.php
@@ -1,22 +1,20 @@
maintainer = 'Ginko';
- $this->name = 'Japan Expo Actualités';
- $this->uri = 'http://www.japan-expo-paris.com/fr/actualites';
- $this->description = 'Returns most recent entries from Japan Expo actualités.';
- $this->parameters[] = array(
- 'mode'=>array(
+ public $maintainer = 'Ginko';
+ public $name = 'Japan Expo Actualités';
+ public $uri = 'http://www.japan-expo-paris.com/fr/actualites';
+ public $description = 'Returns most recent entries from Japan Expo actualités.';
+ public $parameters = array( array(
+ 'mode'=>array(
'name'=>'Mode',
'type'=>'list',
'values'=>array(
- 'Titles only'=>'light',
- 'Full Contents'=>'full'
+ 'Titles only'=>'light',
+ 'Full Contents'=>'full'
)
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/KonachanBridge.php b/bridges/KonachanBridge.php
index 1ae4fff..bda5a96 100644
--- a/bridges/KonachanBridge.php
+++ b/bridges/KonachanBridge.php
@@ -1,21 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Konachan";
- $this->uri = "http://konachan.com/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/KoreusBridge.php b/bridges/KoreusBridge.php
index 66fe373..4cb86c8 100644
--- a/bridges/KoreusBridge.php
+++ b/bridges/KoreusBridge.php
@@ -1,12 +1,10 @@
maintainer = "pit-fgfjiudghdf";
- $this->name = "Koreus";
- $this->uri = "http://www.koreus.com/";
- $this->description = "Returns the 5 newest posts from Koreus (full text)";
- }
+ public $maintainer = "pit-fgfjiudghdf";
+ public $name = "Koreus";
+ public $uri = "http://www.koreus.com/";
+ public $description = "Returns the 5 newest posts from Koreus (full text)";
private function KoreusStripCDATA($string) {
$string = str_replace('maintainer = "logmanoriginal";
- $this->name = "Kununu Bridge"; /* This will be replaced later! */
- $this->uri = "https://www.kununu.com"; /* This will be replaced later! */
- $this->description = "Returns the latest reviews for a company and site of your choice.";
+ public $maintainer = "logmanoriginal";
+ public $name = "Kununu Bridge"; /* This will be replaced later! */
+ public $uri = "https://www.kununu.com"; /* This will be replaced later! */
+ public $description = "Returns the latest reviews for a company and site of your choice.";
- $this->parameters['global'] = array(
+ public $parameters = array(
+ 'global' => array(
'site'=>array(
'name'=>'Site',
'type'=>'list',
@@ -27,17 +27,17 @@ class KununuBridge extends BridgeAbstract{
'exampleValue'=>'checked',
'title'=>'Activate to load full article'
)
- );
+ ),
- $this->parameters[] = array(
+ array(
'company'=>array(
'name'=>'Company',
'required'=>true,
'exampleValue'=>'kununu-us',
'title'=>'Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)'
)
- );
- }
+ )
+ );
public function collectData(){
$params=$this->parameters[$this->queriedContext];
diff --git a/bridges/LWNprevBridge.php b/bridges/LWNprevBridge.php
index 32a7944..9e64a5c 100644
--- a/bridges/LWNprevBridge.php
+++ b/bridges/LWNprevBridge.php
@@ -1,19 +1,9 @@
maintainer = 'Pierre Mazière';
- $this->name = 'LWN Free Weekly Edition';
- $this->uri = 'https://lwn.net/free/bigpage';
- $this->description = 'LWN Free Weekly Edition available one week late';
-
- }
+ public $maintainer = 'Pierre Mazière';
+ public $name = 'LWN Free Weekly Edition';
+ public $uri = 'https://lwn.net/free/bigpage';
+ public $description = 'LWN Free Weekly Edition available one week late';
private function jumpToNextTag(&$node){
while($node && $node->nodeType===XML_TEXT_NODE){
diff --git a/bridges/LeBonCoinBridge.php b/bridges/LeBonCoinBridge.php
index 855600f..974419c 100755
--- a/bridges/LeBonCoinBridge.php
+++ b/bridges/LeBonCoinBridge.php
@@ -1,14 +1,12 @@
maintainer = "16mhz";
- $this->name = "LeBonCoin";
- $this->uri = "http://www.leboncoin.fr";
- $this->description = "Returns most recent results from LeBonCoin for a region, and optionally a category and a keyword .";
-
- $this->parameters[] = array(
+ public $parameters = array( array(
'k'=>array('name'=>'Mot Clé'),
'r'=>array(
'name'=>'Région',
@@ -132,11 +130,9 @@ class LeBonCoinBridge extends BridgeAbstract{
),
'AUTRES'=>'autres'
)
- )
- );
-
- }
-
+ )
+ )
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/LeJournalDuGeekBridge.php b/bridges/LeJournalDuGeekBridge.php
index 19f06e1..370a189 100644
--- a/bridges/LeJournalDuGeekBridge.php
+++ b/bridges/LeJournalDuGeekBridge.php
@@ -1,12 +1,10 @@
maintainer = "polopollo";
- $this->name = "journaldugeek.com (FR)";
- $this->uri = "http://www.journaldugeek.com/";
- $this->description = "Returns the 5 newest posts from LeJournalDuGeek (full text).";
- }
+ public $maintainer = "polopollo";
+ public $name = "journaldugeek.com (FR)";
+ public $uri = "http://www.journaldugeek.com/";
+ public $description = "Returns the 5 newest posts from LeJournalDuGeek (full text).";
private function LeJournalDuGeekStripCDATA($string) {
$string = str_replace('maintainer = "ORelio";
- $this->name = "Le Monde Informatique";
- $this->uri = "http://www.lemondeinformatique.fr/";
- $this->description = "Returns the newest articles.";
-
- }
+ public $maintainer = "ORelio";
+ public $name = "Le Monde Informatique";
+ public $uri = "http://www.lemondeinformatique.fr/";
+ public $description = "Returns the newest articles.";
public function collectData(){
diff --git a/bridges/Les400CulsBridge.php b/bridges/Les400CulsBridge.php
index 2dd9883..31b101b 100644
--- a/bridges/Les400CulsBridge.php
+++ b/bridges/Les400CulsBridge.php
@@ -4,14 +4,10 @@ define("SEXE_FEED", "http://sexes.blogs.liberation.fr/feeds/");
class Les400CulsBridge extends RssExpander{
- public function loadMetadatas() {
-
- $this->maintainer = "unknown";
- $this->name = "Les 400 Culs";
- $this->uri = "http://sexes.blogs.liberation.fr";
- $this->description = "La planete sexe vue par Agnes Girard via rss-bridge";
-
- }
+ public $maintainer = "unknown";
+ public $name = "Les 400 Culs";
+ public $uri = "http://sexes.blogs.liberation.fr";
+ public $description = "La planete sexe vue par Agnes Girard via rss-bridge";
public function collectData(){
diff --git a/bridges/LesJoiesDuCodeBridge.php b/bridges/LesJoiesDuCodeBridge.php
index d329939..db40bff 100644
--- a/bridges/LesJoiesDuCodeBridge.php
+++ b/bridges/LesJoiesDuCodeBridge.php
@@ -1,14 +1,10 @@
maintainer = "superbaillot.net";
- $this->name = "Les Joies Du Code";
- $this->uri = "http://lesjoiesducode.fr/";
- $this->description = "LesJoiesDuCode";
-
- }
+ public $maintainer = "superbaillot.net";
+ public $name = "Les Joies Du Code";
+ public $uri = "http://lesjoiesducode.fr/";
+ public $description = "LesJoiesDuCode";
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://lesjoiesducode.fr/') or $this->returnServerError('Could not request LesJoiesDuCode.');
diff --git a/bridges/LichessBridge.php b/bridges/LichessBridge.php
index 839b183..dd86f06 100644
--- a/bridges/LichessBridge.php
+++ b/bridges/LichessBridge.php
@@ -2,13 +2,10 @@
class LichessBridge extends BridgeAbstract
{
- public function loadMetadatas()
- {
- $this->maintainer = 'AmauryCarrade';
- $this->name = 'Lichess Blog';
- $this->uri = 'http://lichess.org/blog';
- $this->description = 'Returns the 5 newest posts from the Lichess blog (full text)';
- }
+ public $maintainer = 'AmauryCarrade';
+ public $name = 'Lichess Blog';
+ public $uri = 'http://lichess.org/blog';
+ public $description = 'Returns the 5 newest posts from the Lichess blog (full text)';
public function collectData()
{
diff --git a/bridges/LinkedInCompany.php b/bridges/LinkedInCompany.php
index 7640d15..9f0560d 100644
--- a/bridges/LinkedInCompany.php
+++ b/bridges/LinkedInCompany.php
@@ -1,20 +1,17 @@
apple)";
- $this->maintainer = "regisenguehard";
- $this->name = "LinkedIn Company";
- $this->uri = "https://www.linkedin.com/";
- $this->description = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/apple)";
-
- $this->parameters[] = array(
- 'c'=>array(
+ public $parameters = array( array(
+ 'c'=>array(
'name'=>'Company name',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/LolibooruBridge.php b/bridges/LolibooruBridge.php
index 6689216..5bfec8c 100644
--- a/bridges/LolibooruBridge.php
+++ b/bridges/LolibooruBridge.php
@@ -1,21 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Lolibooru";
- $this->uri = "http://lolibooru.moe/";
- $this->description = "Returns images from given page and tags";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/MangareaderBridge.php b/bridges/MangareaderBridge.php
index 59cb064..8d00f29 100644
--- a/bridges/MangareaderBridge.php
+++ b/bridges/MangareaderBridge.php
@@ -2,15 +2,14 @@
define('MANGAREADER_LIMIT', 10); // The default limit
class MangareaderBridge extends BridgeAbstract{
- public function loadMetadatas() {
+ public $maintainer = "logmanoriginal";
+ public $name = "Mangareader Bridge";
+ public $uri = "http://www.mangareader.net";
+ public $description = "Returns the latest updates, popular mangas or manga updates (new chapters)";
- $this->maintainer = "logmanoriginal";
- $this->name = "Mangareader Bridge";
- $this->uri = "http://www.mangareader.net";
- $this->description = "Returns the latest updates, popular mangas or manga updates (new chapters)";
-
- $this->parameters["Get latest updates"] = array();
- $this->parameters["Get popular mangas"] = array(
+ public $parameters = array(
+ 'Get latest updates' => array(),
+ 'Get popular mangas' => array(
'category'=>array(
'name'=>'Category',
'type'=>'list',
@@ -58,8 +57,8 @@ class MangareaderBridge extends BridgeAbstract{
'exampleValue'=>'All',
'title'=>'Select your category'
)
- );
- $this->parameters["Get manga updates"] = array(
+ ),
+ 'Get manga updates' => array(
'path'=>array(
'name'=>'Path',
'required'=>true,
@@ -73,8 +72,8 @@ class MangareaderBridge extends BridgeAbstract{
'exampleValue'=>10,
'title'=>'Number of items to return [-1 returns all]'
)
- );
- }
+ )
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/MilbooruBridge.php b/bridges/MilbooruBridge.php
index 58b539f..a035202 100644
--- a/bridges/MilbooruBridge.php
+++ b/bridges/MilbooruBridge.php
@@ -1,21 +1,19 @@
maintainer = "mitsukarenai";
- $this->name = "Milbooru";
- $this->uri = "http://sheslostcontrol.net/moe/shimmie/";
- $this->description = "Returns images from given page";
+ public $maintainer = "mitsukarenai";
+ public $name = "Milbooru";
+ public $uri = "http://sheslostcontrol.net/moe/shimmie/";
+ public $description = "Returns images from given page";
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/MondeDiploBridge.php b/bridges/MondeDiploBridge.php
index 0bbab2a..5123ccd 100644
--- a/bridges/MondeDiploBridge.php
+++ b/bridges/MondeDiploBridge.php
@@ -1,12 +1,10 @@
maintainer = "Pitchoule";
- $this->name = 'Monde Diplomatique';
- $this->uri = 'http://www.monde-diplomatique.fr';
- $this->description = "Returns most recent results from MondeDiplo.";
- }
+ public $maintainer = "Pitchoule";
+ public $name = 'Monde Diplomatique';
+ public $uri = 'http://www.monde-diplomatique.fr';
+ public $description = "Returns most recent results from MondeDiplo.";
public function collectData(){
$html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request MondeDiplo. for : ' . $link);
diff --git a/bridges/MsnMondeBridge.php b/bridges/MsnMondeBridge.php
index e4af137..17a8a44 100644
--- a/bridges/MsnMondeBridge.php
+++ b/bridges/MsnMondeBridge.php
@@ -1,12 +1,10 @@
maintainer = "kranack";
- $this->name = 'MSN Actu Monde';
- $this->uri = 'http://www.msn.com/fr-fr/actualite/monde';
- $this->description = "Returns the 10 newest posts from MSN Actualités (full text)";
- }
+ public $maintainer = "kranack";
+ public $name = 'MSN Actu Monde';
+ public $uri = 'http://www.msn.com/fr-fr/actualite/monde';
+ public $description = "Returns the 10 newest posts from MSN Actualités (full text)";
private function MsnMondeExtractContent($url, &$item) {
$html2 = $this->getSimpleHTMLDOM($url);
diff --git a/bridges/MspabooruBridge.php b/bridges/MspabooruBridge.php
index 5a7f8a2..3deca86 100644
--- a/bridges/MspabooruBridge.php
+++ b/bridges/MspabooruBridge.php
@@ -1,22 +1,19 @@
maintainer = "mitsukarenai";
- $this->name = "Mspabooru";
- $this->uri = "http://mspabooru.com/";
- $this->description = "Returns images from given page";
+ public $maintainer = "mitsukarenai";
+ public $name = "Mspabooru";
+ public $uri = "http://mspabooru.com/";
+ public $description = "Returns images from given page";
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
-
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/NakedSecurityBridge.php b/bridges/NakedSecurityBridge.php
index 0ad8370..5d0fb36 100644
--- a/bridges/NakedSecurityBridge.php
+++ b/bridges/NakedSecurityBridge.php
@@ -1,12 +1,10 @@
maintainer = 'ORelio';
- $this->name = 'Naked Security';
- $this->uri = 'https://nakedsecurity.sophos.com/';
- $this->description = 'Returns the newest articles.';
- }
+ public $maintainer = 'ORelio';
+ public $name = 'Naked Security';
+ public $uri = 'https://nakedsecurity.sophos.com/';
+ public $description = 'Returns the newest articles.';
public function collectData(){
diff --git a/bridges/NasaApodBridge.php b/bridges/NasaApodBridge.php
index 2209c4d..c30eccf 100644
--- a/bridges/NasaApodBridge.php
+++ b/bridges/NasaApodBridge.php
@@ -1,14 +1,10 @@
maintainer = "corenting";
- $this->name = "NASA APOD Bridge";
- $this->uri = "http://apod.nasa.gov/apod/astropix.html";
- $this->description = "Returns the 3 latest NASA APOD pictures and explanations";
-
- }
+ public $maintainer = "corenting";
+ public $name = "NASA APOD Bridge";
+ public $uri = "http://apod.nasa.gov/apod/astropix.html";
+ public $description = "Returns the 3 latest NASA APOD pictures and explanations";
public function collectData(){
diff --git a/bridges/NeuviemeArtBridge.php b/bridges/NeuviemeArtBridge.php
index 0d7ae98..ff33fa1 100644
--- a/bridges/NeuviemeArtBridge.php
+++ b/bridges/NeuviemeArtBridge.php
@@ -1,12 +1,10 @@
maintainer = "ORelio";
- $this->name = '9ème Art Bridge';
- $this->uri = "http://www.9emeart.fr/";
- $this->description = "Returns the newest articles.";
- }
+ public $maintainer = "ORelio";
+ public $name = '9ème Art Bridge';
+ public $uri = "http://www.9emeart.fr/";
+ public $description = "Returns the newest articles.";
public function collectData(){
diff --git a/bridges/NextInpactBridge.php b/bridges/NextInpactBridge.php
index 93b3a81..1422a31 100644
--- a/bridges/NextInpactBridge.php
+++ b/bridges/NextInpactBridge.php
@@ -1,12 +1,10 @@
maintainer = "qwertygc";
- $this->name = "NextInpact Bridge";
- $this->uri = "http://www.nextinpact.com/";
- $this->description = "Returns the newest articles.";
- }
+ public $maintainer = "qwertygc";
+ public $name = "NextInpact Bridge";
+ public $uri = "http://www.nextinpact.com/";
+ public $description = "Returns the newest articles.";
private function StripCDATA($string) {
$string = str_replace('maintainer = 'ORelio';
- $this->name = 'Nextgov Bridge';
- $this->uri = 'https://www.nextgov.com/';
- $this->description = 'USA Federal technology news, best practices, and web 2.0 tools.';
-
- $this->parameters[] = array(
- 'category'=>array(
+ public $parameters = array( array(
+ 'category'=>array(
'name'=>'Category',
'type'=>'list',
'values'=>array(
- 'All'=>'all',
- 'Technology News'=>'technology-news',
- 'CIO Briefing'=>'cio-briefing',
- 'Emerging Tech'=>'emerging-tech',
- 'Cloud'=>'cloud-computing',
- 'Cybersecurity'=>'cybersecurity',
- 'Mobile'=>'mobile',
- 'Health'=>'health',
- 'Defense'=>'defense',
- 'Big Data'=>'big-data'
+ 'All'=>'all',
+ 'Technology News'=>'technology-news',
+ 'CIO Briefing'=>'cio-briefing',
+ 'Emerging Tech'=>'emerging-tech',
+ 'Cloud'=>'cloud-computing',
+ 'Cybersecurity'=>'cybersecurity',
+ 'Mobile'=>'mobile',
+ 'Health'=>'health',
+ 'Defense'=>'defense',
+ 'Big Data'=>'big-data'
)
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/NiceMatinBridge.php b/bridges/NiceMatinBridge.php
index d56fc27..d01ef53 100644
--- a/bridges/NiceMatinBridge.php
+++ b/bridges/NiceMatinBridge.php
@@ -1,12 +1,10 @@
maintainer = "pit-fgfjiudghdf";
- $this->name = "NiceMatin";
- $this->uri = "http://www.nicematin.com/";
- $this->description = "Returns the 10 newest posts from NiceMatin (full text)";
- }
+ public $maintainer = "pit-fgfjiudghdf";
+ public $name = "NiceMatin";
+ public $uri = "http://www.nicematin.com/";
+ public $description = "Returns the 10 newest posts from NiceMatin (full text)";
private function NiceMatinExtractContent($url) {
$html = $this->getSimpleHTMLDOM($url);
diff --git a/bridges/NovelUpdatesBridge.php b/bridges/NovelUpdatesBridge.php
index 84da2a9..b389dac 100644
--- a/bridges/NovelUpdatesBridge.php
+++ b/bridges/NovelUpdatesBridge.php
@@ -1,19 +1,16 @@
maintainer = "albirew";
- $this->name = "Novel Updates";
- $this->uri = "http://www.novelupdates.com/";
- $this->description = "Returns releases from Novel Updates";
- $this->parameters[] = array(
- 'n'=>array(
+ public $maintainer = "albirew";
+ public $name = "Novel Updates";
+ public $uri = "http://www.novelupdates.com/";
+ public $description = "Returns releases from Novel Updates";
+ public $parameters = array( array(
+ 'n'=>array(
'name'=>'Novel URL',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/NumeramaBridge.php b/bridges/NumeramaBridge.php
index d9ae083..77129bd 100644
--- a/bridges/NumeramaBridge.php
+++ b/bridges/NumeramaBridge.php
@@ -1,14 +1,10 @@
maintainer = 'mitsukarenai';
- $this->name = 'Numerama';
- $this->uri = 'http://www.numerama.com/';
- $this->description = 'Returns the 5 newest posts from Numerama (full text)';
-
- }
+ public $maintainer = 'mitsukarenai';
+ public $name = 'Numerama';
+ public $uri = 'http://www.numerama.com/';
+ public $description = 'Returns the 5 newest posts from Numerama (full text)';
public function collectData(){
diff --git a/bridges/OpenClassroomsBridge.php b/bridges/OpenClassroomsBridge.php
index 8f26275..d878709 100644
--- a/bridges/OpenClassroomsBridge.php
+++ b/bridges/OpenClassroomsBridge.php
@@ -1,32 +1,28 @@
maintainer = "sebsauvage";
- $this->name = "OpenClassrooms Bridge";
- $this->uri = "https://openclassrooms.com/";
- $this->description = "Returns latest tutorials from OpenClassrooms.";
-
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'Catégorie',
'type'=>'list',
'values'=>array(
- 'Arts & Culture'=>'arts',
- 'Code'=>'code',
- 'Design'=>'design',
- 'Entreprise'=>'business',
- 'Numérique'=>'digital',
- 'Sciences'=>'sciences',
- 'Sciences Humaines'=>'humainities',
- 'Systèmes d\'information'=>'it',
- 'Autres'=>'others'
+ 'Arts & Culture'=>'arts',
+ 'Code'=>'code',
+ 'Design'=>'design',
+ 'Entreprise'=>'business',
+ 'Numérique'=>'digital',
+ 'Sciences'=>'sciences',
+ 'Sciences Humaines'=>'humainities',
+ 'Systèmes d\'information'=>'it',
+ 'Autres'=>'others'
)
- )
- );
- }
+ )
+ ));
public function collectData(){
diff --git a/bridges/ParuVenduImmoBridge.php b/bridges/ParuVenduImmoBridge.php
index bb0a77b..cd62099 100644
--- a/bridges/ParuVenduImmoBridge.php
+++ b/bridges/ParuVenduImmoBridge.php
@@ -1,31 +1,27 @@
maintainer = "polo2ro";
- $this->name = "Paru Vendu Immobilier";
- $this->uri = "http://www.paruvendu.fr";
- $this->description = "Returns the ads from the first page of search result.";
+ public $maintainer = "polo2ro";
+ public $name = "Paru Vendu Immobilier";
+ public $uri = "http://www.paruvendu.fr";
+ public $description = "Returns the ads from the first page of search result.";
- $this->parameters[] = array(
- 'minarea'=>array(
+ public $parameters = array( array(
+ 'minarea'=>array(
'name'=>'Minimal surface m²',
'type'=>'number'
- ),
- 'maxprice'=>array(
+ ),
+ 'maxprice'=>array(
'name'=>'Max price',
'type'=>'number'
- ),
- 'pa'=>array(
+ ),
+ 'pa'=>array(
'name'=>'Country code',
'exampleValue'=>'FR'
- ),
- 'lo'=>array('name'=>'department numbers or postal codes, comma-separated')
- );
- }
+ ),
+ 'lo'=>array('name'=>'department numbers or postal codes, comma-separated')
+ ));
public function collectData()
{
diff --git a/bridges/PickyWallpapersBridge.php b/bridges/PickyWallpapersBridge.php
index b35c9c3..380a885 100644
--- a/bridges/PickyWallpapersBridge.php
+++ b/bridges/PickyWallpapersBridge.php
@@ -5,28 +5,25 @@ class PickyWallpapersBridge extends BridgeAbstract {
private $subcategory;
private $resolution;
- public function loadMetadatas() {
+ public $maintainer = "nel50n";
+ public $name = "PickyWallpapers Bridge";
+ public $uri = "http://www.pickywallpapers.com/";
+ public $description = "Returns the latests wallpapers from PickyWallpapers";
- $this->maintainer = "nel50n";
- $this->name = "PickyWallpapers Bridge";
- $this->uri = "http://www.pickywallpapers.com/";
- $this->description = "Returns the latests wallpapers from PickyWallpapers";
-
- $this->parameters[] = array(
- 'c'=>array('name'=>'category'),
- 's'=>array('name'=>'subcategory'),
- 'm'=>array(
+ public $parameters = array( array(
+ 'c'=>array('name'=>'category'),
+ 's'=>array('name'=>'subcategory'),
+ 'm'=>array(
'name'=>'Max number of wallpapers',
'type'=>'number'
- ),
- 'r'=>array(
+ ),
+ 'r'=>array(
'name'=>'resolution',
'exampleValue'=>'1920x1200, 1680x1050,…',
'pattern'=>'[0-9]{3,4}x[0-9]{3,4}'
- )
- );
+ )
+ ));
- }
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/PinterestBridge.php b/bridges/PinterestBridge.php
index f82c7c7..b3ddd8e 100644
--- a/bridges/PinterestBridge.php
+++ b/bridges/PinterestBridge.php
@@ -5,22 +5,20 @@ class PinterestBridge extends BridgeAbstract{
private $board;
private $query;
- public function loadMetadatas() {
+ public $maintainer = "pauder";
+ public $name = "Pinterest Bridge";
+ public $uri = "http://www.pinterest.com";
+ public $description = "Returns the newest images on a board";
- $this->maintainer = "pauder";
- $this->name = "Pinterest Bridge";
- $this->uri = "http://www.pinterest.com";
- $this->description = "Returns the newest images on a board";
-
- $this->parameters["By username and board"] = array(
- 'u'=>array('name'=>'username'),
- 'b'=>array('name'=>'board')
- );
-
- $this->parameters["From search"] = array(
- 'q'=>array('name'=>'Keyword')
- );
- }
+ public $parameters = array(
+ 'By username and board' => array(
+ 'u'=>array('name'=>'username'),
+ 'b'=>array('name'=>'board')
+ ),
+ 'From search' => array(
+ 'q'=>array('name'=>'Keyword')
+ )
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/PlanetLibreBridge.php b/bridges/PlanetLibreBridge.php
index 02e9535..bfafb48 100644
--- a/bridges/PlanetLibreBridge.php
+++ b/bridges/PlanetLibreBridge.php
@@ -1,12 +1,10 @@
maintainer = "pit-fgfjiudghdf";
- $this->name = "PlanetLibre";
- $this->uri = "http://www.planet-libre.org";
- $this->description = "Returns the 5 newest posts from PlanetLibre (full text)";
- }
+ public $maintainer = "pit-fgfjiudghdf";
+ public $name = "PlanetLibre";
+ public $uri = "http://www.planet-libre.org";
+ public $description = "Returns the 5 newest posts from PlanetLibre (full text)";
private function PlanetLibreExtractContent($url){
$html2 = $this->getSimpleHTMLDOM($url);
diff --git a/bridges/ProjectMGameBridge.php b/bridges/ProjectMGameBridge.php
index b6dacbd..b7130a2 100644
--- a/bridges/ProjectMGameBridge.php
+++ b/bridges/ProjectMGameBridge.php
@@ -1,14 +1,10 @@
maintainer = "corenting";
- $this->name = "Project M Game Bridge";
- $this->uri = "http://projectmgame.com/en/";
- $this->description = "Returns the newest articles.";
-
- }
+ public $maintainer = "corenting";
+ public $name = "Project M Game Bridge";
+ public $uri = "http://projectmgame.com/en/";
+ public $description = "Returns the newest articles.";
public function collectData(){
diff --git a/bridges/RTBFBridge.php b/bridges/RTBFBridge.php
index 561bcc5..c669bc9 100644
--- a/bridges/RTBFBridge.php
+++ b/bridges/RTBFBridge.php
@@ -1,19 +1,17 @@
name = "RTBF Bridge";
- $this->uri = "http://www.rtbf.be/auvio/emissions";
- $this->description = "Returns the newest RTBF videos by series ID";
- $this->maintainer = "Frenzie";
+ public $name = "RTBF Bridge";
+ public $uri = "http://www.rtbf.be/auvio/emissions";
+ public $description = "Returns the newest RTBF videos by series ID";
+ public $maintainer = "Frenzie";
- $this->parameters[] = array(
- 'c'=>array(
+ public $parameters = array( array(
+ 'c'=>array(
'name'=>'series id',
'exampleValue'=>9500,
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/Releases3DSBridge.php b/bridges/Releases3DSBridge.php
index fb85fcb..25ba50b 100644
--- a/bridges/Releases3DSBridge.php
+++ b/bridges/Releases3DSBridge.php
@@ -1,14 +1,10 @@
maintainer = "ORelio";
- $this->name = "3DS Scene Releases";
- $this->uri = "http://www.3dsdb.com/";
- $this->description = "Returns the newest scene releases.";
-
- }
+ public $maintainer = "ORelio";
+ public $name = "3DS Scene Releases";
+ public $uri = "http://www.3dsdb.com/";
+ public $description = "Returns the newest scene releases.";
public function collectData(){
diff --git a/bridges/ReporterreBridge.php b/bridges/ReporterreBridge.php
index e310344..8596942 100644
--- a/bridges/ReporterreBridge.php
+++ b/bridges/ReporterreBridge.php
@@ -1,12 +1,10 @@
maintainer = "nyutag";
- $this->name = "Reporterre Bridge";
- $this->uri = "http://www.reporterre.net/";
- $this->description = "Returns the newest articles.";
- }
+ public $maintainer = "nyutag";
+ public $name = "Reporterre Bridge";
+ public $uri = "http://www.reporterre.net/";
+ public $description = "Returns the newest articles.";
private function ExtractContentReporterre($url) {
$html2 = $this->getSimpleHTMLDOM($url);
diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php
index 39c6c4f..978223f 100644
--- a/bridges/Rue89Bridge.php
+++ b/bridges/Rue89Bridge.php
@@ -1,14 +1,10 @@
maintainer = "pit-fgfjiudghdf";
- $this->name = "Rue89";
- $this->uri = "http://rue89.nouvelobs.com/";
- $this->description = "Returns the 5 newest posts from Rue89 (full text)";
-
- }
+ public $maintainer = "pit-fgfjiudghdf";
+ public $name = "Rue89";
+ public $uri = "http://rue89.nouvelobs.com/";
+ public $description = "Returns the 5 newest posts from Rue89 (full text)";
private function rue89getDatas($url){
diff --git a/bridges/Rule34Bridge.php b/bridges/Rule34Bridge.php
index 12c6925..5a0ebf8 100644
--- a/bridges/Rule34Bridge.php
+++ b/bridges/Rule34Bridge.php
@@ -1,22 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Rule34";
- $this->uri = "http://rule34.xxx/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
-
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/Rule34pahealBridge.php b/bridges/Rule34pahealBridge.php
index 76605c6..2c9b3da 100644
--- a/bridges/Rule34pahealBridge.php
+++ b/bridges/Rule34pahealBridge.php
@@ -1,21 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Rule34paheal";
- $this->uri = "http://rule34.paheal.net/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
diff --git a/bridges/SafebooruBridge.php b/bridges/SafebooruBridge.php
index a6d9891..dc4fed7 100644
--- a/bridges/SafebooruBridge.php
+++ b/bridges/SafebooruBridge.php
@@ -1,22 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Safebooru";
- $this->uri = "http://safebooru.org/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
-
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/SakugabooruBridge.php b/bridges/SakugabooruBridge.php
index 2a38601..41ad516 100644
--- a/bridges/SakugabooruBridge.php
+++ b/bridges/SakugabooruBridge.php
@@ -1,22 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Sakugabooru";
- $this->uri = "http://sakuga.yshi.org/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
-
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/ScmbBridge.php b/bridges/ScmbBridge.php
index c1d6031..9e5997e 100644
--- a/bridges/ScmbBridge.php
+++ b/bridges/ScmbBridge.php
@@ -1,14 +1,10 @@
maintainer = "Astalaseven";
- $this->name = "Se Coucher Moins Bête Bridge";
- $this->uri = "http://secouchermoinsbete.fr/";
- $this->description = "Returns the newest anecdotes.";
-
- }
+ public $maintainer = "Astalaseven";
+ public $name = "Se Coucher Moins Bête Bridge";
+ public $uri = "http://secouchermoinsbete.fr/";
+ public $description = "Returns the newest anecdotes.";
public function collectData(){
$html = '';
diff --git a/bridges/ScoopItBridge.php b/bridges/ScoopItBridge.php
index 6a233d4..c9a8971 100644
--- a/bridges/ScoopItBridge.php
+++ b/bridges/ScoopItBridge.php
@@ -1,21 +1,17 @@
maintainer = "Pitchoule";
- $this->name = "ScoopIt";
- $this->uri = "http://www.scoop.it";
- $this->description = "Returns most recent results from ScoopIt.";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'keyword',
'required'=>true
- )
- );
-
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/SensCritiqueBridge.php b/bridges/SensCritiqueBridge.php
index 0e44bdc..c1d6986 100644
--- a/bridges/SensCritiqueBridge.php
+++ b/bridges/SensCritiqueBridge.php
@@ -1,41 +1,37 @@
maintainer = "kranack";
- $this->name = "Sens Critique";
- $this->uri = "http://www.senscritique.com";
- $this->description = "Sens Critique news";
-
- $this->parameters[] = array(
- 'm'=>array(
+ public $parameters = array( array(
+ 'm'=>array(
'name'=>'Movies',
'type'=>'checkbox'
- ),
- 's'=>array(
+ ),
+ 's'=>array(
'name'=>'Series',
'type'=>'checkbox'
- ),
- 'g'=>array(
+ ),
+ 'g'=>array(
'name'=>'Video Games',
'type'=>'checkbox'
- ),
- 'b'=>array(
+ ),
+ 'b'=>array(
'name'=>'Books',
'type'=>'checkbox'
- ),
- 'bd'=>array(
+ ),
+ 'bd'=>array(
'name'=>'BD',
'type'=>'checkbox'
- ),
- 'mu'=>array(
+ ),
+ 'mu'=>array(
'name'=>'Music',
'type'=>'checkbox'
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/Sexactu.php b/bridges/Sexactu.php
index 839f6dd..f6647b1 100644
--- a/bridges/Sexactu.php
+++ b/bridges/Sexactu.php
@@ -1,14 +1,10 @@
maintainer = "Riduidel";
- $this->name = "Sexactu";
- $this->uri = "http://www.gqmagazine.fr";
- $this->description = "Sexactu via rss-bridge";
-
- }
+ public $maintainer = "Riduidel";
+ public $name = "Sexactu";
+ public $uri = "http://www.gqmagazine.fr";
+ public $description = "Sexactu via rss-bridge";
public function collectData(){
$find = array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'novembre', 'décembre');
diff --git a/bridges/ShanaprojectBridge.php b/bridges/ShanaprojectBridge.php
index 5abc31f..6c117e3 100644
--- a/bridges/ShanaprojectBridge.php
+++ b/bridges/ShanaprojectBridge.php
@@ -1,17 +1,15 @@
maintainer = 'logmanoriginal';
- $this->name = 'Shanaproject Bridge';
- $this->uri = 'http://www.shanaproject.com';
- $this->description = 'Returns a list of anime from the current Season Anime List';
- }
+ public $maintainer = 'logmanoriginal';
+ public $name = 'Shanaproject Bridge';
+ public $uri = 'http://www.shanaproject.com';
+ public $description = 'Returns a list of anime from the current Season Anime List';
// Returns an html object for the Season Anime List (latest season)
private function LoadSeasonAnimeList(){
// First we need to find the URI to the latest season from the 'seasons' page searching for 'Season Anime List'
$html = $this->getSimpleHTMLDOM($this->getURI() . '/seasons');
- if(!$html)
+ if(!$html)
$this->returnServerError('Could not load \'seasons\' page!');
$season = $html->find('div.follows_menu/a', 1);
@@ -21,7 +19,7 @@ class ShanaprojectBridge extends BridgeAbstract {
$html = $this->getSimpleHTMLDOM($this->getURI() . $season->href);
if(!$html)
$this->returnServerError('Could not load \'Season Anime List\' from \'' . $season->innertext . '\'!');
-
+
return $html;
}
@@ -72,7 +70,7 @@ class ShanaprojectBridge extends BridgeAbstract {
if(preg_match("/url\(\/\/([^\)]+)\)/i", $anime->parent->style, $matches))
return $matches[1];
-
+
$this->returnServerError('Could not extract background image!');
}
@@ -97,7 +95,7 @@ class ShanaprojectBridge extends BridgeAbstract {
$animes = $html->find('div.header_display_box_info');
if(!$animes)
$this->returnServerError('Could not find anime headers!');
-
+
foreach($animes as $anime){
$item = array();
$item['title'] = $this->ExtractAnimeTitle($anime);
diff --git a/bridges/SiliconBridge.php b/bridges/SiliconBridge.php
index be06468..f821bcf 100644
--- a/bridges/SiliconBridge.php
+++ b/bridges/SiliconBridge.php
@@ -1,14 +1,10 @@
maintainer = "ORelio";
- $this->name = 'Silicon Bridge';
- $this->uri = 'http://www.silicon.fr/';
- $this->description = "Returns the newest articles.";
-
- }
+ public $maintainer = "ORelio";
+ public $name = 'Silicon Bridge';
+ public $uri = 'http://www.silicon.fr/';
+ public $description = "Returns the newest articles.";
public function collectData(){
diff --git a/bridges/SoundcloudBridge.php b/bridges/SoundcloudBridge.php
index b064be1..46f4529 100644
--- a/bridges/SoundcloudBridge.php
+++ b/bridges/SoundcloudBridge.php
@@ -1,21 +1,17 @@
maintainer = "kranack";
- $this->name = "Soundcloud Bridge";
- $this->uri = "http://www.soundcloud.com/";
- $this->description = "Returns 10 newest music from user profile";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'username',
'required'=>true
- )
- );
-
- }
+ )
+ ));
const CLIENT_ID = '0aca19eae3843844e4053c6d8fdb7875';
diff --git a/bridges/StripeAPIChangeLogBridge.php b/bridges/StripeAPIChangeLogBridge.php
index 107a9d3..6d62597 100644
--- a/bridges/StripeAPIChangeLogBridge.php
+++ b/bridges/StripeAPIChangeLogBridge.php
@@ -1,18 +1,9 @@
maintainer = 'Pierre Mazière';
- $this->name = 'Stripe API Changelog';
- $this->uri = 'https://stripe.com/docs/upgrades';
- $this->description = 'Returns the changes made to the stripe.com API';
- }
+ public $maintainer = 'Pierre Mazière';
+ public $name = 'Stripe API Changelog';
+ public $uri = 'https://stripe.com/docs/upgrades';
+ public $description = 'Returns the changes made to the stripe.com API';
public function collectData(){
$html = $this->getSimpleHTMLDOM('https://stripe.com/docs/upgrades')
diff --git a/bridges/SuperbWallpapersBridge.php b/bridges/SuperbWallpapersBridge.php
index a5146da..3e38a2f 100644
--- a/bridges/SuperbWallpapersBridge.php
+++ b/bridges/SuperbWallpapersBridge.php
@@ -4,27 +4,22 @@ class SuperbWallpapersBridge extends BridgeAbstract {
private $category;
private $resolution;
- public function loadMetadatas() {
+ public $maintainer = "nel50n";
+ public $name = "Superb Wallpapers Bridge";
+ public $uri = "http://www.superbwallpapers.com/";
+ public $description = "Returns the latests wallpapers from SuperbWallpapers";
- $this->maintainer = "nel50n";
- $this->name = "Superb Wallpapers Bridge";
- $this->uri = "http://www.superbwallpapers.com/";
- $this->description = "Returns the latests wallpapers from SuperbWallpapers";
-
- $this->parameters[] = array(
- 'c'=>array('name'=>'category'),
- 'm'=>array(
+ public $parameters = array( array(
+ 'c'=>array('name'=>'category'),
+ 'm'=>array(
'name'=>'Max number of wallpapers',
'type'=>'number'
- ),
- 'r'=>array(
+ ),
+ 'r'=>array(
'name'=>'resolution',
'exampleValue'=>'1920x1200, 1680x1050,…'
- )
- );
-
- }
-
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/T411Bridge.php b/bridges/T411Bridge.php
index 6791bfa..92fa841 100644
--- a/bridges/T411Bridge.php
+++ b/bridges/T411Bridge.php
@@ -1,20 +1,17 @@
Use url part after "?" mark when using their search engine.';
- $this->maintainer = 'ORelio';
- $this->name = 'T411 Bridge';
- $this->uri = 'https://t411.ch/';
- $this->description = 'Returns the 10 newest torrents with specified search terms
Use url part after "?" mark when using their search engine.';
-
- $this->parameters[] = array(
- 'search'=>array(
+ public $parameters = array( array(
+ 'search'=>array(
'name'=>'Search criteria',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/TagBoardBridge.php b/bridges/TagBoardBridge.php
index a9418db..c1c3650 100644
--- a/bridges/TagBoardBridge.php
+++ b/bridges/TagBoardBridge.php
@@ -1,21 +1,17 @@
maintainer = "Pitchoule";
- $this->name = "TagBoard";
- $this->uri = "http://www.TagBoard.com";
- $this->description = "Returns most recent results from TagBoard.";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'keyword',
'required'=>true
- )
- );
-
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/TbibBridge.php b/bridges/TbibBridge.php
index a7e0a72..fdc4c09 100644
--- a/bridges/TbibBridge.php
+++ b/bridges/TbibBridge.php
@@ -1,21 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Tbib";
- $this->uri = "http://tbib.org/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/TheCodingLoveBridge.php b/bridges/TheCodingLoveBridge.php
index aae75c0..b42690f 100644
--- a/bridges/TheCodingLoveBridge.php
+++ b/bridges/TheCodingLoveBridge.php
@@ -1,14 +1,10 @@
maintainer = "superbaillot.net";
- $this->name = "The Coding Love";
- $this->uri = "http://thecodinglove.com/";
- $this->description = "The Coding Love";
-
- }
+ public $maintainer = "superbaillot.net";
+ public $name = "The Coding Love";
+ public $uri = "http://thecodinglove.com/";
+ public $description = "The Coding Love";
public function collectData(){
$html = $this->getSimpleHTMLDOM('http://thecodinglove.com/') or $this->returnServerError('Could not request The Coding Love.');
diff --git a/bridges/TheHackerNewsBridge.php b/bridges/TheHackerNewsBridge.php
index 932efe1..baf5594 100644
--- a/bridges/TheHackerNewsBridge.php
+++ b/bridges/TheHackerNewsBridge.php
@@ -1,14 +1,10 @@
maintainer = 'ORelio';
- $this->name = 'The Hacker News Bridge';
- $this->uri = 'https://thehackernews.com/';
- $this->description = 'Cyber Security, Hacking, Technology News.';
-
- }
+ public $maintainer = 'ORelio';
+ public $name = 'The Hacker News Bridge';
+ public $uri = 'https://thehackernews.com/';
+ public $description = 'Cyber Security, Hacking, Technology News.';
public function collectData(){
diff --git a/bridges/TheOatMealBridge.php b/bridges/TheOatMealBridge.php
index c6ab0cd..f8f2584 100644
--- a/bridges/TheOatMealBridge.php
+++ b/bridges/TheOatMealBridge.php
@@ -4,14 +4,10 @@ define("THE_OATMEAL_RSS", "http://feeds.feedburner.com/oatmealfeed");
class TheOatmealBridge extends RssExpander{
- public function loadMetadatas() {
-
- $this->maintainer = "Riduidel";
- $this->name = "The Oatmeal";
- $this->uri = "http://theoatmeal.com/";
- $this->description = "Un petit site de dessins assez rigolos";
-
- }
+ public $maintainer = "Riduidel";
+ public $name = "The Oatmeal";
+ public $uri = "http://theoatmeal.com/";
+ public $description = "Un petit site de dessins assez rigolos";
public function collectData(){
parent::collectExpandableDatas(THE_OATMEAL_RSS);
diff --git a/bridges/ThePirateBayBridge.php b/bridges/ThePirateBayBridge.php
index 5b995e2..1d70b14 100644
--- a/bridges/ThePirateBayBridge.php
+++ b/bridges/ThePirateBayBridge.php
@@ -1,20 +1,17 @@
maintainer = "mitsukarenai";
- $this->name = "The Pirate Bay";
- $this->uri = "https://thepiratebay.org/";
- $this->description = "Returns results for the keywords. You can put several list of keywords by separating them with a semicolon (e.g. \"one show;another show\")";
-
- $this->parameters[] = array(
- 'q'=>array(
+ public $parameters = array( array(
+ 'q'=>array(
'name'=>'keywords, separated by semicolons',
'exampleValue'=>'first list;second list;…'
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/TwitchApiBridge.php b/bridges/TwitchApiBridge.php
index f7bc541..5852ad9 100644
--- a/bridges/TwitchApiBridge.php
+++ b/bridges/TwitchApiBridge.php
@@ -3,14 +3,13 @@ define('TWITCH_LIMIT', 10); // The default limit
class TwitchApiBridge extends BridgeAbstract{
- public function loadMetadatas() {
+ public $maintainer = "logmanoriginal";
+ public $name = "Twitch API Bridge";
+ public $uri = "http://www.twitch.tv";
+ public $description = "Returns the newest broadcasts or highlights by channel name using the Twitch API (v3)";
- $this->maintainer = "logmanoriginal";
- $this->name = "Twitch API Bridge";
- $this->uri = "http://www.twitch.tv";
- $this->description = "Returns the newest broadcasts or highlights by channel name using the Twitch API (v3)";
-
- $this->parameters['Show Channel Videos']=array(
+ public $parameters = array(
+ 'Show Channel Videos'=>array(
'channel'=>array(
'name'=>'Channel',
'required'=>true
@@ -23,8 +22,8 @@ class TwitchApiBridge extends BridgeAbstract{
'name'=>'Limit',
'type'=>'number'
)
- );
- }
+ )
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php
index 9404824..f107c35 100644
--- a/bridges/TwitterBridge.php
+++ b/bridges/TwitterBridge.php
@@ -1,44 +1,38 @@
maintainer = "mitsukarenai";
- $this->name = "Twitter Bridge";
- $this->uri = "https://twitter.com/";
- $this->description = "Returns tweets by keyword/hashtag or user name";
-
- $this->parameters["global"] = array(
- 'nopic'=>array(
- 'name'=>'Hide profile pictures',
- 'type'=>'checkbox',
- 'title'=>'Activate to hide profile pictures in content'
- )
- );
-
- $this->parameters["By keyword or hashtag"] = array(
- 'q'=>array(
- 'name'=>'Keyword or #hashtag',
- 'required'=>true,
- 'exampleValue'=>'rss-bridge, #rss-bridge',
- 'title'=>'Insert a keyword or hashtag'
- )
- );
-
- $this->parameters["By username"] = array(
- 'u'=>array(
- 'name'=>'username',
- 'required'=>true,
- 'exampleValue'=>'sebsauvage',
- 'title'=>'Insert a user name'
- ),
- 'norep'=>array(
- 'name'=>'Without replies',
- 'type'=>'checkbox',
- 'title'=>'Only return initial tweets'
- )
- );
- }
+ public $name='Twitter Bridge';
+ public $uri='https://twitter.com';
+ public $description='returns tweets';
+ public $parameters=array(
+ 'global'=>array(
+ 'nopic'=>array(
+ 'name'=>'Hide profile pictures',
+ 'type'=>'checkbox',
+ 'title'=>'Activate to hide profile pictures in content'
+ )
+ ),
+ 'By keyword or hashtag' => array(
+ 'q'=>array(
+ 'name'=>'Keyword or #hashtag',
+ 'required'=>true,
+ 'exampleValue'=>'rss-bridge, #rss-bridge',
+ 'title'=>'Insert a keyword or hashtag'
+ )
+ ),
+ 'By username' => array(
+ 'u'=>array(
+ 'name'=>'username',
+ 'required'=>true,
+ 'exampleValue'=>'sebsauvage',
+ 'title'=>'Insert a user name'
+ ),
+ 'norep'=>array(
+ 'name'=>'Without replies',
+ 'type'=>'checkbox',
+ 'title'=>'Only return initial tweets'
+ )
+ )
+ );
public function getName(){
switch($this->queriedContext){
diff --git a/bridges/UnsplashBridge.php b/bridges/UnsplashBridge.php
index 3295458..e984d52 100644
--- a/bridges/UnsplashBridge.php
+++ b/bridges/UnsplashBridge.php
@@ -1,14 +1,12 @@
maintainer = "nel50n";
- $this->name = "Unsplash Bridge";
- $this->uri = "http://unsplash.com/";
- $this->description = "Returns the latests photos from Unsplash";
-
- $this->parameters[] = array(
+ public $parameters = array( array(
'm'=>array(
'name'=>'Max number of photos',
'type'=>'number'
@@ -21,8 +19,7 @@ class UnsplashBridge extends BridgeAbstract {
'name'=>'JPEG quality',
'type'=>'number'
)
- );
- }
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/ViadeoCompany.php b/bridges/ViadeoCompany.php
index 0568d59..e7aecbb 100644
--- a/bridges/ViadeoCompany.php
+++ b/bridges/ViadeoCompany.php
@@ -1,20 +1,17 @@
apple)";
- $this->maintainer = "regisenguehard";
- $this->name = "Viadeo Company";
- $this->uri = "https://www.viadeo.com/";
- $this->description = "Returns most recent actus from Company on Viadeo. (http://www.viadeo.com/fr/company/apple)";
-
- $this->parameters[] = array(
- 'c'=>array(
+ public $parameters = array( array(
+ 'c'=>array(
'name'=>'Company name',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/VineBridge.php b/bridges/VineBridge.php
index 5865262..de27a0a 100644
--- a/bridges/VineBridge.php
+++ b/bridges/VineBridge.php
@@ -1,20 +1,17 @@
maintainer = "ckiw";
- $this->name = "Vine bridge";
- $this->uri = "http://vine.co/";
- $this->description = "Returns the latests vines from vine user page";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'User id',
'required'=>true
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php
index b5ddb35..acc88b6 100644
--- a/bridges/VkBridge.php
+++ b/bridges/VkBridge.php
@@ -2,18 +2,18 @@
class VkBridge extends BridgeAbstract {
- public function loadMetadatas() {
- $this->maintainer = "ahiles3005";
- $this->name = "VK.com";
- $this->uri = "http://www.vk.com/";
- $this->description = "Working with open pages";
- $this->parameters["Url on page group or user"] = array(
- 'u'=>array(
- 'name'=>'Url',
- 'required'=>true
- )
- );
- }
+ public $maintainer = "ahiles3005";
+ public $name = "VK.com";
+ public $uri = "http://www.vk.com/";
+ public $description = "Working with open pages";
+ public $parameters=array(
+ 'Url on page group or user' => array(
+ 'u'=>array(
+ 'name'=>'Url',
+ 'required'=>true
+ )
+ )
+ );
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/WallpaperStopBridge.php b/bridges/WallpaperStopBridge.php
index d0bdad2..5562805 100644
--- a/bridges/WallpaperStopBridge.php
+++ b/bridges/WallpaperStopBridge.php
@@ -5,26 +5,23 @@ class WallpaperStopBridge extends BridgeAbstract {
private $subcategory;
private $resolution;
- public function loadMetadatas() {
+ public $maintainer = "nel50n";
+ public $name = "WallpaperStop Bridge";
+ public $uri = "http://www.wallpaperstop.com/";
+ public $description = "Returns the latests wallpapers from WallpaperStop";
- $this->maintainer = "nel50n";
- $this->name = "WallpaperStop Bridge";
- $this->uri = "http://www.wallpaperstop.com/";
- $this->description = "Returns the latests wallpapers from WallpaperStop";
-
- $this->parameters[] = array(
- 'c'=>array('name'=>'Category'),
- 's'=>array('name'=>'subcategory'),
- 'm'=>array(
+ public $parameters = array( array(
+ 'c'=>array('name'=>'Category'),
+ 's'=>array('name'=>'subcategory'),
+ 'm'=>array(
'name'=>'Max number of wallpapers',
'type'=>'number'
- ),
- 'r'=>array(
+ ),
+ 'r'=>array(
'name'=>'resolution',
'exampleValue'=>'1920x1200, 1680x1050,…',
- )
- );
- }
+ )
+ ));
public function collectData(){
diff --git a/bridges/WeLiveSecurityBridge.php b/bridges/WeLiveSecurityBridge.php
index dc7c2b5..359a2aa 100644
--- a/bridges/WeLiveSecurityBridge.php
+++ b/bridges/WeLiveSecurityBridge.php
@@ -1,12 +1,10 @@
maintainer = 'ORelio';
- $this->name = 'We Live Security';
- $this->uri = 'http://www.welivesecurity.com/';
- $this->description = 'Returns the newest articles.';
- }
+ public $maintainer = 'ORelio';
+ public $name = 'We Live Security';
+ public $uri = 'http://www.welivesecurity.com/';
+ public $description = 'Returns the newest articles.';
public function collectData(){
diff --git a/bridges/WhydBridge.php b/bridges/WhydBridge.php
index 882882c..fa2f634 100644
--- a/bridges/WhydBridge.php
+++ b/bridges/WhydBridge.php
@@ -1,21 +1,17 @@
maintainer = "kranack";
- $this->name = "Whyd Bridge";
- $this->uri = "http://www.whyd.com/";
- $this->description = "Returns 10 newest music from user profile";
-
- $this->parameters[] = array(
- 'u'=>array(
+ public $parameters = array( array(
+ 'u'=>array(
'name'=>'username/id',
'required'=>true
- )
- );
-
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/WikipediaBridge.php b/bridges/WikipediaBridge.php
index d12f6ed..0fe5309 100644
--- a/bridges/WikipediaBridge.php
+++ b/bridges/WikipediaBridge.php
@@ -4,52 +4,50 @@ define('WIKIPEDIA_SUBJECT_TFA', 0); // Today's featured article
define('WIKIPEDIA_SUBJECT_DYK', 1); // Did you know...
class WikipediaBridge extends BridgeAbstract{
- public function loadMetadatas(){
- $this->maintainer = 'logmanoriginal';
- $this->name = 'Wikipedia bridge for many languages';
- $this->uri = 'https://www.wikipedia.org/';
- $this->description = 'Returns articles for a language of your choice';
+ public $maintainer = 'logmanoriginal';
+ public $name = 'Wikipedia bridge for many languages';
+ public $uri = 'https://www.wikipedia.org/';
+ public $description = 'Returns articles for a language of your choice';
- $this->parameters[] = array(
- 'language'=>array(
- 'name'=>'Language',
- 'type'=>'list',
- 'required'=>true,
- 'title'=>'Select your language',
- 'exampleValue'=>'English',
- 'values'=>array(
- 'English'=>'en',
- 'Dutch'=>'nl',
- 'Esperanto'=>'eo',
- 'French'=>'fr',
- 'German'=>'de',
- )
- ),
- 'subject'=>array(
- 'name'=>'Subject',
- 'type'=>'list',
- 'required'=>true,
- 'title'=>'What subject are you interested in?',
- 'exampleValue'=>'Today\'s featured article',
- 'values'=>array(
- 'Today\'s featured article'=>'tfa',
- 'Did you know…'=>'dyk'
- )
- ),
- 'fullarticle'=>array(
- 'name'=>'Load full article',
- 'type'=>'checkbox',
- 'title'=>'Activate to always load the full article'
- )
- );
- }
+ public $parameters = array( array(
+ 'language'=>array(
+ 'name'=>'Language',
+ 'type'=>'list',
+ 'required'=>true,
+ 'title'=>'Select your language',
+ 'exampleValue'=>'English',
+ 'values'=>array(
+ 'English'=>'en',
+ 'Dutch'=>'nl',
+ 'Esperanto'=>'eo',
+ 'French'=>'fr',
+ 'German'=>'de',
+ )
+ ),
+ 'subject'=>array(
+ 'name'=>'Subject',
+ 'type'=>'list',
+ 'required'=>true,
+ 'title'=>'What subject are you interested in?',
+ 'exampleValue'=>'Today\'s featured article',
+ 'values'=>array(
+ 'Today\'s featured article'=>'tfa',
+ 'Did you know…'=>'dyk'
+ )
+ ),
+ 'fullarticle'=>array(
+ 'name'=>'Load full article',
+ 'type'=>'checkbox',
+ 'title'=>'Activate to always load the full article'
+ )
+ ));
- public function getURI(){
+ public function getURI(){
$params=$this->parameters[$this->queriedContext];
return 'https://' . strtolower($params['language']['value']) . '.wikipedia.org';
}
- public function getName(){
+ public function getName(){
$params=$this->parameters[$this->queriedContext];
switch($params['subject']['value']){
case 'tfa':
diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php
index db2f4a7..cfc2173 100644
--- a/bridges/WordPressBridge.php
+++ b/bridges/WordPressBridge.php
@@ -5,20 +5,17 @@ class WordPressBridge extends BridgeAbstract {
public $sitename; // Name of the site
- public function loadMetadatas() {
+ public $maintainer = "aledeg";
+ public $name = "Wordpress Bridge";
+ public $uri = "https://wordpress.org/";
+ public $description = "Returns the 3 newest full posts of a Wordpress blog";
- $this->maintainer = "aledeg";
- $this->name = "Wordpress Bridge";
- $this->uri = "https://wordpress.org/";
- $this->description = "Returns the 3 newest full posts of a Wordpress blog";
-
- $this->parameters[] = array(
- 'url'=>array(
- 'name'=>'Blog URL',
- 'required'=>true
- )
- );
- }
+ public $parameters = array( array(
+ 'url'=>array(
+ 'name'=>'Blog URL',
+ 'required'=>true
+ )
+ ));
// Replaces all 'link' tags with 'url' for simplehtmldom to actually find 'links' ('url')
private function ReplaceLinkTagsWithUrlTags($element){
diff --git a/bridges/WorldOfTanksBridge.php b/bridges/WorldOfTanksBridge.php
index 98f27bf..e10ce94 100644
--- a/bridges/WorldOfTanksBridge.php
+++ b/bridges/WorldOfTanksBridge.php
@@ -1,33 +1,30 @@
maintainer = "mitsukarenai";
- $this->name = "World of Tanks";
- $this->uri = "http://worldoftanks.eu/";
- $this->description = "News about the tank slaughter game.";
-
- $this->parameters[] = array(
- 'category'=>array(
- // TODO: should be a list
- 'name'=>'nom de la catégorie'
- ),
- 'lang'=>array(
+ public $parameters = array( array(
+ 'category'=>array(
+ // TODO: should be a list
+ 'name'=>'nom de la catégorie'
+ ),
+ 'lang'=>array(
'name'=>'Langue',
'type'=>'list',
'values'=>array(
- 'Français'=>'fr',
- 'English'=>'en',
- 'Español'=>'es',
- 'Deutsch'=>'de',
- 'Čeština'=>'cs',
- 'Polski'=>'pl',
- 'Türkçe'=>'tr'
+ 'Français'=>'fr',
+ 'English'=>'en',
+ 'Español'=>'es',
+ 'Deutsch'=>'de',
+ 'Čeština'=>'cs',
+ 'Polski'=>'pl',
+ 'Türkçe'=>'tr'
)
- )
- );
- }
+ )
+ ));
function getURI(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/XbooruBridge.php b/bridges/XbooruBridge.php
index 75fa65f..6f774e2 100644
--- a/bridges/XbooruBridge.php
+++ b/bridges/XbooruBridge.php
@@ -1,21 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Xbooru";
- $this->uri = "http://xbooru.com/";
- $this->description = "Returns images from given page";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/YandereBridge.php b/bridges/YandereBridge.php
index 0539128..607a729 100644
--- a/bridges/YandereBridge.php
+++ b/bridges/YandereBridge.php
@@ -1,21 +1,18 @@
maintainer = "mitsukarenai";
- $this->name = "Yande.re";
- $this->uri = "https://yande.re/";
- $this->description = "Returns images from given page and tags";
-
- $this->parameters[] = array(
- 'p'=>array(
+ public $parameters = array( array(
+ 'p'=>array(
'name'=>'page',
'type'=>'number'
- ),
- 't'=>array('name'=>'tags')
- );
- }
+ ),
+ 't'=>array('name'=>'tags')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php
index 87d58a3..8bf4e04 100644
--- a/bridges/YoutubeBridge.php
+++ b/bridges/YoutubeBridge.php
@@ -8,48 +8,44 @@
*/
class YoutubeBridge extends BridgeAbstract {
- public function loadMetadatas() {
+ public $name = 'YouTube Bridge';
+ public $uri = 'https://www.youtube.com/';
+ public $description = 'Returns the 10 newest videos by username/channel/playlist or search';
+ public $maintainer = 'mitsukarenai';
- $this->name = 'YouTube Bridge';
- $this->uri = 'https://www.youtube.com/';
- $this->description = 'Returns the 10 newest videos by username/channel/playlist or search';
- $this->maintainer = 'mitsukarenai';
-
- $this->parameters['By username'] = array(
- 'u'=>array(
- 'name'=>'username',
- 'exampleValue'=>'test',
- 'required'=>true
- )
- );
-
- $this->parameters['By channel id'] = array(
- 'c'=>array(
- 'name'=>'channel id',
- 'exampleValue'=>"15",
- 'required'=>true
- )
- );
-
- $this->parameters['By playlist Id'] = array(
- 'p'=>array(
- 'name'=>'playlist id',
- 'exampleValue'=>"15"
- )
- );
-
- $this->parameters['Search result'] = array(
- 's'=>array(
- 'name'=>'search keyword',
- 'exampleValue'=>'test'
- ),
- 'pa'=>array(
- 'name'=>'page',
- 'type'=>'number',
- 'exampleValue'=>1
- )
- );
- }
+ public $parameters = array(
+ 'By username' => array(
+ 'u'=>array(
+ 'name'=>'username',
+ 'exampleValue'=>'test',
+ 'required'=>true
+ )
+ ),
+ 'By channel id' => array(
+ 'c'=>array(
+ 'name'=>'channel id',
+ 'exampleValue'=>"15",
+ 'required'=>true
+ )
+ ),
+ 'By playlist Id' => array(
+ 'p'=>array(
+ 'name'=>'playlist id',
+ 'exampleValue'=>"15"
+ )
+ ),
+ 'Search result' => array(
+ 's'=>array(
+ 'name'=>'search keyword',
+ 'exampleValue'=>'test'
+ ),
+ 'pa'=>array(
+ 'name'=>'page',
+ 'type'=>'number',
+ 'exampleValue'=>1
+ )
+ )
+ );
private function ytBridgeQueryVideoInfo($vid, &$author, &$desc, &$time) {
$html = $this->getSimpleHTMLDOM($this->uri."watch?v=$vid");
diff --git a/bridges/ZDNetBridge.php b/bridges/ZDNetBridge.php
index 989c047..ce26851 100644
--- a/bridges/ZDNetBridge.php
+++ b/bridges/ZDNetBridge.php
@@ -1,166 +1,163 @@
maintainer = 'ORelio';
- $this->name = 'ZDNet Bridge';
- $this->uri = 'http://www.zdnet.com/';
- $this->description = 'Technology News, Analysis, Comments and Product Reviews for IT Professionals.';
-
- // http://www.zdnet.com/zdnet.opml
- $this->parameters[] = array(
- 'feed'=>array(
+ //http://www.zdnet.com/zdnet.opml
+ public $parameters = array( array(
+ 'feed'=>array(
'name'=>'Feed',
'type'=>'list',
'values'=>array(
- 'Subscribe to ZDNet RSS Feeds'=>array(
- 'All Blogs'=>'blog',
- 'Just News'=>'news',
- 'All Reviews'=>'topic/reviews',
- 'Latest Downloads'=>'downloads!recent',
- 'Latest Articles'=>'/',
- 'Latest Australia Articles'=>'au',
- 'Latest UK Articles'=>'uk',
- 'Latest US Articles'=>'us',
- 'Latest Asia Articles'=>'as'
- ),
- 'Keep up with ZDNet Blogs RSS:'=>array(
- 'Transforming the Datacenter'=>'blog/transforming-datacenter',
- 'SMB India'=>'blog/smb-india',
- 'Indonesia BizTech'=>'blog/indonesia-biztech',
- 'Hong Kong Techie'=>'blog/hong-kong-techie',
- 'Tech Taiwan'=>'blog/tech-taiwan',
- 'Startup India'=>'blog/startup-india',
- 'Starting Up Asia'=>'blog/starting-up-asia',
- 'Next-Gen Partner'=>'blog/partner',
- 'Post-PC Developments'=>'blog/post-pc',
- 'Benelux'=>'blog/benelux',
- 'Heat Sink'=>'blog/heat-sink',
- 'Italy\'s got tech'=>'blog/italy',
- 'African Enterprise'=>'blog/african-enterprise',
- 'New Tech for Old India'=>'blog/new-india',
- 'Estonia Uncovered'=>'blog/estonia',
- 'IT Iberia'=>'blog/iberia',
- 'Brazil Tech'=>'blog/brazil',
- '500 words into the future'=>'blog/500-words-into-the-future',
- 'ÜberTech'=>'blog/ubertech',
- 'All About Microsoft'=>'blog/microsoft',
- 'Back office'=>'blog/back-office',
- 'Barker Bites Back'=>'blog/barker-bites-back',
- 'Between the Lines'=>'blog/btl',
- 'Big on Data'=>'blog/big-data',
- 'bootstrappr'=>'blog/bootstrappr',
- 'By The Way'=>'blog/by-the-way',
- 'Central European Processing'=>'blog/central-europe',
- 'Cloud Builders'=>'blog/cloud-builders',
- 'Communication Breakdown'=>'blog/communication-breakdown',
- 'Collaboration 2.0'=>'blog/collaboration',
- 'Constellation Research'=>'blog/constellation',
- 'Consumerization: BYOD'=>'blog/consumerization',
- 'DIY-IT'=>'blog/diy-it',
- 'Enterprise Web 2.0'=>'blog/hinchcliffe',
- 'Five Nines: The Next Gen Datacenter'=>'blog/datacenter',
- 'Forrester Research'=>'blog/forrester',
- 'Full Duplex'=>'blog/full-duplex',
- 'Gen Why?'=>'blog/gen-why',
- 'Hardware 2.0'=>'blog/hardware',
- 'Identity Matters'=>'blog/identity',
- 'iGeneration'=>'blog/igeneration',
- 'Internet of Everything'=>'blog/cisco',
- 'Beyond IT Failure'=>'blog/projectfailures',
- 'Jamie\'s Mostly Linux Stuff'=>'blog/jamies-mostly-linux-stuff',
- 'Jack\'s Blog'=>'blog/jacks-blog',
- 'Laptops & Desktops'=>'blog/computers',
- 'Linux and Open Source'=>'blog/open-source',
- 'London Calling'=>'blog/london',
- 'Mapping Babel'=>'blog/mapping-babel',
- 'Mixed Signals'=>'blog/mixed-signals',
- 'Mobile India'=>'blog/mobile-india',
- 'Mobile News'=>'blog/mobile-news',
- 'Networking'=>'blog/networking',
- 'Norse Code'=>'blog/norse-code',
- 'Null Pointer'=>'blog/null-pointer',
- 'The Full Tilt'=>'blog/the-full-tilt',
- 'Pinoy Post'=>'blog/pinoy-post',
- 'Practically Tech'=>'blog/practically-tech',
- 'Product Central'=>'blog/product-central',
- 'Pulp Tech'=>'blog/violetblue',
- 'Qubits and Pieces'=>'blog/qubits-and-pieces',
- 'Securify This!'=>'blog/securify-this',
- 'Service Oriented'=>'blog/service-oriented',
- 'Small Talk'=>'blog/small-talk',
- 'Small Business Matters'=>'blog/small-business-matters',
- 'Smartphones and Cell Phones'=>'blog/cell-phones',
- 'Social Business'=>'blog/feeds',
- 'Social CRM: The Conversation'=>'blog/crm',
- 'Software & Services Safari'=>'blog/sommer',
- 'Storage Bits'=>'blog/storage',
- 'Stacking up Open Clouds'=>'blog/apac-redhat',
- 'Techie Isles'=>'blog/techie-isles',
- 'Technolatte'=>'blog/technolatte',
- 'Tech Podium'=>'blog/tech-podium',
- 'Tel Aviv Tech'=>'blog/tel-aviv',
- 'Tech Broiler'=>'blog/perlow',
- 'The SANMAN'=>'blog/the-sanman',
- 'The open source revolution'=>'blog/the-open-source-revolution',
- 'The German View'=>'blog/german',
- 'The Ed Bott Report'=>'blog/bott',
- 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer',
- 'The Apple Core'=>'blog/apple',
- 'Tom Foremski: IMHO'=>'blog/foremski',
- 'Twisted Wire'=>'blog/twisted-wire',
- 'Vive la tech'=>'blog/france',
- 'Virtually Speaking'=>'blog/virtualization',
- 'View from China'=>'blog/china',
- 'Web design & Free Software'=>'blog/web-design-and-free-software',
- 'ZDNet Government'=>'blog/government',
- 'ZDNet UK Book Reviews'=>'blog/zdnet-uk-book-reviews',
- 'ZDNet UK First Take'=>'blog/zdnet-uk-first-take',
- 'Zero Day'=>'blog/security'
- ),
- 'ZDNet Hot Topics RSS:'=>array(
- 'Apple'=>'topic/apple',
- 'Collaboration'=>'topic/collaboration',
- 'Enterprise Software'=>'topic/enterprise-software',
- 'Google'=>'topic/google',
- 'Great debate'=>'topic/great-debate',
- 'Hardware'=>'topic/hardware',
- 'IBM'=>'topic/ibm',
- 'iOS'=>'topic/ios',
- 'iPhone'=>'topic/iphone',
- 'iPad'=>'topic/ipad',
- 'IT Priorities'=>'topic/it-priorities',
- 'Laptops'=>'topic/laptops',
- 'Legal'=>'topic/legal',
- 'Linux'=>'topic/linux',
- 'Microsoft'=>'topic/microsoft',
- 'Mobile OS'=>'topic/mobile-os',
- 'Mobility'=>'topic/mobility',
- 'Networking'=>'topic/networking',
- 'Oracle'=>'topic/oracle',
- 'Processors'=>'topic/processors',
- 'Samsung'=>'topic/samsung',
- 'Security'=>'topic/security',
- 'Small business: going big on mobility'=>'topic/small-business-going-big-on-mobility'
- ),
- 'Product Blogs:'=>array(
- 'Digital Cameras & Camcorders'=>'blog/digitalcameras',
- 'Home Theater'=>'blog/home-theater',
- 'Laptops and Desktops'=>'blog/computers',
- 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer',
- 'Smartphones and Cell Phones'=>'blog/cell-phones',
- 'The ToyBox'=>'blog/gadgetreviews'
- ),
- 'Vertical Blogs:'=>array(
- 'ZDNet Education'=>'blog/education',
- 'ZDNet Healthcare'=>'blog/healthcare',
- 'ZDNet Government'=>'blog/government'
- )
+ 'Subscribe to ZDNet RSS Feeds'=>array(
+ 'All Blogs'=>'blog',
+ 'Just News'=>'news',
+ 'All Reviews'=>'topic/reviews',
+ 'Latest Downloads'=>'downloads!recent',
+ 'Latest Articles'=>'/',
+ 'Latest Australia Articles'=>'au',
+ 'Latest UK Articles'=>'uk',
+ 'Latest US Articles'=>'us',
+ 'Latest Asia Articles'=>'as'
+ ),
+ 'Keep up with ZDNet Blogs RSS:'=>array(
+ 'Transforming the Datacenter'=>'blog/transforming-datacenter',
+ 'SMB India'=>'blog/smb-india',
+ 'Indonesia BizTech'=>'blog/indonesia-biztech',
+ 'Hong Kong Techie'=>'blog/hong-kong-techie',
+ 'Tech Taiwan'=>'blog/tech-taiwan',
+ 'Startup India'=>'blog/startup-india',
+ 'Starting Up Asia'=>'blog/starting-up-asia',
+ 'Next-Gen Partner'=>'blog/partner',
+ 'Post-PC Developments'=>'blog/post-pc',
+ 'Benelux'=>'blog/benelux',
+ 'Heat Sink'=>'blog/heat-sink',
+ 'Italy\'s got tech'=>'blog/italy',
+ 'African Enterprise'=>'blog/african-enterprise',
+ 'New Tech for Old India'=>'blog/new-india',
+ 'Estonia Uncovered'=>'blog/estonia',
+ 'IT Iberia'=>'blog/iberia',
+ 'Brazil Tech'=>'blog/brazil',
+ '500 words into the future'=>'blog/500-words-into-the-future',
+ 'ÜberTech'=>'blog/ubertech',
+ 'All About Microsoft'=>'blog/microsoft',
+ 'Back office'=>'blog/back-office',
+ 'Barker Bites Back'=>'blog/barker-bites-back',
+ 'Between the Lines'=>'blog/btl',
+ 'Big on Data'=>'blog/big-data',
+ 'bootstrappr'=>'blog/bootstrappr',
+ 'By The Way'=>'blog/by-the-way',
+ 'Central European Processing'=>'blog/central-europe',
+ 'Cloud Builders'=>'blog/cloud-builders',
+ 'Communication Breakdown'=>'blog/communication-breakdown',
+ 'Collaboration 2.0'=>'blog/collaboration',
+ 'Constellation Research'=>'blog/constellation',
+ 'Consumerization: BYOD'=>'blog/consumerization',
+ 'DIY-IT'=>'blog/diy-it',
+ 'Enterprise Web 2.0'=>'blog/hinchcliffe',
+ 'Five Nines: The Next Gen Datacenter'=>'blog/datacenter',
+ 'Forrester Research'=>'blog/forrester',
+ 'Full Duplex'=>'blog/full-duplex',
+ 'Gen Why?'=>'blog/gen-why',
+ 'Hardware 2.0'=>'blog/hardware',
+ 'Identity Matters'=>'blog/identity',
+ 'iGeneration'=>'blog/igeneration',
+ 'Internet of Everything'=>'blog/cisco',
+ 'Beyond IT Failure'=>'blog/projectfailures',
+ 'Jamie\'s Mostly Linux Stuff'=>'blog/jamies-mostly-linux-stuff',
+ 'Jack\'s Blog'=>'blog/jacks-blog',
+ 'Laptops & Desktops'=>'blog/computers',
+ 'Linux and Open Source'=>'blog/open-source',
+ 'London Calling'=>'blog/london',
+ 'Mapping Babel'=>'blog/mapping-babel',
+ 'Mixed Signals'=>'blog/mixed-signals',
+ 'Mobile India'=>'blog/mobile-india',
+ 'Mobile News'=>'blog/mobile-news',
+ 'Networking'=>'blog/networking',
+ 'Norse Code'=>'blog/norse-code',
+ 'Null Pointer'=>'blog/null-pointer',
+ 'The Full Tilt'=>'blog/the-full-tilt',
+ 'Pinoy Post'=>'blog/pinoy-post',
+ 'Practically Tech'=>'blog/practically-tech',
+ 'Product Central'=>'blog/product-central',
+ 'Pulp Tech'=>'blog/violetblue',
+ 'Qubits and Pieces'=>'blog/qubits-and-pieces',
+ 'Securify This!'=>'blog/securify-this',
+ 'Service Oriented'=>'blog/service-oriented',
+ 'Small Talk'=>'blog/small-talk',
+ 'Small Business Matters'=>'blog/small-business-matters',
+ 'Smartphones and Cell Phones'=>'blog/cell-phones',
+ 'Social Business'=>'blog/feeds',
+ 'Social CRM: The Conversation'=>'blog/crm',
+ 'Software & Services Safari'=>'blog/sommer',
+ 'Storage Bits'=>'blog/storage',
+ 'Stacking up Open Clouds'=>'blog/apac-redhat',
+ 'Techie Isles'=>'blog/techie-isles',
+ 'Technolatte'=>'blog/technolatte',
+ 'Tech Podium'=>'blog/tech-podium',
+ 'Tel Aviv Tech'=>'blog/tel-aviv',
+ 'Tech Broiler'=>'blog/perlow',
+ 'The SANMAN'=>'blog/the-sanman',
+ 'The open source revolution'=>'blog/the-open-source-revolution',
+ 'The German View'=>'blog/german',
+ 'The Ed Bott Report'=>'blog/bott',
+ 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer',
+ 'The Apple Core'=>'blog/apple',
+ 'Tom Foremski: IMHO'=>'blog/foremski',
+ 'Twisted Wire'=>'blog/twisted-wire',
+ 'Vive la tech'=>'blog/france',
+ 'Virtually Speaking'=>'blog/virtualization',
+ 'View from China'=>'blog/china',
+ 'Web design & Free Software'=>'blog/web-design-and-free-software',
+ 'ZDNet Government'=>'blog/government',
+ 'ZDNet UK Book Reviews'=>'blog/zdnet-uk-book-reviews',
+ 'ZDNet UK First Take'=>'blog/zdnet-uk-first-take',
+ 'Zero Day'=>'blog/security'
+ ),
+ 'ZDNet Hot Topics RSS:'=>array(
+ 'Apple'=>'topic/apple',
+ 'Collaboration'=>'topic/collaboration',
+ 'Enterprise Software'=>'topic/enterprise-software',
+ 'Google'=>'topic/google',
+ 'Great debate'=>'topic/great-debate',
+ 'Hardware'=>'topic/hardware',
+ 'IBM'=>'topic/ibm',
+ 'iOS'=>'topic/ios',
+ 'iPhone'=>'topic/iphone',
+ 'iPad'=>'topic/ipad',
+ 'IT Priorities'=>'topic/it-priorities',
+ 'Laptops'=>'topic/laptops',
+ 'Legal'=>'topic/legal',
+ 'Linux'=>'topic/linux',
+ 'Microsoft'=>'topic/microsoft',
+ 'Mobile OS'=>'topic/mobile-os',
+ 'Mobility'=>'topic/mobility',
+ 'Networking'=>'topic/networking',
+ 'Oracle'=>'topic/oracle',
+ 'Processors'=>'topic/processors',
+ 'Samsung'=>'topic/samsung',
+ 'Security'=>'topic/security',
+ 'Small business: going big on mobility'=>'topic/small-business-going-big-on-mobility'
+ ),
+ 'Product Blogs:'=>array(
+ 'Digital Cameras & Camcorders'=>'blog/digitalcameras',
+ 'Home Theater'=>'blog/home-theater',
+ 'Laptops and Desktops'=>'blog/computers',
+ 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer',
+ 'Smartphones and Cell Phones'=>'blog/cell-phones',
+ 'The ToyBox'=>'blog/gadgetreviews'
+ ),
+ 'Vertical Blogs:'=>array(
+ 'ZDNet Education'=>'blog/education',
+ 'ZDNet Healthcare'=>'blog/healthcare',
+ 'ZDNet Government'=>'blog/government'
+ )
)
- )
- );
- }
+ )
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/bridges/ZatazBridge.php b/bridges/ZatazBridge.php
index ce80054..e1a87f5 100644
--- a/bridges/ZatazBridge.php
+++ b/bridges/ZatazBridge.php
@@ -1,14 +1,10 @@
maintainer = "aledeg";
- $this->name = 'Zataz Magazine';
- $this->uri = 'http://www.zataz.com';
- $this->description = "ZATAZ Magazine - S'informer, c'est déjà se sécuriser";
-
- }
+ public $maintainer = "aledeg";
+ public $name = 'Zataz Magazine';
+ public $uri = 'http://www.zataz.com';
+ public $description = "ZATAZ Magazine - S'informer, c'est déjà se sécuriser";
public function collectData(){
$html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request ' . $this->uri);
diff --git a/bridges/ZoneTelechargementBridge.php b/bridges/ZoneTelechargementBridge.php
index 7ff7d3e..4bbd464 100644
--- a/bridges/ZoneTelechargementBridge.php
+++ b/bridges/ZoneTelechargementBridge.php
@@ -1,17 +1,14 @@
You may specify a category found in RSS URLs, else main feed is selected.';
- $this->maintainer = 'ORelio';
- $this->name = 'Zone Telechargement Bridge';
- $this->uri = 'https://www.zone-telechargement.com/';
- $this->description = 'RSS proxy returning the newest releases.
You may specify a category found in RSS URLs, else main feed is selected.';
-
- $this->parameters[] = array(
- 'category'=>array('name'=>'Category')
- );
- }
+ public $parameters = array( array(
+ 'category'=>array('name'=>'Category')
+ ));
public function collectData(){
$param=$this->parameters[$this->queriedContext];
diff --git a/index.php b/index.php
index 2e84ab3..610c19a 100644
--- a/index.php
+++ b/index.php
@@ -126,7 +126,7 @@ try{
if(defined('PROXY_URL') && PROXY_BYBRIDGE && $noproxy){
$bridge->useProxy=false;
}
- $bridge->loadMetadatas();
+
$params=$_GET;
unset($params['action']);
unset($params['bridge']);
diff --git a/lib/Bridge.php b/lib/Bridge.php
index ff08d62..b744531 100644
--- a/lib/Bridge.php
+++ b/lib/Bridge.php
@@ -105,7 +105,6 @@ EOD;
interface BridgeInterface {
public function collectData();
public function getCacheDuration();
- public function loadMetadatas();
public function getName();
public function getURI();
}
@@ -182,7 +181,7 @@ abstract class BridgeAbstract implements BridgeInterface {
}
break;
default:
- case'text':
+ case 'text':
if(isset($set[$name]['pattern'])){
$data[$name]=filter_var($value,FILTER_VALIDATE_REGEXP,
array('options'=>array(
@@ -401,7 +400,7 @@ abstract class BridgeAbstract implements BridgeInterface {
/**
* Extension of BridgeAbstract allowing caching of files downloaded over http.
- * TODO allow file cache invalidation by touching files on access, and removing
+ * TODO allow file cache invalidation by touching files on access, and removing
* files/directories which have not been touched since ... a long time
*/
abstract class HttpCachingBridgeAbstract extends BridgeAbstract {
@@ -461,8 +460,8 @@ abstract class HttpCachingBridgeAbstract extends BridgeAbstract {
private function buildCacheFilePath($url, $cacheDir){
$simplified_url = str_replace(
- ['http://', 'https://', '?', '&', '='],
- ['', '', '/', '/', '/'],
+ ['http://', 'https://', '?', '&', '='],
+ ['', '', '/', '/', '/'],
$url);
if(substr($cacheDir, -1) !== '/'){
diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php
index 9384753..cbfa0af 100644
--- a/lib/HTMLUtils.php
+++ b/lib/HTMLUtils.php
@@ -7,8 +7,6 @@ class HTMLUtils {
if($bridgeElement == false)
return "";
- $bridgeElement->loadMetadatas();
-
$name = '' . $bridgeElement->name . '';
$description = $bridgeElement->description;