Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Helper for printing breadcrumbs

bool
$_linkLast= 'false'
Whether last page in breadcrumb should be hyperlinked
false
Details
int
$_minDepth= '1'
The minimum depth a page must have to be included when rendering
1
Details
breadcrumbs(
\Zend_Navigation_Container $container
=
null
)
:
\Zend_View_Helper_Navigation_Breadcrumbs
View helper entry point: Retrieves helper and optionally sets container to operate on
Name | Type | Description |
---|---|---|
$container | \Zend_Navigation_Container | [optional] container to operate on |
Type | Description |
---|---|
\Zend_View_Helper_Navigation_Breadcrumbs | fluent interface, returns self |

getLinkLast(
)
:
bool
Returns whether last page in breadcrumbs should be hyperlinked
Type | Description |
---|---|
bool | whether last page in breadcrumbs should be hyperlinked |

getPartial(
)
:
string|array|null
Returns partial view script to use for rendering menu
Type | Description |
---|---|
string|array|null |

getSeparator(
)
:
string
Returns breadcrumb separator
Type | Description |
---|---|
string | breadcrumb separator |

render(
\Zend_Navigation_Container $container
=
null
)
:
string
Renders helper
Implements {@link Zend_View_Helper_Navigation_Helper::render()}.
Name | Type | Description |
---|---|---|
$container | \Zend_Navigation_Container | [optional] container to render. Default is to render the container registered in the helper. |
Type | Description |
---|---|
string | helper output |

renderPartial(
\Zend_Navigation_Container $container
=
null, string|array $partial
=
null
)
:
string
Renders the given $container by invoking the partial view helper
The container will simply be passed on as a model to the view script, so in the script it will be available in
$this->container
.
Name | Type | Description |
---|---|---|
$container | \Zend_Navigation_Container | [optional] container to pass to view script. Default is to use the container registered in the helper. |
$partial | string|array | [optional] partial view script to use. Default is to use the partial registered in the helper. If an array is given, it is expected to contain two values; the partial view script to use, and the module where the script can be found. |
Type | Description |
---|---|
string | helper output |

renderStraight(
\Zend_Navigation_Container $container
=
null
)
:
string
Renders breadcrumbs by chaining 'a' elements with the separator registered in the helper
Name | Type | Description |
---|---|---|
$container | \Zend_Navigation_Container | [optional] container to render. Default is to render the container registered in the helper. |
Type | Description |
---|---|
string | helper output |

setLinkLast(
bool $linkLast
)
:
\Zend_View_Helper_Navigation_Breadcrumbs
Sets whether last page in breadcrumbs should be hyperlinked
Name | Type | Description |
---|---|---|
$linkLast | bool | whether last page should be hyperlinked |
Type | Description |
---|---|
\Zend_View_Helper_Navigation_Breadcrumbs | fluent interface, returns self |

setPartial(
string|array $partial
)
:
\Zend_View_Helper_Navigation_Breadcrumbs
Sets which partial view script to use for rendering menu
Name | Type | Description |
---|---|---|
$partial | string|array | partial view script or null. If an array is given, it is expected to contain two values; the partial view script to use, and the module where the script can be found. |
Type | Description |
---|---|
\Zend_View_Helper_Navigation_Breadcrumbs | fluent interface, returns self |

setSeparator(
string $separator
)
:
\Zend_View_Helper_Navigation_Breadcrumbs
Sets breadcrumb separator
Name | Type | Description |
---|---|---|
$separator | string | separator string |
Type | Description |
---|---|
\Zend_View_Helper_Navigation_Breadcrumbs | fluent interface, returns self |