mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-17 05:54:18 +02:00
[core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized there, ::__construct() should be used instead. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,37 +1,34 @@
|
||||
<?php
|
||||
class DauphineLibereBridge extends BridgeAbstract {
|
||||
|
||||
public function loadMetadatas() {
|
||||
public $maintainer = "qwertygc";
|
||||
public $name = "Dauphine Bridge";
|
||||
public $uri = "http://www.ledauphine.com/";
|
||||
public $description = "Returns the newest articles.";
|
||||
|
||||
$this->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);
|
||||
|
Reference in New Issue
Block a user