mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-10 02:26:37 +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,32 +1,28 @@
|
||||
<?php
|
||||
class OpenClassroomsBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
public $maintainer = "sebsauvage";
|
||||
public $name = "OpenClassrooms Bridge";
|
||||
public $uri = "https://openclassrooms.com/";
|
||||
public $description = "Returns latest tutorials from OpenClassrooms.";
|
||||
|
||||
$this->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(){
|
||||
|
Reference in New Issue
Block a user