mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
556b8a2452
commit
9a0da733ef
129 changed files with 834 additions and 834 deletions
|
@ -2,11 +2,11 @@
|
|||
class AllocineFRBridge extends BridgeAbstract{
|
||||
|
||||
|
||||
public $maintainer = "superbaillot.net";
|
||||
public $name = "Allo Cine Bridge";
|
||||
public $uri = "http://www.allocine.fr";
|
||||
public $description = "Bridge for allocine.fr";
|
||||
public $parameters = array( array(
|
||||
const MAINTAINER = "superbaillot.net";
|
||||
const NAME = "Allo Cine Bridge";
|
||||
const URI = "http://www.allocine.fr";
|
||||
const DESCRIPTION = "Bridge for allocine.fr";
|
||||
const PARAMETERS = array( array(
|
||||
'category'=>array(
|
||||
'name'=>'category',
|
||||
'type'=>'list',
|
||||
|
@ -38,10 +38,10 @@ class AllocineFRBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
public function getName(){
|
||||
return $this->name.' : '
|
||||
return self::NAME.' : '
|
||||
.array_search(
|
||||
$this->getInput('category'),
|
||||
$this->parameters[$this->queriedContext]['category']['values']
|
||||
self::PARAMETERS[$this->queriedContext]['category']['values']
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ class AllocineFRBridge extends BridgeAbstract{
|
|||
|
||||
$category=array_search(
|
||||
$this->getInput('category'),
|
||||
$this->parameters[$this->queriedContext]['category']['values']
|
||||
self::PARAMETERS[$this->queriedContext]['category']['values']
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue