mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-17 22:02:09 +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:
@@ -10,33 +10,18 @@ class GBAtempBridge extends BridgeAbstract {
|
||||
$this->uri = 'http://gbatemp.net/';
|
||||
$this->description = 'GBAtemp is a user friendly underground video game community.';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Type",
|
||||
"type" : "list",
|
||||
"identifier" : "type",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "News",
|
||||
"value" : "N"
|
||||
},
|
||||
{
|
||||
"name" : "Reviews",
|
||||
"value" : "R"
|
||||
},
|
||||
{
|
||||
"name" : "Tutorials",
|
||||
"value" : "T"
|
||||
},
|
||||
{
|
||||
"name" : "Forum",
|
||||
"value" : "F"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'type'=>array(
|
||||
'name'=>'Type',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'News'=>'N',
|
||||
'Reviews'=>'R',
|
||||
'Tutorials'=>'T',
|
||||
'Forum'=>'F'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function ExtractFromDelimiters($string, $start, $end) {
|
||||
|
Reference in New Issue
Block a user