mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 02:54:10 +02:00
[bridges] migrate all bridges to an array based definition of parameters
see github issue 356 Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -9,40 +9,33 @@ class SensCritiqueBridge extends BridgeAbstract {
|
||||
$this->uri = "http://www.senscritique.com";
|
||||
$this->description = "Sens Critique news";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Movies",
|
||||
"identifier" : "m",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Series",
|
||||
"identifier" : "s",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Video Games",
|
||||
"identifier" : "g",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Books",
|
||||
"identifier" : "b",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "BD",
|
||||
"identifier" : "bd",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Music",
|
||||
"identifier" : "mu",
|
||||
"type": "checkbox"
|
||||
}
|
||||
]';
|
||||
}
|
||||
$this->parameters[] = array(
|
||||
'm'=>array(
|
||||
'name'=>'Movies',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
's'=>array(
|
||||
'name'=>'Series',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'g'=>array(
|
||||
'name'=>'Video Games',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'b'=>array(
|
||||
'name'=>'Books',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'bd'=>array(
|
||||
'name'=>'BD',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'mu'=>array(
|
||||
'name'=>'Music',
|
||||
'type'=>'checkbox'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
if ((isset($param['m']) && $param['m'])) {
|
||||
|
Reference in New Issue
Block a user