extranet/includes/giant/modulesGiants/Class/SimpleSearch.Class.php

47 lines
925 B
PHP

<?php
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);
}
}
?>