mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 02:50:31 +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,23 +1,18 @@
|
||||
<?php
|
||||
class CpasbienBridge extends HttpCachingBridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
public $maintainer = "lagaisse";
|
||||
public $name = "Cpasbien Bridge";
|
||||
public $uri = "http://www.cpasbien.io";
|
||||
public $description = "Returns latest torrents from a request query";
|
||||
|
||||
$this->maintainer = "lagaisse";
|
||||
$this->name = "Cpasbien Bridge";
|
||||
$this->uri = "http://www.cpasbien.io";
|
||||
$this->description = "Returns latest torrents from a request query";
|
||||
|
||||
$this->parameters[] = array(
|
||||
'q'=>array(
|
||||
public $parameters = array( array(
|
||||
'q'=>array(
|
||||
'name'=>'Search',
|
||||
'required'=>true,
|
||||
'title'=>'Type your search'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
)
|
||||
));
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
Reference in New Issue
Block a user