mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +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:
parent
2301a12cc6
commit
de1b39c8e5
133 changed files with 1433 additions and 1848 deletions
|
@ -5,22 +5,20 @@ class PinterestBridge extends BridgeAbstract{
|
|||
private $board;
|
||||
private $query;
|
||||
|
||||
public function loadMetadatas() {
|
||||
public $maintainer = "pauder";
|
||||
public $name = "Pinterest Bridge";
|
||||
public $uri = "http://www.pinterest.com";
|
||||
public $description = "Returns the newest images on a board";
|
||||
|
||||
$this->maintainer = "pauder";
|
||||
$this->name = "Pinterest Bridge";
|
||||
$this->uri = "http://www.pinterest.com";
|
||||
$this->description = "Returns the newest images on a board";
|
||||
|
||||
$this->parameters["By username and board"] = array(
|
||||
'u'=>array('name'=>'username'),
|
||||
'b'=>array('name'=>'board')
|
||||
);
|
||||
|
||||
$this->parameters["From search"] = array(
|
||||
'q'=>array('name'=>'Keyword')
|
||||
);
|
||||
}
|
||||
public $parameters = array(
|
||||
'By username and board' => array(
|
||||
'u'=>array('name'=>'username'),
|
||||
'b'=>array('name'=>'board')
|
||||
),
|
||||
'From search' => array(
|
||||
'q'=>array('name'=>'Keyword')
|
||||
)
|
||||
);
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue