function DoSearch($query, $start=0, $max=10, $filter=false, $restrict="", $safe=false, $lr="", $ie="", $oe="")
	{
		$result = null;
		$continue = true;
		$counter = 0;
		
		while ($continue)
		{
			$counter++;
			try
			{
				$result = $this->_googleSoap($query, $start, $max, $filter, $restrict, $safe, $lr, $ie, $oe);
				$continue = false;
			}
			catch (exception $ex)
			{
				$this->FailedRequests++;
				
				if (preg_match("/Daily limit/i", $ex->getMessage()) || preg_match("/Invalid/i", $ex->getMessage())) 
				{
					throw $ex;
				}

				if ($counter > 2)
				{
					throw new Exception("Tried to contact Google API $counter times without success:" . $ex->getMessage());
				}

			}

		}
		
		return $result;

	}
function DoSearch($query, $start=0, $max=10, $filter=false, $restrict="", $safe=false, $lr="", $ie="", $oe="")
	{
		$result = null;
		$continue = true;
		$counter = 0;
		
		while ($continue)
		{
			$counter++;
			try
			{
				$result = $this->_googleSoap($query, $start, $max, $filter, $restrict, $safe, $lr, $ie, $oe);
				$continue = false;
			}
			catch (exception $ex)
			{
				$this->FailedRequests++;
				
				if (preg_match("/Daily limit/i", $ex->getMessage()) || preg_match("/Invalid/i", $ex->getMessage())) 
				{
					throw $ex;
				}

				if ($counter > 2)
				{
					throw new Exception("Tried to contact Google API $counter times without success:" . $ex->getMessage());
				}

			}

		}
		
		return $result;

	}
function DoSearch ( $ query , $ start = 0 , $ max = 10 , $ filter = false , $ restrict = "" , $ safe = false , $ lr = "" , $ ie = "" , $ oe = "" ) { $ result = null ; $ continue = true ; $ counter = 0 ; while ( $ continue ) { $ counter ++ ; try { $ result = $ this -> _googleSoap ( $ query , $ start , $ max , $ filter , $ restrict , $ safe , $ lr , $ ie , $ oe ) ; $ continue = false ; } catch ( exception $ ex ) { $ this -> FailedRequests ++ ; if ( preg_match ( "/Daily limit/i" , $ ex -> getMessage ( ) ) || preg_match ( "/Invalid/i" , $ ex -> getMessage ( ) ) ) { throw $ ex ; } if ( $ counter > 2 ) { throw new Exception ( "Tried to contact Google API $counter times without success:" . $ ex -> getMessage ( ) ) ; } } } return $ result ; }
Queries google for the specified search query

@param string $query
@param int $start
@param int $max
@param bool $filter
@param bool $restrict
@param bool $safe
@param string $lr
@param string $ie
@param string $oe
@throws Exception
Queries google for the specified search query