mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-12 23:14:43 +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,19 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* GitlabCommitsBridge
|
||||
*
|
||||
* @name GitlabCommits Bridge
|
||||
* @description Returns the commits of a project hosted on a gitlab instance
|
||||
*/
|
||||
class GitlabCommitsBridge extends BridgeAbstract{
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = 'Pierre Mazière';
|
||||
$this->name = 'Gitlab Commits';
|
||||
$this->uri = '';
|
||||
$this->description = 'Returns the commits of a project hosted on a gitlab instance';
|
||||
public $maintainer = 'Pierre Mazière';
|
||||
public $name = 'Gitlab Commits';
|
||||
public $uri = '';
|
||||
public $description = 'Returns the commits of a project hosted on a gitlab instance';
|
||||
|
||||
$this->parameters[] = array(
|
||||
public $parameters = array( array(
|
||||
'uri'=>array(
|
||||
'name'=>'Base URI',
|
||||
'defaultValue'=>'https://gitlab.com'
|
||||
|
@ -30,8 +23,7 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
|||
'name'=>'Project branch',
|
||||
'defaultValue'=>'master'
|
||||
)
|
||||
);
|
||||
}
|
||||
));
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue