admin/jqadm/src/Admin/JQAdm/Customer/Standard.php
protected function getGroupItems()
	{
		$list = [];
		$isSuper = $this->getView()->access( ['super'] );
		$isAdmin = $this->getView()->access( ['admin'] );

		$manager = \Aimeos\MShop::create( $this->getContext(), 'customer/group' );
		$search = $manager->createSearch();
		$search->setSortations( [$search->sort( '+', 'customer.group.label' )] );

		foreach( $manager->searchItems( $search ) as $groupId => $groupItem )
		{
			if( !$isSuper && in_array( $groupItem->getCode(), ['super'] ) ) {
				continue;
			}

			if( !$isSuper && !$isAdmin && in_array( $groupItem->getCode(), ['super', 'admin', 'editor'] ) ) {
				continue;
			}

			$list[$groupId] = $groupItem;
		}

		return $list;
	}
protected function getGroupItems()
	{
		$list = [];
		$isSuper = $this->getView()->access( ['super'] );
		$isAdmin = $this->getView()->access( ['admin'] );

		$manager = \Aimeos\MShop::create( $this->getContext(), 'customer/group' );
		$search = $manager->createSearch();
		$search->setSortations( [$search->sort( '+', 'customer.group.label' )] );

		foreach( $manager->searchItems( $search ) as $groupId => $groupItem )
		{
			if( !$isSuper && in_array( $groupItem->getCode(), ['super'] ) ) {
				continue;
			}

			if( !$isSuper && !$isAdmin && in_array( $groupItem->getCode(), ['super', 'admin', 'editor'] ) ) {
				continue;
			}

			$list[$groupId] = $groupItem;
		}

		return $list;
	}
protected function getGroupItems ( ) { $ list = [ ] ; $ isSuper = $ this -> getView ( ) -> access ( [ 'super' ] ) ; $ isAdmin = $ this -> getView ( ) -> access ( [ 'admin' ] ) ; $ manager = \ Aimeos \ MShop :: create ( $ this -> getContext ( ) , 'customer/group' ) ; $ search = $ manager -> createSearch ( ) ; $ search -> setSortations ( [ $ search -> sort ( '+' , 'customer.group.label' ) ] ) ; foreach ( $ manager -> searchItems ( $ search ) as $ groupId => $ groupItem ) { if ( ! $ isSuper && in_array ( $ groupItem -> getCode ( ) , [ 'super' ] ) ) { continue ; } if ( ! $ isSuper && ! $ isAdmin && in_array ( $ groupItem -> getCode ( ) , [ 'super' , 'admin' , 'editor' ] ) ) { continue ; } $ list [ $ groupId ] = $ groupItem ; } return $ list ; }
Returns the available group items

@return \Aimeos\MShop\Customer\Item\Group\Iface[] Associative list of group IDs as keys and group items as values
Returns the available group items