public function getItem( $id, array $ref = array() )
	{
		$conf = reset( $this->_searchConfig );

		$criteria = $this->createSearch();
		$criteria->setConditions( $criteria->compare( '==', $conf['code'], $id ) );
		$items = $this->searchItems( $criteria, $ref );

		if( ( $item = reset( $items ) ) === false ) {
			throw new MShop_Exception( sprintf( 'Type item with ID "%1$s" in "%2$s" not found', $id, $conf['code'] ) );
		}

		return $item;
	}
public function getItem( $id, array $ref = array() )
	{
		$conf = reset( $this->_searchConfig );

		$criteria = $this->createSearch();
		$criteria->setConditions( $criteria->compare( '==', $conf['code'], $id ) );
		$items = $this->searchItems( $criteria, $ref );

		if( ( $item = reset( $items ) ) === false ) {
			throw new MShop_Exception( sprintf( 'Type item with ID "%1$s" in "%2$s" not found', $id, $conf['code'] ) );
		}

		return $item;
	}
public function getItem ( $ id , array $ ref = array ( ) ) { $ conf = reset ( $ this -> _searchConfig ) ; $ criteria = $ this -> createSearch ( ) ; $ criteria -> setConditions ( $ criteria -> compare ( '==' , $ conf [ 'code' ] , $ id ) ) ; $ items = $ this -> searchItems ( $ criteria , $ ref ) ; if ( ( $ item = reset ( $ items ) ) === false ) { throw new MShop_Exception ( sprintf ( 'Type item with ID "%1$s" in "%2$s" not found' , $ id , $ conf [ 'code' ] ) ) ; } return $ item ; }
Returns the type item specified by its ID

@param integer $id Id of type item object
@param array $ref List of domains to fetch list items and referenced items for
@return MShop_Common_Item_Type_Interface Returns the type item of the given id
@throws MShop_Exception If item couldn't be found
Returns the type item specified by its ID