Passed
Push — developer ( ac75b2...f4c496 )
by Mariusz
30:53
created

AccessActivityHistoryModal::getModalSize()   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
/**
4
 * Access activity history modal view file.
5
 *
6
 * @package   View
7
 *
8
 * @copyright YetiForce Sp. z o.o
9
 * @license   YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
10
 * @author    Arkadiusz Sołek <[email protected]>
11
 * @author    Mariusz Krzaczkowski <[email protected]>
12
 */
13
14
namespace YF\Modules\Users\View;
15
16
/**
17
 * Access activity history modal view class.
18
 */
19
class AccessActivityHistoryModal extends \App\Controller\Modal
20
{
21
	/** {@inheritdoc} */
22
	public function checkPermission(): void
23
	{
24
	}
25
26
	/**  {@inheritdoc}  */
27
	public function getTitle(): string
28
	{
29
		return \App\Language::translate('BTN_YOUR_ACCOUNT_ACCESS_HISTORY', $this->moduleName);
30
	}
31
32
	/** {@inheritdoc} */
33
	public function getModalIcon(): string
34
	{
35
		return 'yfi yfi-login-history';
36
	}
37
38
	/** {@inheritdoc} */
39
	public function process(): void
40
	{
41
		$this->viewer->assign('ACTIVITY_HISTORY', \App\Api::getInstance()->call('Users/AccessActivityHistory'));
42
		$this->viewer->view('Modal/AccessActivityHistoryModal.tpl', $this->request->getModule());
43
	}
44
}
45