client/jsonapi/src/Client/JsonApi/Basket/Standard.php
protected function getParts( \Aimeos\MW\View\Iface $view )
	{
		$available = array(
			'basket/address' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_ADDRESS,
			'basket/coupon' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_COUPON,
			'basket/product' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_PRODUCT,
			'basket/service' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_SERVICE,
		);

		$included = explode( ',', $view->param( 'included', 'basket/address,basket/coupon,basket/product,basket/service' ) );

		$parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_NONE;
		foreach( $included as $type )
		{
			if( isset( $available[$type] ) ) {
				$parts |= $available[$type];
			}
		}

		return $parts;
	}
protected function getParts( \Aimeos\MW\View\Iface $view )
	{
		$available = array(
			'basket/address' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_ADDRESS,
			'basket/coupon' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_COUPON,
			'basket/product' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_PRODUCT,
			'basket/service' => \Aimeos\MShop\Order\Item\Base\Base::PARTS_SERVICE,
		);

		$included = explode( ',', $view->param( 'included', 'basket/address,basket/coupon,basket/product,basket/service' ) );

		$parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_NONE;
		foreach( $included as $type )
		{
			if( isset( $available[$type] ) ) {
				$parts |= $available[$type];
			}
		}

		return $parts;
	}
protected function getParts ( \ Aimeos \ MW \ View \ Iface $ view ) { $ available = array ( 'basket/address' => \ Aimeos \ MShop \ Order \ Item \ Base \ Base :: PARTS_ADDRESS , 'basket/coupon' => \ Aimeos \ MShop \ Order \ Item \ Base \ Base :: PARTS_COUPON , 'basket/product' => \ Aimeos \ MShop \ Order \ Item \ Base \ Base :: PARTS_PRODUCT , 'basket/service' => \ Aimeos \ MShop \ Order \ Item \ Base \ Base :: PARTS_SERVICE , ) ; $ included = explode ( ',' , $ view -> param ( 'included' , 'basket/address,basket/coupon,basket/product,basket/service' ) ) ; $ parts = \ Aimeos \ MShop \ Order \ Item \ Base \ Base :: PARTS_NONE ; foreach ( $ included as $ type ) { if ( isset ( $ available [ $ type ] ) ) { $ parts |= $ available [ $ type ] ; } } return $ parts ; }
Returns the integer constant for the basket parts that should be included

@param \Aimeos\MW\View\Iface $view View instance
@return integer Constant from Aimeos\MShop\Order\Item\Base\Base
Returns the integer constant for the basket parts that should be included