private function _googleSoap($query, $start=0, $max=10, $filter=false, $restrict="", $safe=false, $lr="", $ie="", $oe="")
	{
		$wsdl = new SOAP_WSDL('http://api.google.com/GoogleSearch.wsdl');
		$soapclient = $wsdl->getProxy();
		
		if (get_class($soapclient) != "SOAP_Fault")
		{
			$result = $soapclient->doGoogleSearch($this->Key,$query,$start,$max,$filter,$restrict,$safe,$lr,$ie,$oe);
		}
		else
		{
			throw new Exception("SOAP_Fault: " . $soapclient->message);
		}
		
		if (PEAR::isError($result)) 
		{
			throw new Exception("PEAR Exception: " . $result->message);
		}
		else 
		{
			return $result;
		}

	}
private function _googleSoap($query, $start=0, $max=10, $filter=false, $restrict="", $safe=false, $lr="", $ie="", $oe="")
	{
		$wsdl = new SOAP_WSDL('http://api.google.com/GoogleSearch.wsdl');
		$soapclient = $wsdl->getProxy();
		
		if (get_class($soapclient) != "SOAP_Fault")
		{
			$result = $soapclient->doGoogleSearch($this->Key,$query,$start,$max,$filter,$restrict,$safe,$lr,$ie,$oe);
		}
		else
		{
			throw new Exception("SOAP_Fault: " . $soapclient->message);
		}
		
		if (PEAR::isError($result)) 
		{
			throw new Exception("PEAR Exception: " . $result->message);
		}
		else 
		{
			return $result;
		}

	}
private function _googleSoap ( $ query , $ start = 0 , $ max = 10 , $ filter = false , $ restrict = "" , $ safe = false , $ lr = "" , $ ie = "" , $ oe = "" ) { $ wsdl = new SOAP_WSDL ( 'http://api.google.com/GoogleSearch.wsdl' ) ; $ soapclient = $ wsdl -> getProxy ( ) ; if ( get_class ( $ soapclient ) != "SOAP_Fault" ) { $ result = $ soapclient -> doGoogleSearch ( $ this -> Key , $ query , $ start , $ max , $ filter , $ restrict , $ safe , $ lr , $ ie , $ oe ) ; } else { throw new Exception ( "SOAP_Fault: " . $ soapclient -> message ) ; } if ( PEAR :: isError ( $ result ) ) { throw new Exception ( "PEAR Exception: " . $ result -> message ) ; } else { return $ result ; } }
Makes SOAP request to google
Makes SOAP request to google