extranet/includes/giant/modulesGiants/Class/AdvancedSearch.Class.php
2011-04-06 13:13:14 +00:00

78 lines
1.5 KiB
PHP

<?php
/**
* Class etant servie pour le formatage et l'utilisation du retour de Giant.
* Elle permet d'organiser les informations pour mieu les réutiliser.
*
* @author dlasserre
*
*/
Class AdvancedSearch
{
private $POST;
public $CompanyId;
public $RegisteredName;
public $Building;
public $Street;
public $HouseNumber;
public $City;
public $Postcode;
public $State;
public $Country;
public $AddressType;
public $VatNumber;
public $CompanyRegisterNumber;
public $CompanyWebSite;
public $CompanyEmail;
public $ParentCompany;
public $LegalForm;
public $TradingName;
public $NaceCodes;
function __construct($POST)
{
$this->POST = $POST;
self::_setCompanyId();
}
public function _setNaceCodes()
{
return ($this->NaceCodes = $this->POST['naf']);
}
public function _setCompanyId()
{
return ($this->CompanyId = $this->POST['siret']);
}
public function _setRegisteredName()
{
return ($this->RegisteredName = $this->POST['raisonSociale']);
}
public function _setStreet()
{
return ($this->Street = $this->POST['voie']);
}
public function _setHouseNumber()
{
return ($this->Building = $this->POST['numVoie']);
}
public function _setPostcode()
{
return ($this->Postcode = $this->POST['cpVille']);
}
public function _createObject()
{
self::_setCompanyId();
self::_setNaceCodes();
self::_setRegisteredName();
self::_setStreet();
self::_setHouseNumber();
self::_setPostcode();
}
}
?>