mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +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:
parent
2f09ae56ad
commit
f0e502ce37
79 changed files with 1381 additions and 2316 deletions
|
@ -8,32 +8,20 @@ class AllocineFRBridge extends BridgeAbstract{
|
|||
$this->uri = "http://www.allocine.fr";
|
||||
$this->description = "Bridge for allocine.fr";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "category",
|
||||
"identifier" : "category",
|
||||
"type" : "list",
|
||||
"required" : true,
|
||||
"exampleValue" : "Faux Raccord",
|
||||
"title" : "Select your category",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Faux Raccord",
|
||||
"value" : "faux-raccord"
|
||||
},
|
||||
{
|
||||
"name" : "Top 5",
|
||||
"value" : "top-5"
|
||||
},
|
||||
{
|
||||
"name" : "Tueurs En Serie",
|
||||
"value" : "tuers-en-serie"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'category'=>array(
|
||||
'name'=>'category',
|
||||
'type'=>'list',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'Faux Raccord',
|
||||
'title'=>'Select your category',
|
||||
'values'=>array(
|
||||
'Faux Raccord'=>'faux-raccord',
|
||||
'Top 5'=>'top-5',
|
||||
'Tueurs En Serie'=>'tuers-en-serie'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $params){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue