protected function _getProducts( array $prodCodes )
	{
		if( empty( $prodCodes ) ) {
			return array();
		}

		$productManager = MShop_Factory::createManager( $this->_getContext(), 'product' );

		$search = $productManager->createSearch( true );
		$expr = array(
			$search->compare( '==', 'product.code', $prodCodes ),
			$search->getConditions(),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$products = $productManager->searchItems( $search, array( 'price' ) );

		$prodMap = array();

		foreach( $products as $item ) {
			$prodMap[ $item->getCode() ] = $item;
		}

		return $prodMap;
	}
protected function _getProducts( array $prodCodes )
	{
		if( empty( $prodCodes ) ) {
			return array();
		}

		$productManager = MShop_Factory::createManager( $this->_getContext(), 'product' );

		$search = $productManager->createSearch( true );
		$expr = array(
			$search->compare( '==', 'product.code', $prodCodes ),
			$search->getConditions(),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$products = $productManager->searchItems( $search, array( 'price' ) );

		$prodMap = array();

		foreach( $products as $item ) {
			$prodMap[ $item->getCode() ] = $item;
		}

		return $prodMap;
	}
protected function _getProducts ( array $ prodCodes ) { if ( empty ( $ prodCodes ) ) { return array ( ) ; } $ productManager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'product' ) ; $ search = $ productManager -> createSearch ( true ) ; $ expr = array ( $ search -> compare ( '==' , 'product.code' , $ prodCodes ) , $ search -> getConditions ( ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ products = $ productManager -> searchItems ( $ search , array ( 'price' ) ) ; $ prodMap = array ( ) ; foreach ( $ products as $ item ) { $ prodMap [ $ item -> getCode ( ) ] = $ item ; } return $ prodMap ; }
Returns the product items for the given product codes.

@param string[] $prodCodes Product codes
Returns the product items for the given product codes .