controller/common/src/Controller/Common/Product/Import/Csv/Base.php
protected function getProducts( array $codes, array $domains )
	{
		$result = [];
		$manager = \Aimeos\MShop::create( $this->getContext(), 'product' );

		$search = $manager->createSearch();
		$search->setConditions( $search->compare( '==', 'product.code', $codes ) );
		$search->setSlice( 0, count( $codes ) );

		foreach( $manager->searchItems( $search, $domains ) as $item ) {
			$result[$item->getCode()] = $item;
		}

		return $result;
	}
protected function getProducts( array $codes, array $domains )
	{
		$result = [];
		$manager = \Aimeos\MShop::create( $this->getContext(), 'product' );

		$search = $manager->createSearch();
		$search->setConditions( $search->compare( '==', 'product.code', $codes ) );
		$search->setSlice( 0, count( $codes ) );

		foreach( $manager->searchItems( $search, $domains ) as $item ) {
			$result[$item->getCode()] = $item;
		}

		return $result;
	}
protected function getProducts ( array $ codes , array $ domains ) { $ result = [ ] ; $ manager = \ Aimeos \ MShop :: create ( $ this -> getContext ( ) , 'product' ) ; $ search = $ manager -> createSearch ( ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'product.code' , $ codes ) ) ; $ search -> setSlice ( 0 , count ( $ codes ) ) ; foreach ( $ manager -> searchItems ( $ search , $ domains ) as $ item ) { $ result [ $ item -> getCode ( ) ] = $ item ; } return $ result ; }
Returns the product items for the given codes

@param array $codes List of product codes
@param array $domains List of domains whose items should be fetched too
@return array Associative list of product codes as key and product items as value
Returns the product items for the given codes