client/html/src/Client/Html/Basket/Related/Bought/Standard.php
protected function getProductIdsFromBasket( \Aimeos\MShop\Order\Item\Base\Iface $basket )
	{
		$list = [];

		foreach( $basket->getProducts() as $orderProduct )
		{
			$list[ $orderProduct->getProductId() ] = true;

			foreach( $orderProduct->getProducts() as $subProduct ) {
				$list[ $subProduct->getProductId() ] = true;
			}
		}

		return array_keys( $list );
	}
protected function getProductIdsFromBasket( \Aimeos\MShop\Order\Item\Base\Iface $basket )
	{
		$list = [];

		foreach( $basket->getProducts() as $orderProduct )
		{
			$list[ $orderProduct->getProductId() ] = true;

			foreach( $orderProduct->getProducts() as $subProduct ) {
				$list[ $subProduct->getProductId() ] = true;
			}
		}

		return array_keys( $list );
	}
protected function getProductIdsFromBasket ( \ Aimeos \ MShop \ Order \ Item \ Base \ Iface $ basket ) { $ list = [ ] ; foreach ( $ basket -> getProducts ( ) as $ orderProduct ) { $ list [ $ orderProduct -> getProductId ( ) ] = true ; foreach ( $ orderProduct -> getProducts ( ) as $ subProduct ) { $ list [ $ subProduct -> getProductId ( ) ] = true ; } } return array_keys ( $ list ) ; }
Returns the IDs of the products in the current basket.

@param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object
@return string[] List of product IDs
Returns the IDs of the products in the current basket .