mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-20 23:31:37 +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,13 +1,13 @@
|
||||
<?php
|
||||
class ParuVenduImmoBridge extends BridgeAbstract
|
||||
{
|
||||
public $maintainer = "polo2ro";
|
||||
public $name = "Paru Vendu Immobilier";
|
||||
public $uri = "http://www.paruvendu.fr";
|
||||
public $description = "Returns the ads from the first page of search result.";
|
||||
const MAINTAINER = "polo2ro";
|
||||
const NAME = "Paru Vendu Immobilier";
|
||||
const URI = "http://www.paruvendu.fr";
|
||||
const DESCRIPTION = "Returns the ads from the first page of search result.";
|
||||
|
||||
|
||||
public $parameters = array( array(
|
||||
const PARAMETERS = array( array(
|
||||
'minarea'=>array(
|
||||
'name'=>'Minimal surface m²',
|
||||
'type'=>'number'
|
||||
@@ -49,7 +49,7 @@ class ParuVenduImmoBridge extends BridgeAbstract
|
||||
list($href) = explode('#', $element->href);
|
||||
|
||||
$item = array();
|
||||
$item['uri'] = $this->uri.$href;
|
||||
$item['uri'] = self::URI.$href;
|
||||
$item['title'] = $element->title;
|
||||
$item['content'] = $img.$desc.$price;
|
||||
$this->items[] = $item;
|
||||
@@ -60,7 +60,7 @@ class ParuVenduImmoBridge extends BridgeAbstract
|
||||
public function getURI(){
|
||||
$appartment = '&tbApp=1&tbDup=1&tbChb=1&tbLof=1&tbAtl=1&tbPla=1';
|
||||
$maison = '&tbMai=1&tbVil=1&tbCha=1&tbPro=1&tbHot=1&tbMou=1&tbFer=1';
|
||||
$link = $this->uri.'/immobilier/annonceimmofo/liste/listeAnnonces?tt=1'.$appartment.$maison;
|
||||
$link = self::URI.'/immobilier/annonceimmofo/liste/listeAnnonces?tt=1'.$appartment.$maison;
|
||||
|
||||
if ($this->getInput('minarea')) {
|
||||
$link .= '&sur0='.urlencode($this->getInput('minarea'));
|
||||
|
Reference in New Issue
Block a user