protected function getGroupItem( \Aimeos\MShop\Context\Item\Iface $context, $code )
	{
		$manager = \Aimeos\MShop::create( $context, 'customer/group' );

		try
		{
			$item = $manager->findItem( $code );
		}
		catch( \Aimeos\MShop\Exception $e )
		{
			$item = $manager->createItem();
			$item->setLabel( $code );
			$item->setCode( $code );

			$manager->saveItem( $item );
		}

		return $item;
	}
protected function getGroupItem( \Aimeos\MShop\Context\Item\Iface $context, $code )
	{
		$manager = \Aimeos\MShop::create( $context, 'customer/group' );

		try
		{
			$item = $manager->findItem( $code );
		}
		catch( \Aimeos\MShop\Exception $e )
		{
			$item = $manager->createItem();
			$item->setLabel( $code );
			$item->setCode( $code );

			$manager->saveItem( $item );
		}

		return $item;
	}
protected function getGroupItem ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context , $ code ) { $ manager = \ Aimeos \ MShop :: create ( $ context , 'customer/group' ) ; try { $ item = $ manager -> findItem ( $ code ) ; } catch ( \ Aimeos \ MShop \ Exception $ e ) { $ item = $ manager -> createItem ( ) ; $ item -> setLabel ( $ code ) ; $ item -> setCode ( $ code ) ; $ manager -> saveItem ( $ item ) ; } return $ item ; }
Returns the customer group item for the given code

@param \Aimeos\MShop\Context\Item\Iface $context Aimeos context object
@param string $code Unique customer group code
@return \Aimeos\MShop\Customer\Item\Group\Iface Aimeos customer group item object
Returns the customer group item for the given code