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:
@@ -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.');
|
||||
|
Reference in New Issue
Block a user