Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
46 | protected function getSites() |
||
47 | { |
||
48 | $list = array(); |
||
49 | $manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'locale/site' ); |
||
50 | |||
51 | $search = $manager->createSearch(); |
||
52 | $search->setSortations( array( $search->sort( '+', 'locale.site.label' ) ) ); |
||
53 | |||
54 | foreach( $manager->searchItems( $search ) as $item ) { |
||
55 | $list[$item->getCode()] = $item->getLabel(); |
||
56 | } |
||
57 | |||
58 | return $list; |
||
59 | } |
||
60 | } |
||
61 |