Class flWidgetBreadcrumb
flWidgetBreadcrumb Class
Create and manage breadcrumb trails.
Package: fusionLib
Copyright:
Copyright (c) 2012 - 2013 fusionLib. All rights reserved.
Located at system/libs/Widget/flWidgetBreadcrumb.php
Methods summary
public
flWidgetBreadcrumb
|
#
setClass( string $css )
Set the CSS class to use.
Set the CSS class to use.
Parameters
- $css
- The CSS class, default is 'breadcrumbwidget'.
Returns
|
public
flWidgetBreadcrumb
|
#
setLastAsLink( boolean $linkLast = true )
Set last crumb should be a link.
Set last crumb should be a link.
Parameters
- $linkLast
- true if the last crumb in the trail should be a link; else false.
Returns
|
public
flBreadcrumb
|
#
addCrumb( string $name, string $link )
Add a crumb to the trail.
Add a crumb to the trail.
Parameters
- $name
- The anchor text for the link.
- $link
- The link URI
Returns
flBreadcrumb This object.
|
public
string
|
#
getCrumbs( string $separator = ' / ' )
Get the crumbs as a string.
Get the crumbs as a string.
Parameters
- $separator
- The string to place between the crumbs.
Returns
string The string holding the combined crumbs.
|
public
array
|
#
getCrumbsArray( )
Get the crumbs as an array.
Get the crumbs as an array.
Returns
array The array of crumbs, 0 = text, 1 = URI.
|
public
string
|
#
render( )
Render the crumbs as a HTML ul list.
Render the crumbs as a HTML ul list.
Returns
string The HTML to create the trail.
|
Properties summary
protected
string
|
$css
The CSS class to apply to the table.
The CSS class to apply to the table.
|
|
protected
boolean
|
$linkLast
Flags if last crumb should be a link or not.
Flags if last crumb should be a link or not.
|
|