NAME
WWW::Sitemapper::Tree - Tree structure of pages.
VERSION
Version 0.01
ATTRIBUTES
id
Unique id of the node.
uri
URI object for page. Represents the link found on the web site - before any redirections.
title
Title of page.
last_modified
Value of Last-modified header.
nodes
An array of all links found on the page - represented by WWW::Sitemapper::Tree.
METHODS
find_node
my $map = MyWebSite::Map->new(
site => 'http://mywebsite.com/',
status_storage => 'sitemap.data.storable',
);
my $node = $map->tree->find_node( $uri );
Searches the cache for a node with matching uri.
Note: use it only at the root element.
redirected_from
my $parent = $map->tree->redirected_from( $uri );
Searches the redirects cache for a node with matching uri.
Note: use it only at the root element.
add_node
my $parent = $map->tree->find_node( $parent_uri );
my $child = $parent->add_node(
WWW::Sitemapper::Tree->new(
uri => $uri,
)
);
Searches the cache for a node with matching uri.
Note: use it only at the root element.
loc
URI object for page. Represents the base location of page - which takes into account any redirections.
AUTHOR
Alex J. G. Burzyński, <ajgb@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2010 by Alex J. G. Burzyński
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.