admin/jqadm/src/Admin/JQAdm/Service/Price/Standard.php
protected function addViewData( \Aimeos\MW\View\Iface $view )
	{
		$context = $this->getContext();

		$priceTypeManager = \Aimeos\MShop::create( $context, 'price/type' );
		$listTypeManager = \Aimeos\MShop::create( $context, 'service/lists/type' );
		$currencyManager = \Aimeos\MShop::create( $context, 'locale/currency' );

		$search = $priceTypeManager->createSearch( true )->setSlice( 0, 10000 );
		$search->setConditions( $search->compare( '==', 'price.type.domain', 'service' ) );
		$search->setSortations( [$search->sort( '+', 'price.type.position' )] );

		$listSearch = $listTypeManager->createSearch( true )->setSlice( 0, 10000 );
		$listSearch->setConditions( $listSearch->compare( '==', 'service.lists.type.domain', 'price' ) );
		$listSearch->setSortations( [$listSearch->sort( '+', 'service.lists.type.position' )] );

		$view->priceTypes = $this->map( $priceTypeManager->searchItems( $search ) );
		$view->priceListTypes = $this->map( $listTypeManager->searchItems( $listSearch ) );
		$view->priceCurrencies = $currencyManager->searchItems( $currencyManager->createSearch( true )->setSlice( 0, 10000 ) );

		if( $view->priceCurrencies === [] ) {
			throw new \Aimeos\Admin\JQAdm\Exception( 'No currencies available. Please enable at least one currency' );
		}

		return $view;
	}
protected function addViewData( \Aimeos\MW\View\Iface $view )
	{
		$context = $this->getContext();

		$priceTypeManager = \Aimeos\MShop::create( $context, 'price/type' );
		$listTypeManager = \Aimeos\MShop::create( $context, 'service/lists/type' );
		$currencyManager = \Aimeos\MShop::create( $context, 'locale/currency' );

		$search = $priceTypeManager->createSearch( true )->setSlice( 0, 10000 );
		$search->setConditions( $search->compare( '==', 'price.type.domain', 'service' ) );
		$search->setSortations( [$search->sort( '+', 'price.type.position' )] );

		$listSearch = $listTypeManager->createSearch( true )->setSlice( 0, 10000 );
		$listSearch->setConditions( $listSearch->compare( '==', 'service.lists.type.domain', 'price' ) );
		$listSearch->setSortations( [$listSearch->sort( '+', 'service.lists.type.position' )] );

		$view->priceTypes = $this->map( $priceTypeManager->searchItems( $search ) );
		$view->priceListTypes = $this->map( $listTypeManager->searchItems( $listSearch ) );
		$view->priceCurrencies = $currencyManager->searchItems( $currencyManager->createSearch( true )->setSlice( 0, 10000 ) );

		if( $view->priceCurrencies === [] ) {
			throw new \Aimeos\Admin\JQAdm\Exception( 'No currencies available. Please enable at least one currency' );
		}

		return $view;
	}
protected function addViewData ( \ Aimeos \ MW \ View \ Iface $ view ) { $ context = $ this -> getContext ( ) ; $ priceTypeManager = \ Aimeos \ MShop :: create ( $ context , 'price/type' ) ; $ listTypeManager = \ Aimeos \ MShop :: create ( $ context , 'service/lists/type' ) ; $ currencyManager = \ Aimeos \ MShop :: create ( $ context , 'locale/currency' ) ; $ search = $ priceTypeManager -> createSearch ( true ) -> setSlice ( 0 , 10000 ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'price.type.domain' , 'service' ) ) ; $ search -> setSortations ( [ $ search -> sort ( '+' , 'price.type.position' ) ] ) ; $ listSearch = $ listTypeManager -> createSearch ( true ) -> setSlice ( 0 , 10000 ) ; $ listSearch -> setConditions ( $ listSearch -> compare ( '==' , 'service.lists.type.domain' , 'price' ) ) ; $ listSearch -> setSortations ( [ $ listSearch -> sort ( '+' , 'service.lists.type.position' ) ] ) ; $ view -> priceTypes = $ this -> map ( $ priceTypeManager -> searchItems ( $ search ) ) ; $ view -> priceListTypes = $ this -> map ( $ listTypeManager -> searchItems ( $ listSearch ) ) ; $ view -> priceCurrencies = $ currencyManager -> searchItems ( $ currencyManager -> createSearch ( true ) -> setSlice ( 0 , 10000 ) ) ; if ( $ view -> priceCurrencies === [ ] ) { throw new \ Aimeos \ Admin \ JQAdm \ Exception ( 'No currencies available. Please enable at least one currency' ) ; } return $ view ; }
Adds the required data used in the price template

@param \Aimeos\MW\View\Iface $view View object
@return \Aimeos\MW\View\Iface View object with assigned parameters
Adds the required data used in the price template