mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 17:44:48 +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:
parent
2301a12cc6
commit
de1b39c8e5
133 changed files with 1433 additions and 1848 deletions
|
@ -1,41 +1,37 @@
|
|||
<?php
|
||||
class SensCritiqueBridge extends BridgeAbstract {
|
||||
|
||||
private $request;
|
||||
public $maintainer = "kranack";
|
||||
public $name = "Sens Critique";
|
||||
public $uri = "http://www.senscritique.com";
|
||||
public $description = "Sens Critique news";
|
||||
|
||||
public function loadMetadatas() {
|
||||
$this->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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue