Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function getGroups( \Aimeos\MShop\Context\Item\Iface $context ) |
||
31 | { |
||
32 | $list = array(); |
||
33 | $manager = \Aimeos\MShop\Factory::createManager( $context, 'customer/group' ); |
||
34 | |||
35 | $search = $manager->createSearch(); |
||
36 | $search->setConditions( $search->compare( '==', 'customer.group.id', $context->getGroupIds() ) ); |
||
37 | |||
38 | foreach( $manager->searchItems( $search ) as $item ) { |
||
39 | $list[] = $item->getCode(); |
||
40 | } |
||
41 | |||
42 | return $list; |
||
43 | } |
||
44 | } |
||
45 |