admin/jsonadm/src/Admin/JsonAdm/Base.php
protected function getRefItems( array $listItems )
	{
		$list = $map = [];
		$context = $this->getContext();

		foreach( $listItems as $listItem ) {
			$map[$listItem->getDomain()][] = $listItem->getRefId();
		}

		foreach( $map as $domain => $ids )
		{
			$manager = \Aimeos\MShop::create( $context, $domain );

			$search = $manager->createSearch();
			$search->setConditions( $search->compare( '==', str_replace( '/', '.', $domain ) . '.id', $ids ) );

			$list = array_merge( $list, $manager->searchItems( $search ) );
		}

		return $list;
	}
protected function getRefItems( array $listItems )
	{
		$list = $map = [];
		$context = $this->getContext();

		foreach( $listItems as $listItem ) {
			$map[$listItem->getDomain()][] = $listItem->getRefId();
		}

		foreach( $map as $domain => $ids )
		{
			$manager = \Aimeos\MShop::create( $context, $domain );

			$search = $manager->createSearch();
			$search->setConditions( $search->compare( '==', str_replace( '/', '.', $domain ) . '.id', $ids ) );

			$list = array_merge( $list, $manager->searchItems( $search ) );
		}

		return $list;
	}
protected function getRefItems ( array $ listItems ) { $ list = $ map = [ ] ; $ context = $ this -> getContext ( ) ; foreach ( $ listItems as $ listItem ) { $ map [ $ listItem -> getDomain ( ) ] [ ] = $ listItem -> getRefId ( ) ; } foreach ( $ map as $ domain => $ ids ) { $ manager = \ Aimeos \ MShop :: create ( $ context , $ domain ) ; $ search = $ manager -> createSearch ( ) ; $ search -> setConditions ( $ search -> compare ( '==' , str_replace ( '/' , '.' , $ domain ) . '.id' , $ ids ) ) ; $ list = array_merge ( $ list , $ manager -> searchItems ( $ search ) ) ; } return $ list ; }
Returns the items associated via a lists table

@param array $listItems List of items implementing \Aimeos\MShop\Common\Item\Lists\Iface
@return array List of items implementing \Aimeos\MShop\Common\Item\Iface
Returns the items associated via a lists table