[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:
Pierre Mazière 2016-08-22 01:25:56 +02:00
parent 2f09ae56ad
commit f0e502ce37
79 changed files with 1381 additions and 2316 deletions

View file

@ -8,26 +8,20 @@ class UnsplashBridge extends BridgeAbstract {
$this->uri = "http://unsplash.com/";
$this->description = "Returns the latests photos from Unsplash";
$this->parameters[] =
'[
{
"name" : "Max number of photos",
"identifier" : "m",
"type" : "number"
},
{
"name" : "Width",
"identifier" : "w",
"exampleValue" : "1920, 1680, ..."
},
{
"name" : "JPEG quality",
"identifier" : "q",
"type" : "number"
}
]';
$this->parameters[] = array(
'm'=>array(
'name'=>'Max number of photos',
'type'=>'number'
),
'w'=>array(
'name'=>'Width',
'exampleValue'=>'1920, 1680, …'
),
'q'=>array(
'name'=>'JPEG quality',
'type'=>'number'
)
);
}
public function collectData(array $param){