getNbRep()); } public function selectTypeSearch($form) { $type = array('siret','raisonSociale', 'numero', 'voie', 'cpVille', 'telFax', 'naf'); $i = 0; foreach ($type as $key => $element) { if($key == 'siret') return (false); if(!empty($form[$element])) $i++; } return (($i == 1)?true:false); } public function getQueryLink($parametres) { $url = '/recherche/entreprise/siret/'.$parametres['siret']. '/raisonSociale/'.$parametres['raisonSociale']. '/numero/'.$parametres['numero']. '/voie/'.$parametres['voie']. '/cpVille/'.$parametres['cpVille']. '/telFax/'.$parametres['telFax']. '/naf/'.$parametres['naf']. '/pays/'.$parametres['pays']; return ($url); } protected function replaceAcronyme($result) { $type = array('AV' => 'Avenue', 'RUE' => 'Rue', 'BD' => 'Boulevard', ' R ' => 'Rue', 'RTE' => 'Route'); foreach($result->Results->Company as $societe) { foreach ($type as $element => $val) { $societe->Address->Street = str_replace($element, $val, $societe->Address->Street); } } return ($result); } protected function setCountryCode($CountryCode, $listeAutorized) { if (array_key_exists($CountryCode, $listeAutorized)) { return ($this->listAutorized[$CountryCode]); } return (false); } public function getPays($code) { return ($this->listAutorized[$code]); } }