protected function build_breadcrumb($path) {
        $bread = explode('/', $path);
        $crumbtrail = '';
        foreach ($bread as $crumb) {
            list($id, $name) = $this->explode_node_path($crumb);
            $name = empty($name) ? $id : $name;
            $breadcrumb[] = array(
                'name' => $name,
                'path' => $this->build_node_path($id, $name, $crumbtrail)
            );
            $tmp = end($breadcrumb);
            $crumbtrail = $tmp['path'];
        }
        return $breadcrumb;
    }
protected function build_breadcrumb($path) {
        $bread = explode('/', $path);
        $crumbtrail = '';
        foreach ($bread as $crumb) {
            list($id, $name) = $this->explode_node_path($crumb);
            $name = empty($name) ? $id : $name;
            $breadcrumb[] = array(
                'name' => $name,
                'path' => $this->build_node_path($id, $name, $crumbtrail)
            );
            $tmp = end($breadcrumb);
            $crumbtrail = $tmp['path'];
        }
        return $breadcrumb;
    }
protected function build_breadcrumb ( $ path ) { $ bread = explode ( '/' , $ path ) ; $ crumbtrail = '' ; foreach ( $ bread as $ crumb ) { list ( $ id , $ name ) = $ this -> explode_node_path ( $ crumb ) ; $ name = empty ( $ name ) ? $ id : $ name ; $ breadcrumb [ ] = array ( 'name' => $ name , 'path' => $ this -> build_node_path ( $ id , $ name , $ crumbtrail ) ) ; $ tmp = end ( $ breadcrumb ) ; $ crumbtrail = $ tmp [ 'path' ] ; } return $ breadcrumb ; }
Build the breadcrumb from a path.

@param string $path to create a breadcrumb from.
@return array containing name and path of each crumb.
Build the breadcrumb from a path .