mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-16 21:44:01 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
class BandcampBridge extends BridgeAbstract{
|
||||
|
||||
public $maintainer = "sebsauvage";
|
||||
public $name = "Bandcamp Tag";
|
||||
public $uri = "http://bandcamp.com/";
|
||||
public $description = "New bandcamp release by tag";
|
||||
public $parameters = array( array(
|
||||
const MAINTAINER = "sebsauvage";
|
||||
const NAME = "Bandcamp Tag";
|
||||
const URI = "http://bandcamp.com/";
|
||||
const DESCRIPTION = "New bandcamp release by tag";
|
||||
const PARAMETERS = array( array(
|
||||
'tag'=>array(
|
||||
'name'=>'tag',
|
||||
'type'=>'text',
|
||||
@@ -33,7 +33,7 @@ class BandcampBridge extends BridgeAbstract{
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return $this->uri.'tag/'.urlencode($this->getInput('tag')).'?sort_field=date';
|
||||
return self::URI.'tag/'.urlencode($this->getInput('tag')).'?sort_field=date';
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
|
Reference in New Issue
Block a user