This commit is contained in:
Paul de Rosanbo 2015-02-01 15:15:30 +01:00
parent e1b5c9cda3
commit 9cd174ceab

View file

@ -5,7 +5,7 @@
* Returns the N most recent documents, sorting by date (most recent first). * Returns the N most recent documents, sorting by date (most recent first).
* 2014-05-25 * 2014-05-25
* *
* @name ParuVenduImmoBridge * @name Paru Vendu Immobilier
* @homepage http://www.paruvendu.fr/immobilier/ * @homepage http://www.paruvendu.fr/immobilier/
* @description Returns the N most recent documents. * @description Returns the N most recent documents.
* @maintainer polo2ro * @maintainer polo2ro
@ -13,6 +13,7 @@
*/ */
class ParuVenduImmoBridge extends BridgeAbstract class ParuVenduImmoBridge extends BridgeAbstract
{ {
private $request = '';
public function collectData(array $param) 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'; $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'])) { if (isset($param['minarea'])) {
$this->request .= ' '.$param['minarea'].' m2';
$link .= '&sur0='.urlencode($param['minarea']); $link .= '&sur0='.urlencode($param['minarea']);
} }
@ -33,6 +35,7 @@ class ParuVenduImmoBridge extends BridgeAbstract
} }
if (isset($param['lo'])) { if (isset($param['lo'])) {
$this->request .= ' In: '.$param['lo'];
$link .= '&lo='.urlencode($param['lo']); $link .= '&lo='.urlencode($param['lo']);
} }
@ -63,7 +66,7 @@ class ParuVenduImmoBridge extends BridgeAbstract
} }
public function getName(){ public function getName(){
return 'ParuVenduImmo'; return 'Paru Vendu Immobilier'.$this->request;
} }
public function getURI(){ public function getURI(){