Provides navigation functions
This is the code documentation for the SproutCMS project
Search documentation |
class NavigationProvides navigation functions
Variables
Functions
public bannerunknown Navigation::banner ( ); Returns the filename to use for a banner image, or NULL if no appropriate banner was found public breadcrumbstring Navigation::breadcrumb ( [ string $seperator_front [, array $post_crumbs [, string $seperator_back ]]] ); Renders breadcrumbs for the current page public buildBrowserTitleunknown Navigation::buildBrowserTitle ( string $page_title ); Builds the title that gets put into TITLE tags in the head of the page Just glues the site title onto the end of the page title public clearCachevoid Navigation::clearCache ( ); Nuke the navigation from the cache. Assumes the user is logged into the admin public currentRevealvoid Navigation::currentReveal ( ); Draws a current-reveal menu. This is a menu where the top level items all get shown, but the children only get shown for active items. Uses the same HTML as the pmm2 menu, just because that HTML has plenty of classes and ids, and I already had the code for that menu :) See http://www.rymill.com.au/ for an example of this type of menu. private currentRevealDrawnodevoid Navigation::currentRevealDrawnode ( PageNode $node , int $depth ); Draws a single item, and its sub-items public customBreadcrumbstring Navigation::customBreadcrumb ( array $crumbs [, string $seperator_front [, string $seperator_back ]] ); Renders a custom breadcrumb based on an array of crumbs. This includes a home tag. public getAllPagesunknown Navigation::getAllPages ( [ mixed $parent [, mixed $indent ]] ); Returns an array of all pages. public getCrumbsarray Navigation::getCrumbs ( [ array|null $post_crumbs ] ); This function does not have a description public getMatchedNodeunknown Navigation::getMatchedNode ( ); Alias for Navigation::matchedNode() public getPageNodeMatcherTreeNodeMatcher Navigation::getPageNodeMatcher ( ); Gets the matcher that is used to get the current page public getRootNodeunknown Navigation::getRootNode ( ); Gets the root node of the currently loaded navigation tree public loadPageTreePageNode Navigation::loadPageTree ( [ int $subsite_id [, bool $is_admin [, bool $set_root ]]] ); Loads the page tree from the database public matchedNodenull|Treenode Navigation::matchedNode ( ); Finds the node in the page tree which matched the specified TreenodeMatcher. public nonDropdownvoid Navigation::nonDropdown ( ); Generates a menu which does not have dropdowns, but just has the top-level items public pmm2void Navigation::pmm2 ( ); Draws a pmm2 menu, with the current page highlighted in the menu private pmm2Drawnodevoid Navigation::pmm2Drawnode ( PageNode $node , int $depth , mixed $pmm_max_depth , mixed $pmm_nav_limit ); Draws a single item, and its sub-items public renderCrumbsstring Navigation::renderCrumbs ( array $crumbs [, string $seperator_front [, string $seperator_back ]] ); Renders a custom breadcrumb based on an array of crumbs public rootNodeunknown Navigation::rootNode ( ); Alias for Navigation::getRootNode() public sectionNameunknown Navigation::sectionName ( ); Returns the name of this section, or the site name if no reasonable section can be determined. public setPageNodeMatchervoid Navigation::setPageNodeMatcher ( TreeNodeMatcher $page_node_matcher ); Sets a matcher that should be used to find the current page in the tree public simpleMenuarray Navigation::simpleMenu ( ); Returns a simple menu private simpleMenuDrawnodevoid Navigation::simpleMenuDrawnode ( mixed $node , mixed $depth , mixed $pmm_max_depth ); Private node drawing function for SuperFish menu. public superfishvoid Navigation::superfish ( ); Draws a superfish menu, with the current page highlighted in the menu private superfishDrawnodevoid Navigation::superfishDrawnode ( mixed $node , mixed $depth , mixed $pmm_max_depth ); Private node drawing function for SuperFish menu. public zippmenuChildrenvoid Navigation::zippmenuChildren ( mixed $page_url ); Draws a UL of children for a zippmenu |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|