src/Net/API/Google/Sitemap/Submit.php
static public function submit( $url )
	{
		if( $url instanceof ADT_URL )
			$url	= (string) $url;
		if( !is_string( $url ) )
			throw new InvalidArgumentException( 'URL must be string or instance of ADT_URL' );
		try
		{
			Net_Reader::readUrl( self::$baseUrl.urlencode( $url ) );
		}
		catch( Exception $e )
		{
			self::$lastError	= $e->getMessage();
			return FALSE;
		}
		return TRUE;
	}
static public function submit( $url )
	{
		if( $url instanceof ADT_URL )
			$url	= (string) $url;
		if( !is_string( $url ) )
			throw new InvalidArgumentException( 'URL must be string or instance of ADT_URL' );
		try
		{
			Net_Reader::readUrl( self::$baseUrl.urlencode( $url ) );
		}
		catch( Exception $e )
		{
			self::$lastError	= $e->getMessage();
			return FALSE;
		}
		return TRUE;
	}
static public function submit ( $ url ) { if ( $ url instanceof ADT_URL ) $ url = ( string ) $ url ; if ( ! is_string ( $ url ) ) throw new InvalidArgumentException ( 'URL must be string or instance of ADT_URL' ) ; try { Net_Reader :: readUrl ( self :: $ baseUrl . urlencode ( $ url ) ) ; } catch ( Exception $ e ) { self :: $ lastError = $ e -> getMessage ( ) ; return FALSE ; } return TRUE ; }
Sends sitemap URL to Google webmaster tools.
Stores error message if request went wrong.
@access		public
@static
@param		string		$url			URL of sitemap to submit
@return		boolean		Result of request
Sends sitemap URL to Google webmaster tools . Stores error message if request went wrong .