protected function _getNodeById( $id )
	{
		$conn = $this->_dbm->acquire( $this->_dbname );

		try
		{
			$stmt = $conn->create( str_replace( ':cond', '1=1', $this->_config['get'] ) );
			$stmt->bind( 1, $id, MW_DB_Statement_Abstract::PARAM_INT );
			$stmt->bind( 2, 0, MW_DB_Statement_Abstract::PARAM_INT );
			$result = $stmt->execute();

			if( ( $row = $result->fetch() ) === false ) {
				throw new MW_Tree_Exception( sprintf( 'No node with ID "%1$d" found', $id ) );
			}

			$node = $this->_createNode( $row );

			$this->_dbm->release( $conn, $this->_dbname );
		}
		catch( Exception $e )
		{
			$this->_dbm->release( $conn, $this->_dbname );
			throw $e;
		}

		return $node;
	}
protected function _getNodeById( $id )
	{
		$conn = $this->_dbm->acquire( $this->_dbname );

		try
		{
			$stmt = $conn->create( str_replace( ':cond', '1=1', $this->_config['get'] ) );
			$stmt->bind( 1, $id, MW_DB_Statement_Abstract::PARAM_INT );
			$stmt->bind( 2, 0, MW_DB_Statement_Abstract::PARAM_INT );
			$result = $stmt->execute();

			if( ( $row = $result->fetch() ) === false ) {
				throw new MW_Tree_Exception( sprintf( 'No node with ID "%1$d" found', $id ) );
			}

			$node = $this->_createNode( $row );

			$this->_dbm->release( $conn, $this->_dbname );
		}
		catch( Exception $e )
		{
			$this->_dbm->release( $conn, $this->_dbname );
			throw $e;
		}

		return $node;
	}
protected function _getNodeById ( $ id ) { $ conn = $ this -> _dbm -> acquire ( $ this -> _dbname ) ; try { $ stmt = $ conn -> create ( str_replace ( ':cond' , '1=1' , $ this -> _config [ 'get' ] ) ) ; $ stmt -> bind ( 1 , $ id , MW_DB_Statement_Abstract :: PARAM_INT ) ; $ stmt -> bind ( 2 , 0 , MW_DB_Statement_Abstract :: PARAM_INT ) ; $ result = $ stmt -> execute ( ) ; if ( ( $ row = $ result -> fetch ( ) ) === false ) { throw new MW_Tree_Exception ( sprintf ( 'No node with ID "%1$d" found' , $ id ) ) ; } $ node = $ this -> _createNode ( $ row ) ; $ this -> _dbm -> release ( $ conn , $ this -> _dbname ) ; } catch ( Exception $ e ) { $ this -> _dbm -> release ( $ conn , $ this -> _dbname ) ; throw $ e ; } return $ node ; }
Returns a single node identified by its ID.

@param string $id Unique ID
@throws MW_Tree_Exception If node is not found
@throws Exception If anything unexcepted occurs
@return MW_Tree_Node_Interface Tree node
Returns a single node identified by its ID .