get_initial_node()get_results()
HTML::Widgets::NavMenu::Iterator::Base - base class for the iterator.
For internal use only.
sub _init { my $self = shift;
$self->SUPER::_init(@_);
my %args = (@_);
$self->nav_menu($args{'nav_menu'}) or
die "nav_menu not specified!";
$self->{'html'} = [];
return 0;
}
sub _add_tags { my $self = shift; push (@{$self->{'html'}}, @_); }
sub _is_root { my $self = shift;
return ($self->stack->len() == 1);
}
sub _is_top_separator { my $self = shift;
return $self->top->_node->separator;
}
get_initial_node()Gets the initial node.
Gets the subs of the node.
Gets the new accumulated state.
get_results()Returns an array reference with the resultant HTML.
Copyright 2006 Shlomi Fish, all rights reserved.
This program is released under the following license: MIT X11.