mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +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:
@@ -8,46 +8,31 @@ class DemoBridge extends BridgeAbstract{
|
||||
$this->uri = "http://github.com/sebsauvage/rss-bridge";
|
||||
$this->description = "Bridge used for demos";
|
||||
|
||||
$this->parameters['testCheckbox'] =
|
||||
'[
|
||||
{
|
||||
"type" : "checkbox",
|
||||
"identifier" : "testCheckbox",
|
||||
"name" : "test des checkbox"
|
||||
}
|
||||
$this->parameters['testCheckbox'] = array(
|
||||
'testCheckbox'=>array(
|
||||
'type'=>'checkbox',
|
||||
'name'=>'test des checkbox'
|
||||
)
|
||||
);
|
||||
|
||||
]';
|
||||
|
||||
$this->parameters['testList'] =
|
||||
'[
|
||||
{
|
||||
"type" : "list",
|
||||
"identifier" : "testList",
|
||||
"name" : "test des listes",
|
||||
"values" : [
|
||||
{
|
||||
"name" : "Test",
|
||||
"value" : "test"
|
||||
},
|
||||
{
|
||||
"name" : "Test 2",
|
||||
"value" : "test2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters['testNumber'] =
|
||||
'[
|
||||
{
|
||||
"type" : "number",
|
||||
"identifier" : "testNumber",
|
||||
"name" : "test des numéros",
|
||||
"exampleValue" : "1515632"
|
||||
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters['testList'] = array(
|
||||
'testList'=>array(
|
||||
'type'=>'list',
|
||||
'name'=>'test des listes',
|
||||
'values'=>array(
|
||||
'Test'=>'test',
|
||||
'Test 2'=>'test2'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->parameters['testNumber'] = array(
|
||||
'testNumber'=>array(
|
||||
'type'=>'number',
|
||||
'name'=>'test des numéros',
|
||||
'exampleValue'=>'1515632'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
Reference in New Issue
Block a user