HTML::Menu::Hierarchical::ItemInfo - Used by HTML::Menu::Hierarchical. Provides information about the menu item being processed.
Created by HTML::Menu::Hierarchical objects.
Information holder/gatherer representing one menu item.
Returns true if the current item has child items in the configuration. False otherwise.
Returns true if the current item is the selected one.
Returns true if the current item is in the path from the root of the hierarchy to the selected item.
Returns the ItemInfo object corresponding to the selected menu item.
Returns the level in the hierarchy where the selected menu item is located. Levels start at zero.
Returns the maximum level in the hierarchy to currently be displayed.
Returns true if the current menu item is open, i.e., the current item has child items and is also in the open path. Return false otherwise.
Returns true if the current menu item is the first one to be displayed.
Returns true if the current menu item is the last to be displayed.
Returns true if the current menu item is the first of its siblings to be displayed, false otherwise.
Returns true if the current menu item is the last of its siblings to be displayed, false otherwise.
Returns the value of the 'info' field for the current menu item in the navigation configuration. Instead of getting the 'info' hash and then accessing a field within it, you may call a method to get that field directly. This is implemented with AUTOLOAD, so if you do something like my $text = $info_obj->getText; my $image_src = $info_obj->getImageSrc; or my $text = $info_obj->getText; my $image_src = $info_obj->get_image_src; you will be given back the corresponding values in the 'info' hash.
Returns the 'name' field for the current menu item in the navigation configuration. This is used to determine which menu item has been selected.
Returns the ItemInfo object corresponding to the next displayed menu item.
Returns the ItemInfo object corrsponding to the previously displayed menu item.
Returns the level in the menu hierarchy where the current menu item is located. Levels start at zero.
Returns the info object for the current item's parent.
URL encodes the given string. This does full url-encoding, so a space is %20, not a '+'.
Takes a hash containing key/value pairs and returns a url-encoded query string appropriate for adding to the end of a url. If a value is an array, it is assumed to be a multivalued input field and is added to the query string as such. If you want to encode the query stirng in the new style recommended by the W3C (use a semicolon as a separator in place of ampersand), pass a true value for the new_style_url parameter when creating the HTML::Menu::Hierarchical object. This will become the default in a later release.
Decodes the given url-encoded string.
Decodes the url-encoded query string and returns a hash contain key/value pairs from the query string. If a field appears more than once in the query string, it's value will be returned as a reference to an array of values.
Takes the key/value pairs in $var_hash and tacks them onto the end of $url as a query string.
Escapes the given text so that it is not interpreted as HTML.
Unescape the escaped text.
E.g., unescapeHtml($html) becomes unescape_html($html)
hasChildrenDisplayed() - tell whether or not the current item's children will be displayed
Please send bug reports/feature requests to don@owensnet.com.
Don Owens <don@owensnet.com>
Copyright (c) 2003 Don Owens All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: ItemInfo.pm,v 1.30 2005/06/16 15:03:00 don Exp $
To install HTML::Menu::Hierarchical, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Menu::Hierarchical
CPAN shell
perl -MCPAN -e shell install HTML::Menu::Hierarchical
For more information on module installation, please visit the detailed CPAN module installation guide.