public function getPath( $id )
	{
		$result = array();
		$node = $this->getNode( $id, MW_Tree_Manager_Abstract::LEVEL_ONE );

		$search = $this->createSearch();

		$expr = array(
			$search->compare( '<=', $this->_searchConfig['left']['code'], $node->left ),
			$search->compare( '>=', $this->_searchConfig['right']['code'], $node->right ),
		);

		$search->setConditions( $search->combine( '&&', $expr ) );
		$search->setSortations( array( $search->sort( '+', $this->_searchConfig['left']['code'] ) ) );

		$results = $this->searchNodes( $search );

		foreach ( $results as $item ) {
			$result[$item->getId()] = $item;
		}

		return $result;
	}
public function getPath( $id )
	{
		$result = array();
		$node = $this->getNode( $id, MW_Tree_Manager_Abstract::LEVEL_ONE );

		$search = $this->createSearch();

		$expr = array(
			$search->compare( '<=', $this->_searchConfig['left']['code'], $node->left ),
			$search->compare( '>=', $this->_searchConfig['right']['code'], $node->right ),
		);

		$search->setConditions( $search->combine( '&&', $expr ) );
		$search->setSortations( array( $search->sort( '+', $this->_searchConfig['left']['code'] ) ) );

		$results = $this->searchNodes( $search );

		foreach ( $results as $item ) {
			$result[$item->getId()] = $item;
		}

		return $result;
	}
public function getPath ( $ id ) { $ result = array ( ) ; $ node = $ this -> getNode ( $ id , MW_Tree_Manager_Abstract :: LEVEL_ONE ) ; $ search = $ this -> createSearch ( ) ; $ expr = array ( $ search -> compare ( '<=' , $ this -> _searchConfig [ 'left' ] [ 'code' ] , $ node -> left ) , $ search -> compare ( '>=' , $ this -> _searchConfig [ 'right' ] [ 'code' ] , $ node -> right ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ search -> setSortations ( array ( $ search -> sort ( '+' , $ this -> _searchConfig [ 'left' ] [ 'code' ] ) ) ) ; $ results = $ this -> searchNodes ( $ search ) ; foreach ( $ results as $ item ) { $ result [ $ item -> getId ( ) ] = $ item ; } return $ result ; }
Returns a list if node IDs, that are in the path of given node ID.

@param integer $id ID of node to get the path for
@return array Associative list of nodes implementing MW_Tree_Node_Interface with IDs as keys
Returns a list if node IDs that are in the path of given node ID .