mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-10 18:44:04 +02:00
[core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized there, ::__construct() should be used instead. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
<?php
|
||||
class UnsplashBridge extends BridgeAbstract {
|
||||
|
||||
public function loadMetadatas() {
|
||||
public $maintainer = "nel50n";
|
||||
public $name = "Unsplash Bridge";
|
||||
public $uri = "http://unsplash.com/";
|
||||
public $description = "Returns the latests photos from Unsplash";
|
||||
|
||||
$this->maintainer = "nel50n";
|
||||
$this->name = "Unsplash Bridge";
|
||||
$this->uri = "http://unsplash.com/";
|
||||
$this->description = "Returns the latests photos from Unsplash";
|
||||
|
||||
$this->parameters[] = array(
|
||||
public $parameters = array( array(
|
||||
'm'=>array(
|
||||
'name'=>'Max number of photos',
|
||||
'type'=>'number'
|
||||
@@ -21,8 +19,7 @@ class UnsplashBridge extends BridgeAbstract {
|
||||
'name'=>'JPEG quality',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
));
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
Reference in New Issue
Block a user