protected function _getRefItems( array $refIdMap )
	{
		$items = array();
		$context = $this->_getContext();

		foreach( $refIdMap as $domain => $list )
		{
			try
			{
				$manager = MShop_Factory::createManager( $context, $domain );

				$search = $manager->createSearch( true );
				$expr = array(
					$search->compare( '==', str_replace( '/', '.', $domain ) . '.id', array_keys( $list ) ),
					$search->getConditions(),
				);
				$search->setConditions( $search->combine( '&&', $expr ) );
				$search->setSlice( 0, 0x7fffffff );

				foreach( $manager->searchItems( $search ) as $id => $item )
				{
					foreach( $list[ $id ] as $parentId ) {
						$items[ $parentId ][ $domain ][ $id ] = $item;
					}
				}
			}
			catch( MShop_Exception $e )
			{
				$logger = $context->getLogger();
				$logger->log( sprintf( 'Item referenced in domain "%1$s" not found: %2$s', $domain, $e->getMessage() ) );
				$logger->log( $e->getTraceAsString() );
			}
		}

		return $items;
	}
protected function _getRefItems( array $refIdMap )
	{
		$items = array();
		$context = $this->_getContext();

		foreach( $refIdMap as $domain => $list )
		{
			try
			{
				$manager = MShop_Factory::createManager( $context, $domain );

				$search = $manager->createSearch( true );
				$expr = array(
					$search->compare( '==', str_replace( '/', '.', $domain ) . '.id', array_keys( $list ) ),
					$search->getConditions(),
				);
				$search->setConditions( $search->combine( '&&', $expr ) );
				$search->setSlice( 0, 0x7fffffff );

				foreach( $manager->searchItems( $search ) as $id => $item )
				{
					foreach( $list[ $id ] as $parentId ) {
						$items[ $parentId ][ $domain ][ $id ] = $item;
					}
				}
			}
			catch( MShop_Exception $e )
			{
				$logger = $context->getLogger();
				$logger->log( sprintf( 'Item referenced in domain "%1$s" not found: %2$s', $domain, $e->getMessage() ) );
				$logger->log( $e->getTraceAsString() );
			}
		}

		return $items;
	}
protected function _getRefItems ( array $ refIdMap ) { $ items = array ( ) ; $ context = $ this -> _getContext ( ) ; foreach ( $ refIdMap as $ domain => $ list ) { try { $ manager = MShop_Factory :: createManager ( $ context , $ domain ) ; $ search = $ manager -> createSearch ( true ) ; $ expr = array ( $ search -> compare ( '==' , str_replace ( '/' , '.' , $ domain ) . '.id' , array_keys ( $ list ) ) , $ search -> getConditions ( ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ search -> setSlice ( 0 , 0x7fffffff ) ; foreach ( $ manager -> searchItems ( $ search ) as $ id => $ item ) { foreach ( $ list [ $ id ] as $ parentId ) { $ items [ $ parentId ] [ $ domain ] [ $ id ] = $ item ; } } } catch ( MShop_Exception $ e ) { $ logger = $ context -> getLogger ( ) ; $ logger -> log ( sprintf ( 'Item referenced in domain "%1$s" not found: %2$s' , $ domain , $ e -> getMessage ( ) ) ) ; $ logger -> log ( $ e -> getTraceAsString ( ) ) ; } } return $ items ; }
Returns the referenced items for the given IDs.

@param array $refIdMap Associative list of domain/ref-ID/parent-item-ID key/value pairs
@return array Associative list of parent-item-ID/domain/items key/value pairs
Returns the referenced items for the given IDs .