mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +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
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
class KununuBridge extends BridgeAbstract{
|
||||
public function loadMetadatas(){
|
||||
$this->maintainer = "logmanoriginal";
|
||||
$this->name = "Kununu Bridge"; /* This will be replaced later! */
|
||||
$this->uri = "https://www.kununu.com"; /* This will be replaced later! */
|
||||
$this->description = "Returns the latest reviews for a company and site of your choice.";
|
||||
public $maintainer = "logmanoriginal";
|
||||
public $name = "Kununu Bridge"; /* This will be replaced later! */
|
||||
public $uri = "https://www.kununu.com"; /* This will be replaced later! */
|
||||
public $description = "Returns the latest reviews for a company and site of your choice.";
|
||||
|
||||
$this->parameters['global'] = array(
|
||||
public $parameters = array(
|
||||
'global' => array(
|
||||
'site'=>array(
|
||||
'name'=>'Site',
|
||||
'type'=>'list',
|
||||
|
@ -27,17 +27,17 @@ class KununuBridge extends BridgeAbstract{
|
|||
'exampleValue'=>'checked',
|
||||
'title'=>'Activate to load full article'
|
||||
)
|
||||
);
|
||||
),
|
||||
|
||||
$this->parameters[] = array(
|
||||
array(
|
||||
'company'=>array(
|
||||
'name'=>'Company',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'kununu-us',
|
||||
'title'=>'Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)'
|
||||
)
|
||||
);
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
public function collectData(){
|
||||
$params=$this->parameters[$this->queriedContext];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue