mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 13:50:23 +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,18 +8,13 @@ class KonachanBridge extends BridgeAbstract{
|
||||
$this->uri = "http://konachan.com/";
|
||||
$this->description = "Returns images from given page";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
Reference in New Issue
Block a user