Community
Participate
Working Groups
}
/**
* Unset a link from CrumbList
*
* @param int|array $_Key
*/
private function _removeCrumb($_Key){
if (isset($this->CrumbList[$_Key])) {
unset($this->CrumbList[$_Key]);
* Remove links from CrumbList
* Usage example:
* Remove more than one link with an array.
* $Breadcrumb->removeCrumb(array(0,3));
* Remove only one link.
* $Breadcrumb->removeCrumb(1);
function removeCrumb($_Key = NULL) {
if ($_Key === NULL) {
return;
if (is_array($_Key)) {
foreach ($_Key as $k) {
$this->_removeCrumb($k);
else {
$this->_removeCrumb($_Key);
// 'reindex' CrumbList.
$this->CrumbList = array_values($this->CrumbList);
function showBreadcrumbs() {
# for debugging purposes only
echo "Breadcrumbs: ";