mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +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:
@@ -4,22 +4,20 @@ class HDWallpapersBridge extends BridgeAbstract {
|
||||
private $category;
|
||||
private $resolution;
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "nel50n";
|
||||
$this->name = "HD Wallpapers Bridge";
|
||||
$this->uri = "http://www.hdwallpapers.in/";
|
||||
$this->description = "Returns the latests wallpapers from HDWallpapers";
|
||||
public $maintainer = "nel50n";
|
||||
public $name = "HD Wallpapers Bridge";
|
||||
public $uri = "http://www.hdwallpapers.in/";
|
||||
public $description = "Returns the latests wallpapers from HDWallpapers";
|
||||
|
||||
$this->parameters[] = array(
|
||||
'c'=>array('name'=>'category'),
|
||||
'm'=>array('name'=>'max number of wallpapers'),
|
||||
'r'=>array(
|
||||
public $parameters = array( array(
|
||||
'c'=>array('name'=>'category'),
|
||||
'm'=>array('name'=>'max number of wallpapers'),
|
||||
'r'=>array(
|
||||
'name'=>'resolution',
|
||||
'exampleValue'=>'1920x1200, 1680x1050,…'
|
||||
)
|
||||
);
|
||||
}
|
||||
)
|
||||
));
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
Reference in New Issue
Block a user