public function getGroups( \Aimeos\MShop\Context\Item\Iface $context )
	{
		$list = array();
		$manager = \Aimeos\MShop::create( $context, 'customer/group' );

		$search = $manager->createSearch();
		$search->setConditions( $search->compare( '==', 'customer.group.id', $context->getGroupIds() ) );

		foreach( $manager->searchItems( $search ) as $item ) {
			$list[] = $item->getCode();
		}

		return $list;
	}
public function getGroups( \Aimeos\MShop\Context\Item\Iface $context )
	{
		$list = array();
		$manager = \Aimeos\MShop::create( $context, 'customer/group' );

		$search = $manager->createSearch();
		$search->setConditions( $search->compare( '==', 'customer.group.id', $context->getGroupIds() ) );

		foreach( $manager->searchItems( $search ) as $item ) {
			$list[] = $item->getCode();
		}

		return $list;
	}
public function getGroups ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context ) { $ list = array ( ) ; $ manager = \ Aimeos \ MShop :: create ( $ context , 'customer/group' ) ; $ search = $ manager -> createSearch ( ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'customer.group.id' , $ context -> getGroupIds ( ) ) ) ; foreach ( $ manager -> searchItems ( $ search ) as $ item ) { $ list [ ] = $ item -> getCode ( ) ; } return $ list ; }
Returns the available group codes

@param \Aimeos\MShop\Context\Item\Iface $context Context item
@return string[] List of group codes
Returns the available group codes