2011-03-30 14:04:17 +00:00
|
|
|
<?php
|
2011-04-06 13:13:14 +00:00
|
|
|
/**
|
|
|
|
* Class utilisé pour la gestion du formatage et l'utilisation des données de la recherch Type Google
|
|
|
|
* Pour une meilleur utilisation des données.
|
|
|
|
*
|
|
|
|
* @author dlasserre
|
|
|
|
*
|
|
|
|
*/
|
2011-03-30 14:04:17 +00:00
|
|
|
Class SimpleSearch
|
|
|
|
{
|
|
|
|
private $RaisonSocial;
|
|
|
|
private $NumeroRue;
|
|
|
|
private $Rue;
|
|
|
|
private $CodePostalVille;
|
|
|
|
private $POST;
|
|
|
|
|
|
|
|
public $Query;
|
|
|
|
|
|
|
|
function __construct($formR)
|
|
|
|
{
|
|
|
|
$this->POST = $formR;
|
|
|
|
self::_returnQuery();
|
|
|
|
}
|
|
|
|
|
|
|
|
private function _setRaisonSocial()
|
|
|
|
{
|
|
|
|
return ($this->RaisonSocial = $this->POST['raisonSociale']);
|
|
|
|
}
|
|
|
|
|
|
|
|
private function _setNumeroRue()
|
|
|
|
{
|
|
|
|
return ($this->NumeroRue = $this->POST['numVoie']);
|
|
|
|
}
|
|
|
|
|
|
|
|
private function _setRue()
|
|
|
|
{
|
|
|
|
return ($this->Rue = $this->POST['voie']);
|
|
|
|
}
|
|
|
|
|
|
|
|
private function _setCodePostalVille()
|
|
|
|
{
|
|
|
|
return ($this->CodePostalVille = $this->POST['cpVille']);
|
|
|
|
}
|
|
|
|
|
|
|
|
private function _returnQuery()
|
|
|
|
{
|
|
|
|
$this->Query = self::_setRaisonSocial().' ';
|
|
|
|
$this->Query .= self::_setNumeroRue(). ' ';
|
|
|
|
$this->Query .= self::_setRue(). ' ';
|
|
|
|
$this->Query .= self::_setCodePostalVille();
|
|
|
|
return ($this->Query);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|