protected function buildPathToAncestor($lastAncestor)
    {
        $path = $this->buildPathToArea();
        foreach((array) $this->ancestors as $ancestor => $primaryKeyValues) {
            $path[] = $ancestor;
            if($ancestor != $lastAncestor) {
                $path[] = implode('|', array_values($primaryKeyValues));
            } else {
                $path[] = 'list';
                break;
            }
        }
        return $path;
    }
protected function buildPathToAncestor($lastAncestor)
    {
        $path = $this->buildPathToArea();
        foreach((array) $this->ancestors as $ancestor => $primaryKeyValues) {
            $path[] = $ancestor;
            if($ancestor != $lastAncestor) {
                $path[] = implode('|', array_values($primaryKeyValues));
            } else {
                $path[] = 'list';
                break;
            }
        }
        return $path;
    }
protected function buildPathToAncestor ( $ lastAncestor ) { $ path = $ this -> buildPathToArea ( ) ; foreach ( ( array ) $ this -> ancestors as $ ancestor => $ primaryKeyValues ) { $ path [ ] = $ ancestor ; if ( $ ancestor != $ lastAncestor ) { $ path [ ] = implode ( '|' , array_values ( $ primaryKeyValues ) ) ; } else { $ path [ ] = 'list' ; break ; } } return $ path ; }
builds path to an ancestor
builds path to an ancestor