Test Setup Failed
Pull Request — developer (#300)
by Arkadiusz
64:38 queued 29:41
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
 */
12
13
namespace YF\Modules\Users\View;
14
15
/**
16
 * Access activity history modal view class.
17
 */
18
class AccessActivityHistoryModal extends \App\Controller\Modal
19
{
20
	/** {@inheritdoc} */
21
	public function checkPermission(): void
22
	{
23
	}
24
25
	/**  {@inheritdoc}  */
26
	public function getTitle(): string
27
	{
28
		return \App\Language::translate('BTN_YOUR_ACCOUNT_ACCESS_HISTORY', $this->moduleName);
29
	}
30
31
	/** {@inheritdoc} */
32
	public function getModalSize(): string
33
	{
34
		return 'modal-full';
35
	}
36
37
	/** {@inheritdoc} */
38
	public function getModalIcon(): string
39
	{
40
		return 'yfi yfi-login-history';
41
	}
42
43
	/** {@inheritdoc} */
44
	public function process(): void
45
	{
46
		$this->viewer->view('Modal/AccessActivityHistoryModal.tpl', $this->request->getModule());
47
	}
48
}
49