[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:
Pierre Mazière 2016-08-27 21:03:26 +02:00
parent 2301a12cc6
commit de1b39c8e5
133 changed files with 1433 additions and 1848 deletions

View file

@ -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];