public function findAll($id)
    {
        $result = array();
        $root = $this->findById($id);

        if ($root !== false) {
            $result = array_merge($result, array($root));
        }

        return array_merge($result, $this->findParentNodesByChildId($id));
    }
public function findAll($id)
    {
        $result = array();
        $root = $this->findById($id);

        if ($root !== false) {
            $result = array_merge($result, array($root));
        }

        return array_merge($result, $this->findParentNodesByChildId($id));
    }
public function findAll ( $ id ) { $ result = array ( ) ; $ root = $ this -> findById ( $ id ) ; if ( $ root !== false ) { $ result = array_merge ( $ result , array ( $ root ) ) ; } return array_merge ( $ result , $ this -> findParentNodesByChildId ( $ id ) ) ; }
Finds all matches
This method is useful for making breadcrumbs

@param string $id Either parent or child id
@return array
Finds all matches This method is useful for making breadcrumbs