Passed
Push — developer ( e5c82c...bcac4b )
by Mariusz
32:34
created

ListView::getListViewModel()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
dl 7
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
/**
3
 * Records list view file.
4
 *
5
 * @package View
6
 *
7
 * @copyright YetiForce Sp. z o.o.
8
 * @license   YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author    Mariusz Krzaczkowski <[email protected]>
10
 * @author    Radosław Skrzypczak <[email protected]>
11
 */
12
13
namespace YF\Modules\Base\View;
14
15
/**
16
 * Records list view class.
17
 */
18
class ListView extends \App\Controller\View
19
{
20
	/** {@inheritdoc} */
21
	public function process()
22
	{
23
		$listViewModel = \YF\Modules\Base\Model\ListView::getInstance($this->moduleName, $this->request->getAction());
24
		$this->viewer->assign('HEADERS', $listViewModel->getHeaders());
25
		$this->viewer->assign('LIST_VIEW_MODEL', $listViewModel);
26
		$this->viewer->view('List/ListView.tpl', $this->moduleName);
27
	}
28
}
29