Browse Source

3rd batch of bridges.

Signed-off-by: teromene <teromene@teromene.fr>
teromene 8 years ago
parent
commit
b3733069d4

+ 11 - 10
bridges/RaymondBridge.php

@@ -1,15 +1,16 @@
 <?php
-/**
-* RssBridgeRaymond
-* Returns the 3 newest posts from Raymond.cc (full text)
-*
-* @name Raymond
-* @homepage http://www.raymond.cc
-* @description Returns the 3 newest posts from Raymond.cc (full text)
-* @maintainer pit-fgfjiudghdf
-* @update 2014-05-26
-*/
 class RaymondBridge extends BridgeAbstract{
+
+	public function loadMetadatas() {
+
+		$this->maintainer = "pit-fgfjiudghdf";
+		$this->name = "Raymond";
+		$this->uri = "http://www.raymond.cc";
+		$this->description = "Returns the 3 newest posts from Raymond.cc (full text)";
+		$this->update = "2014-05-26";
+
+	}
+
     public function collectData(array $param){
     function raymondStripCDATA($string) {
         $string = str_replace('<![CDATA[', '', $string);

+ 10 - 11
bridges/Releases3DSBridge.php

@@ -1,17 +1,16 @@
 <?php
-/**
-* 3DS Scene Releases
-* Returns the newest releases
-* 2015-09-08
-*
-* @name 3DS Scene Releases
-* @homepage http://www.3dsdb.com/
-* @description Returns the newest scene releases.
-* @maintainer ORelio
-* @update 2015-09-17
-*/
 class Releases3DSBridge extends BridgeAbstract {
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "ORelio";
+		$this->name = "3DS Scene Releases";
+		$this->uri = "http://www.3dsdb.com/";
+		$this->description = "Returns the newest scene releases.";
+		$this->update = "2015-09-17";
+
+	}
+
     public function collectData(array $param) {
 
         function ExtractFromDelimiters($string, $start, $end) {

+ 11 - 11
bridges/ReporterreBridge.php

@@ -1,16 +1,16 @@
 <?php
-/**
-* RssBridgeReporterre
-* Returns the newest article
-* 2015-04-07
-*
-* @name Reporterre Bridge
-* @homepage http://www.reporterre.net/
-* @description Returns the newest articles.
-* @maintainer nyutag
-*/
 class ReporterreBridge extends BridgeAbstract{
-   
+
+		public function loadMetadatas() {
+
+			$this->maintainer = "nyutag";
+			$this->name = "Reporterre Bridge";
+			$this->uri = "http://www.reporterre.net/";
+			$this->description = "Returns the newest articles.";
+			$this->update = "2015-04-07";
+
+		}
+
         public function collectData(array $param){
 
 		function ExtractContentReporterre($url) {

+ 11 - 10
bridges/Rue89Bridge.php

@@ -1,15 +1,16 @@
 <?php
-/**
-* RssBridgeRue89
-* Returns the 5 newest posts from http://rue89.nouvelobs.com/ (full text)
-*
-* @name Rue89
-* @homepage http://rue89.nouvelobs.com/
-* @description Returns the 5 newest posts from Rue89 (full text)
-* @update 2015-01-30
-* @maintainer pit-fgfjiudghdf
-*/
 class Rue89Bridge extends BridgeAbstract{
+
+	public function loadMetadatas() {
+
+		$this->maintainer = "pit-fgfjiudghdf";
+		$this->name = "Rue89";
+		$this->uri = "http://rue89.nouvelobs.com/";
+		$this->description = "Returns the 5 newest posts from Rue89 (full text)";
+		$this->update = "2015-01-30";
+
+	}
+
     public function collectData(array $param){
     function Rue89StripCDATA($string) {
         $string = str_replace('<![CDATA[', '', $string);

+ 11 - 11
bridges/ScilogsBridge.php

@@ -1,16 +1,16 @@
 <?php
-/**
-* RssBridgeScilogs
-* Returns the newest articles
-* 2014-05-25
-*
-* @name Scilogs Bridge
-* @homepage http://www.scilogs.fr/
-* @description Returns the newest articles.
-* @maintainer qwertygc
-*/
 class ScilogsBridge extends BridgeAbstract{
-    
+
+		public function loadMetadatas() {
+
+			$this->maintainer = "qwertygc";
+			$this->name = "Scilogs Bridge";
+			$this->uri = "http://www.scilogs.fr/";
+			$this->description = "Returns the newest articles.";
+			$this->update = "2014-05-25";
+
+		}
+
         public function collectData(array $param){
 
 			function ScilogsStripCDATA($string) {

+ 10 - 10
bridges/ScmbBridge.php

@@ -1,15 +1,15 @@
 <?php
-/**
-* RssBridgeSeCoucherMoinsBete 
-* Returns the newest anecdotes
-* 2014-05-25
-*
-* @name Se Coucher Moins Bête Bridge
-* @homepage http://secouchermoinsbete.fr/
-* @description Returns the newest anecdotes.
-* @maintainer Astalaseven
-*/
 class ScmbBridge extends BridgeAbstract{
+
+	public function loadMetadatas() {
+
+		$this->maintainer = "Astalaseven";
+		$this->name = "Se Coucher Moins Bête Bridge";
+		$this->uri = "http://secouchermoinsbete.fr/";
+		$this->description = "Returns the newest anecdotes.";
+		$this->update = "2014-05-25";
+
+	}
     
     public function collectData(array $param){
         $html = '';

+ 7 - 8
bridges/SegfaultMintBridge.php

@@ -1,16 +1,15 @@
 <?php
-/**
-* @name SegfaultMint
-* @homepage http://segfault.linuxmint.com/
-* @description Returns the 5 newest posts from SegfaultMint (full text)
-* @maintainer qwertygc
-* @update 2014-07-05
-*/
 class SegfaultMintBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
 
+		$this->maintainer = "qwertygc";
+		$this->name = "SegfaultMint";
+		$this->uri = "http://segfault.linuxmint.com/";
+		$this->description = "Returns the 5 newest posts from SegfaultMint (full text)";
+		$this->update = "2014-07-05";
 
-
+	}
 
     public function collectData(array $param){
 

+ 10 - 6
bridges/Sexactu.php

@@ -1,13 +1,17 @@
 <?php
-/**
-* Unfortunatly, Sexactu do not provide a RSS stream, which prevents me from upgrading this to the mugnificent RssExpander framework
-* @name Sexactu
-* @description Sexactu via rss-bridge
-* @update 04/02/2014
-*/
 define("GQ", "http://www.gqmagazine.fr");
 class Sexactu extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "Riduidel";
+		$this->name = "Sexactu";
+		$this->uri = "http://www.gqmagazine.fr";
+		$this->description = "Sexactu via rss-bridge";
+		$this->update = "04/02/2014";
+
+	}
+
     public function collectData(array $param){
 $find = array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'novembre', 'décembre');
 $replace = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');

+ 10 - 11
bridges/SiliconBridge.php

@@ -1,17 +1,16 @@
 <?php
-/**
-* Silicon Bridge
-* Returns the newest articles
-* 2015-09-08
-*
-* @name Silicon.fr
-* @homepage http://www.silicon.fr/
-* @description Returns the newest articles.
-* @maintainer ORelio
-* @update 2015-09-08
-*/
 class SiliconBridge extends BridgeAbstract {
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "ORelio";
+		$this->name = "Silicon.fr";
+		$this->uri = "http://www.silicon.fr/";
+		$this->description = "Returns the newest articles.";
+		$this->update = "2015-09-08";
+
+	}
+
     public function collectData(array $param) {
 
         function StripCDATA($string) {

+ 10 - 8
bridges/TheCodingLoveBridge.php

@@ -1,14 +1,16 @@
 <?php
-/**
-*
-* @name The Coding Love
-* @homepage http://thecodinglove.com/
-* @description The Coding Love
-* @update 04/02/2015
-* initial maintainer: superbaillot.net
-*/
 class TheCodingLoveBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "superbaillot.net";
+		$this->name = "The Coding Love";
+		$this->uri = "http://thecodinglove.com/";
+		$this->description = "The Coding Love";
+		$this->update = "04/02/2015";
+
+	}
+
     public function collectData(array $param){
         $html = file_get_html('http://thecodinglove.com/') or $this->returnError('Could not request The Coding Love.', 404);
     

+ 13 - 9
bridges/TheOatMealBridge.php

@@ -1,18 +1,22 @@
 <?php
-/**
-*
-* @name The Oatmeal
-* @homepage http://theoatmeal.com/
-* @description Un petit site de dessins assez rigolos
-* @update 2015-07-03
-* @maintainer Riduidel
-.
-*/
+
 require_once 'bridges/RssExpander.php';
+
 define("THE_OATMEAL", "http://theoatmeal.com/");
 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";
+		$this->update = "2015-07-03";
+
+	}
+
     public function collectData(array $param){
         $param['url'] = THE_OATMEAL_RSS;
         parent::collectData($param);

+ 10 - 8
bridges/TuxboardBridge.php

@@ -1,14 +1,16 @@
 <?php
-/**
- *
-* @name Tuxboard
-* @homepage http://www.tuxboard.com/
-* @description Tuxboard
-* @update 2014-07-08
-* initial maintainer: superbaillot.net
- */
 class TuxboardBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "superbaillot.net";
+		$this->name = "Tuxboard";
+		$this->uri = "http://www.tuxboard.com/";
+		$this->description = "Tuxboard";
+		$this->update = "2014-07-08";
+
+	}
+
     public function collectData(array $param){
 
     function StripCDATA($string) {

+ 11 - 11
bridges/WikipediaDEBridge.php

@@ -1,21 +1,21 @@
 <?php
-/**
-* WikipediaDEBridge
-* Retrieve latest highlighted articles from Wikipedia in German.
-* 2015-11-04
-*
-* @name Wikipedia DE "Today's Featured Article..."
-* @homepage https://de.wikipedia.org/
-* @description Returns the highlighted en.wikipedia.org article.
-* @maintainer cnlpete
-*/
 class WikipediaDEBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "cnlpete";
+		$this->name = "Wikipedia DE Today's Featured Article...";
+		$this->uri = "https://de.wikipedia.org/";
+		$this->description = "Returns the highlighted en.wikipedia.org article.";
+		$this->update = "2015-11-04";
+
+	}
+
     public function collectData(array $param){
         $html = '';
         $host = 'http://de.wikipedia.org';
         // If you want HTTPS access instead, uncomment the following line:
-        //$host = 'https://en.wikipedia.org';
+        //$host = 'https://de.wikipedia.org';
         $link = '/wiki/Wikipedia:Hauptseite';
 
         $html = file_get_html($host.$link) or $this->returnError('Could not request Wikipedia DE.', 404);

+ 10 - 10
bridges/WikipediaENBridge.php

@@ -1,16 +1,16 @@
 <?php
-/**
-* RssBridgeWikipediaEN
-* Retrieve latest highlighted articles from Wikipedia in English.
-* 2014-05-25
-*
-* @name Wikipedia EN "Today's Featured Article..."
-* @homepage https://en.wikipedia.org/
-* @description Returns the highlighted en.wikipedia.org article.
-* @maintainer gsurrel
-*/
 class WikipediaENBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "gsurrel";
+		$this->name = "Wikipedia EN 'Today's Featured Article...'";
+		$this->uri = "https://en.wikipedia.org/";
+		$this->description = "Returns the highlighted en.wikipedia.org article.";
+		$this->update = "2014-05-25";
+
+	}
+
     public function collectData(array $param){
         $html = '';
         $host = 'http://en.wikipedia.org';

+ 10 - 10
bridges/WikipediaEOBridge.php

@@ -1,16 +1,16 @@
 <?php
-/**
-* RssBridgeWikipediaEO
-* Retrieve latest highlighted articles from Wikipedia in Esperanto.
-* 2014-05-25
-*
-* @name Wikipedia EO "Artikolo de la semajno"
-* @homepage https://eo.wikipedia.org/
-* @description Returns the highlighted eo.wikipedia.org article.
-* @maintainer gsurrel
-*/
 class WikipediaEOBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "gsurrel";
+		$this->name = "Wikipedia EO 'Artikolo de la semajno'";
+		$this->uri = "https://eo.wikipedia.org/";
+		$this->description = "Returns the highlighted eo.wikipedia.org article.";
+		$this->update = "2014-05-25";
+
+	}
+
     public function collectData(array $param){
         $html = '';
         $host = 'http://eo.wikipedia.org';

+ 10 - 10
bridges/WikipediaFRBridge.php

@@ -1,16 +1,16 @@
 <?php
-/**
-* RssBridgeWikipediaFR
-* Retrieve latest highlighted articles from Wikipedia in French.
-* 2014-05-25
-*
-* @name Wikipedia FR "Lumière sur..."
-* @homepage https://fr.wikipedia.org/
-* @description Returns the highlighted fr.wikipedia.org article.
-* @maintainer gsurrel
-*/
 class WikipediaFRBridge extends BridgeAbstract{
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "gsurrel";
+		$this->name = "Wikipedia FR 'Lumière sur...'";
+		$this->uri = "https://fr.wikipedia.org/";
+		$this->description = "Returns the highlighted fr.wikipedia.org article.";
+		$this->update = "2014-05-25";
+
+	}
+
     public function collectData(array $param){
         $html = '';
         $host = 'http://fr.wikipedia.org';

+ 10 - 8
bridges/ZatazBridge.php

@@ -1,14 +1,16 @@
 <?php
-
-/**
- * @name Zataz
- * @homepage http://www.zataz.com/
- * @description ZATAZ Magazine - S'informer, c'est déjà se sécuriser
- * @maintainer aledeg
- * @update 07/02/2015
- */
 class ZatazBridge extends BridgeAbstract {
 
+	public function loadMetadatas() {
+
+		$this->maintainer = "aledeg";
+		$this->name = "Zataz";
+		$this->uri = "http://www.zataz.com/";
+		$this->description = "ZATAZ Magazine - S'informer, c'est déjà se sécuriser";
+		$this->update = "07/02/2015";
+
+	}
+
 	public function collectData(array $param) {
 		$html = file_get_html($this->getURI()) or $this->returnError('Could not request ' . $this->getURI(), 404);