1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-30 19:40:00 +02:00

[bridges] use constants instead of variable members

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière
2016-08-30 11:23:55 +02:00
parent 556b8a2452
commit 9a0da733ef
129 changed files with 834 additions and 834 deletions

View File

@@ -1,12 +1,12 @@
<?php
class VineBridge extends BridgeAbstract {
public $maintainer = "ckiw";
public $name = "Vine bridge";
public $uri = "http://vine.co/";
public $description = "Returns the latests vines from vine user page";
const MAINTAINER = "ckiw";
const NAME = "Vine bridge";
const URI = "http://vine.co/";
const DESCRIPTION = "Returns the latests vines from vine user page";
public $parameters = array( array(
const PARAMETERS = array( array(
'u'=>array(
'name'=>'User id',
'required'=>true
@@ -15,7 +15,7 @@ class VineBridge extends BridgeAbstract {
public function collectData(){
$html = '';
$uri = $this->uri.'/u/'.$this->getInput('u').'?mode=list';
$uri = self::URI.'/u/'.$this->getInput('u').'?mode=list';
$html = $this->getSimpleHTMLDOM($uri)
or $this->returnServerError('No results for this query.');