Completed
Push — master ( 1a27eb...ec4895 )
by Aimeos
08:55
created

AdminController::getVersion()   B

Complexity

Conditions 6
Paths 3

Size

Total Lines 14
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 14
rs 8.8571
cc 6
eloc 7
nc 3
nop 0
1
<?php
2
3
/**
4
 * @license LGPLv3, http://www.gnu.org/copyleft/lgpl.html
5
 * @copyright Aimeos (aimeos.org), 2015
6
 */
7
8
9
namespace Aimeos\Shop\Controller;
10
11
use TYPO3\Flow\Annotations as Flow;
12
13
14
/**
15
 * Controller for ExtJS adminisration interface.
16
 */
17
class AdminController extends \TYPO3\Flow\Mvc\Controller\ActionController
18
{
19
	/**
20
	 * Creates the initial HTML view for the admin interface.
21
	 */
22
	public function indexAction()
23
	{
24
		$param = array(
25
			'site' => 'default',
26
			'resource' => 'product',
27
			'lang' => ( $this->request->hasArgument( 'lang' ) ? $this->request->getArgument( 'lang' ) : 'en' ),
28
		);
29
30
		$this->forward( 'search', 'jqadm', null, $param );
31
	}
32
}
33