Passed
Push — developer ( d95459...8601b0 )
by Radosław
79:50 queued 44:34
created

ListView::processTplName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
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($this->processTplName(), $this->moduleName);
27
	}
28
29
	/** {@inheritdoc} */
30
	protected function processTplName(): string
31
	{
32
		return 'List/ListView.tpl';
33
	}
34
}
35