soapG = $soap; $this->label = new Zend_Config_Ini('Giant/Traductions/label.ini', 'search'); $this->labelResults = new Zend_Config_Ini('Giant/Traductions/results.ini', 'search'); $this->headerSearch = new stdClass(); $this->headerSearch->IncludePhoneticMatches = FALSE; $this->headerSearch->IncludeSuggestions = FALSE; $this->soapG->getAllMethodesFromWsdl('search'); } protected function search($paramatres, $page) { $this->query = $paramatres->Query; $search = array_merge((array)$paramatres, (array)$this->headerSearch); try { $result = $this->soapG->search($search); } catch (SoapFault $soapFault) { echo 'Erreur Soap : '.$soapFault->getMessage();} return ($result); } public function advancedSearch($parametres, $page) { $advanced = array_merge((array)$parametres, (array)$this->headerSearch); $this->query = $advanced->Query; try { $result = $this->soapG->advancedSearch($advanced); } catch (SoapFault $soapFault) { echo 'Erreur Soap : '.$soapFault->getMessage();} return($result); } protected function Tier2Search($Query, $StartRow, $NumRows) { $parametres = new stdClass(); $parametres->Query = $Query; $parametres->StartRow = $StartRow; $parametres->NumRows = $NumRows; try { $this->soapG->Tier2Search($parametres); } catch (SoapFault $soapFault) { echo 'Erreur Soap : '.$soapFault->getMessage();} } public function Tier2SearchMethods() { try { $result = $this->soapG->Tier2SearchMethods(); } catch (SoapFault $soapFault) { echo 'Erreur Soap : '.$soapFault->getMessage(); } return ($result); } public function __destruct() { unset($this->soapG); } }