NAME Catalyst::Plugin::BigSitemap::SitemapBuilder - Helper object for the BigSitemap plugin

DESCRIPTION

This object's role is to accept a collection of WWW::Sitemap::XML::URL objects via the add method.

CONSTRUCTOR

There are two required parameters that must be passed to the constructor, sitemap_base_uri and sitemap_name_format.

ATTRIBUTES

urls - ArrayRef of WWW::Sitemap::XML::URL
sitemap_base_uri - Str
sitemap_name_format - URI::http
failed_count - Int

A running count of all the URLs that failed validation in the WWW::Sitemap::XML::URL module and could not be added to the collection.. This should always report zero unless you've screwed something up in your sub my_action_sitemap controller methods.

METHODS

add( $myUrlString ) =item add( loc => ?, changefreq => ?, priority => ? ) # last modified

This method comes in two flavors. The first, take a single string parameter that should be the stringified version of the URL you want to add to the sitemap. The second flavor takes a hashref

urls_count()
sitemap_count()
sitemap_index()
sitemap($index)

Note: $index is a 1-based index (as well as being an integer value, if you didn't figure that much out ;) )

INTERNAL USE METHODS

Methods you're not meant to use directly.

_urls_slice($index)

Returns an array slice of URLs for the sitemap at the provided index. Sitemaps can consist of up to 50,000 URLS, when creating the slice, we use the assumption that we'll try to get up to 50,000 per each sitemap.

SEE ALSO

AUTHOR

Derek J. Curtis <djcurtis@summersetsoftware.com>

Summerset Software, LLC

http://www.summersetsoftware.com

COPYRIGHT

Derek J. Curtis 2013

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 26:

Unknown directive: =shift

Around line 28:

'=item' outside of any '=over'