controller/jobs/src/Controller/Jobs/Stock/Import/Csv/Standard.php
protected function getStockItems( array $codes, array $types )
	{
		$map = [];
		$manager = \Aimeos\MShop::create( $this->getContext(), 'stock' );

		$search = $manager->createSearch()->setSlice( 0, 10000 );
		$search->setConditions( $search->combine( '&&', [
			$search->compare( '==', 'stock.productcode', $codes ),
			$search->compare( '==', 'stock.type', $types )
		] ) );

		foreach( $manager->searchItems( $search ) as $item ) {
			$map[$item->getProductCode()][$item->getType()] = $item;
		}

		return $map;
	}
protected function getStockItems( array $codes, array $types )
	{
		$map = [];
		$manager = \Aimeos\MShop::create( $this->getContext(), 'stock' );

		$search = $manager->createSearch()->setSlice( 0, 10000 );
		$search->setConditions( $search->combine( '&&', [
			$search->compare( '==', 'stock.productcode', $codes ),
			$search->compare( '==', 'stock.type', $types )
		] ) );

		foreach( $manager->searchItems( $search ) as $item ) {
			$map[$item->getProductCode()][$item->getType()] = $item;
		}

		return $map;
	}
protected function getStockItems ( array $ codes , array $ types ) { $ map = [ ] ; $ manager = \ Aimeos \ MShop :: create ( $ this -> getContext ( ) , 'stock' ) ; $ search = $ manager -> createSearch ( ) -> setSlice ( 0 , 10000 ) ; $ search -> setConditions ( $ search -> combine ( '&&' , [ $ search -> compare ( '==' , 'stock.productcode' , $ codes ) , $ search -> compare ( '==' , 'stock.type' , $ types ) ] ) ) ; foreach ( $ manager -> searchItems ( $ search ) as $ item ) { $ map [ $ item -> getProductCode ( ) ] [ $ item -> getType ( ) ] = $ item ; } return $ map ; }
Returns the stock items for the given codes and types

@param array $codes List of stock codes
@param array $types List of stock types
@return array Multi-dimensional array of code/type/item map
Returns the stock items for the given codes and types