From 9cd174ceab49a79a5b11055c0e537bf33c360bcd Mon Sep 17 00:00:00 2001 From: Paul de Rosanbo Date: Sun, 1 Feb 2015 15:15:30 +0100 Subject: [PATCH] Set name --- bridges/ParuVenduImmoBridge.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bridges/ParuVenduImmoBridge.php b/bridges/ParuVenduImmoBridge.php index 303a0904..cf3c3bba 100644 --- a/bridges/ParuVenduImmoBridge.php +++ b/bridges/ParuVenduImmoBridge.php @@ -5,7 +5,7 @@ * Returns the N most recent documents, sorting by date (most recent first). * 2014-05-25 * -* @name ParuVenduImmoBridge +* @name Paru Vendu Immobilier * @homepage http://www.paruvendu.fr/immobilier/ * @description Returns the N most recent documents. * @maintainer polo2ro @@ -13,6 +13,7 @@ */ class ParuVenduImmoBridge extends BridgeAbstract { + private $request = ''; public function collectData(array $param) { @@ -21,6 +22,7 @@ class ParuVenduImmoBridge extends BridgeAbstract $link = $this->getURI().'/immobilier/annonceimmofo/liste/listeAnnonces?tt=1&tbMai=1&tbVil=1&tbCha=1&tbPro=1&tbHot=1&tbMou=1&tbFer=1'; if (isset($param['minarea'])) { + $this->request .= ' '.$param['minarea'].' m2'; $link .= '&sur0='.urlencode($param['minarea']); } @@ -33,6 +35,7 @@ class ParuVenduImmoBridge extends BridgeAbstract } if (isset($param['lo'])) { + $this->request .= ' In: '.$param['lo']; $link .= '&lo='.urlencode($param['lo']); } @@ -63,7 +66,7 @@ class ParuVenduImmoBridge extends BridgeAbstract } public function getName(){ - return 'ParuVenduImmo'; + return 'Paru Vendu Immobilier'.$this->request; } public function getURI(){