|
NAMESearch::Sitemap::URL - URL Helper class for Search::SitemapSYNOPSISuse Search::Sitemap; DESCRIPTIONThis is a helper class that supports Search::Sitemap and Search::Sitemap::Index.METHODSnew()loc()Change the URL associated with this object. For a Search::Sitemap this specifies the URL to add to the sitemap, for a Search::Sitemap::Index, this is the URL to the sitemap.changefreq()Set the change frequency of the object. This field is not used in sitemap indexes, only in sitemaps.lastmod()Set or retrieve the last modified time. This will return a DateTime object. When setting it, you can provide any of these types of values:
Note that in order to conserve memory, any of these items that you provide will be converted to a complete ISO8601 time string when they are stored. This means that if you pass an object to lastmod(), you can't get it back out. If anyone actually has a need to get the objects back out, then I might make a configuration option to store the objects internally. If you have suggestions for other types of date/time objects or formats that would be useful, let me know and I'll consider them. priority()Get or set the priority. This field is not used in sitemap indexes, only in sitemaps.mobile()Set to a true value if this URL refers to a page that is intended for mobile devices. This will affect how some search engines index the URL.For more information on mobile sitemaps, see <http://www.google.com/support/webmasters/bin/answer.py?answer=34627> as_eltReturns this URL and it's associated data as an XML::Twig::Elt object. This is primarily an internal use method, you probably don't need to mess with it.MODULE HOME PAGEThe home page of this module is <http://www.jasonkohles.com/software/search-sitemap>. This is where you can always find the latest version, development versions, and bug reports. You will also find a link there to report bugs.SEE ALSOSearch::SitemapSearch::Sitemap::Index Search::Sitemap::Ping <http://www.jasonkohles.com/software/search-sitemap/> <http://www.sitemaps.org/> <http://www.google.com/support/webmasters/bin/answer.py?answer=34648> AUTHORJason Kohles, <email@jasonkohles.com>COPYRIGHT AND LICENSECopyright (C) 2005-2009 by Jason KohlesThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |