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

		$typeManager = \Aimeos\MShop::create( $this->getContext(), 'media/type' );
		$listTypeManager = \Aimeos\MShop::create( $this->getContext(), 'attribute/lists/type' );

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

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

		$view->mediaListTypes = $this->map( $listTypeManager->searchItems( $listSearch ) );
		$view->mediaTypes = $this->map( $typeManager->searchItems( $search ) );

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

		$typeManager = \Aimeos\MShop::create( $this->getContext(), 'media/type' );
		$listTypeManager = \Aimeos\MShop::create( $this->getContext(), 'attribute/lists/type' );

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

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

		$view->mediaListTypes = $this->map( $listTypeManager->searchItems( $listSearch ) );
		$view->mediaTypes = $this->map( $typeManager->searchItems( $search ) );

		return $view;
	}
protected function addViewData ( \ Aimeos \ MW \ View \ Iface $ view ) { $ context = $ this -> getContext ( ) ; $ typeManager = \ Aimeos \ MShop :: create ( $ this -> getContext ( ) , 'media/type' ) ; $ listTypeManager = \ Aimeos \ MShop :: create ( $ this -> getContext ( ) , 'attribute/lists/type' ) ; $ search = $ typeManager -> createSearch ( true ) -> setSlice ( 0 , 10000 ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'media.type.domain' , 'attribute' ) ) ; $ search -> setSortations ( [ $ search -> sort ( '+' , 'media.type.position' ) ] ) ; $ listSearch = $ listTypeManager -> createSearch ( true ) -> setSlice ( 0 , 10000 ) ; $ listSearch -> setConditions ( $ listSearch -> compare ( '==' , 'attribute.lists.type.domain' , 'media' ) ) ; $ listSearch -> setSortations ( [ $ listSearch -> sort ( '+' , 'attribute.lists.type.position' ) ] ) ; $ view -> mediaListTypes = $ this -> map ( $ listTypeManager -> searchItems ( $ listSearch ) ) ; $ view -> mediaTypes = $ this -> map ( $ typeManager -> searchItems ( $ search ) ) ; return $ view ; }
Adds the required data used in the attribute 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 attribute template