@@ -25,14 +25,14 @@ |
||
25 | 25 | * @param \Aimeos\MW\View\Iface $view The view object which generates the admin output |
26 | 26 | * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls |
27 | 27 | */ |
28 | - public function setView( \Aimeos\MW\View\Iface $view ) |
|
28 | + public function setView(\Aimeos\MW\View\Iface $view) |
|
29 | 29 | { |
30 | - $extdir = dirname( dirname( dirname( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ) ) ); |
|
31 | - $aimeos = new \Aimeos\Bootstrap( array( $extdir ) ); |
|
30 | + $extdir = dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__DIR__)))))))); |
|
31 | + $aimeos = new \Aimeos\Bootstrap(array($extdir)); |
|
32 | 32 | |
33 | - $view->languagesList = $aimeos->getI18nList( 'admin' ); |
|
33 | + $view->languagesList = $aimeos->getI18nList('admin'); |
|
34 | 34 | |
35 | - $this->getClient()->setView( $view ); |
|
35 | + $this->getClient()->setView($view); |
|
36 | 36 | return $this; |
37 | 37 | } |
38 | 38 | } |
@@ -25,21 +25,21 @@ |
||
25 | 25 | * @param \Aimeos\MW\View\Iface $view The view object which generates the admin output |
26 | 26 | * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls |
27 | 27 | */ |
28 | - public function setView( \Aimeos\MW\View\Iface $view ) |
|
28 | + public function setView(\Aimeos\MW\View\Iface $view) |
|
29 | 29 | { |
30 | 30 | $list = array(); |
31 | - $manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'locale/site' ); |
|
31 | + $manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'locale/site'); |
|
32 | 32 | |
33 | 33 | $search = $manager->createSearch(); |
34 | - $search->setSortations( array( $search->sort( '+', 'locale.site.label' ) ) ); |
|
34 | + $search->setSortations(array($search->sort('+', 'locale.site.label'))); |
|
35 | 35 | |
36 | - foreach( $manager->searchItems( $search ) as $item ) { |
|
36 | + foreach ($manager->searchItems($search) as $item) { |
|
37 | 37 | $list[$item->getCode()] = $item->getLabel(); |
38 | 38 | } |
39 | 39 | |
40 | 40 | $view->sitesList = $list; |
41 | 41 | |
42 | - $this->getClient()->setView( $view ); |
|
42 | + $this->getClient()->setView($view); |
|
43 | 43 | return $this; |
44 | 44 | } |
45 | 45 | } |