client/jsonapi/src/Client/JsonApi/Order/Standard.php
protected function getBasket( $basketId )
	{
		$context = $this->getContext();
		$baseId = $context->getSession()->get( 'aimeos/order.baseid' );

		if( $baseId != $basketId )
		{
			$msg = sprintf( 'No basket for the "order.baseid" ("%1$s") found', $basketId );
			throw new \Aimeos\Client\JsonApi\Exception( $msg, 403 );
		}

		$parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_SERVICE;
		$cntl = \Aimeos\Controller\Frontend::create( $context, 'basket' );

		return $cntl->load( $baseId, $parts, false );
	}
protected function getBasket( $basketId )
	{
		$context = $this->getContext();
		$baseId = $context->getSession()->get( 'aimeos/order.baseid' );

		if( $baseId != $basketId )
		{
			$msg = sprintf( 'No basket for the "order.baseid" ("%1$s") found', $basketId );
			throw new \Aimeos\Client\JsonApi\Exception( $msg, 403 );
		}

		$parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_SERVICE;
		$cntl = \Aimeos\Controller\Frontend::create( $context, 'basket' );

		return $cntl->load( $baseId, $parts, false );
	}
protected function getBasket ( $ basketId ) { $ context = $ this -> getContext ( ) ; $ baseId = $ context -> getSession ( ) -> get ( 'aimeos/order.baseid' ) ; if ( $ baseId != $ basketId ) { $ msg = sprintf ( 'No basket for the "order.baseid" ("%1$s") found' , $ basketId ) ; throw new \ Aimeos \ Client \ JsonApi \ Exception ( $ msg , 403 ) ; } $ parts = \ Aimeos \ MShop \ Order \ Item \ Base \ Base :: PARTS_SERVICE ; $ cntl = \ Aimeos \ Controller \ Frontend :: create ( $ context , 'basket' ) ; return $ cntl -> load ( $ baseId , $ parts , false ) ; }
Returns the basket object for the given ID

@param string $basketId Unique order base ID
@return \Aimeos\MShop\Order\Item\Base\Iface Basket object including only the services
@throws \Aimeos\Client\JsonApi\Exception If basket ID is not the same as stored before in the current session
Returns the basket object for the given ID