Passed
Pull Request — developer (#318)
by Arkadiusz
87:16 queued 52:35
created

PasswordChangeModal::postProcessAjax()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * Password change 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
 * Password change modal view class.
17
 */
18
class PasswordChangeModal 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('LBL_CHANGE_PASSWORD', $this->moduleName);
29
	}
30
31
	/** {@inheritdoc} */
32
	public function getModalSize(): string
33
	{
34
		return 'modal-lg';
35
	}
36
37
	/** {@inheritdoc} */
38
	public function getModalIcon(): string
39
	{
40
		return 'yfi yfi-change-passowrd';
41
	}
42
43
	/** {@inheritdoc} */
44
	public function process(): void
45
	{
46
		$request = $this->request;
47
		$moduleName = $request->getModule();
48
		$this->viewer->view('Modal/PasswordChangeModal.tpl', $moduleName);
49
	}
50
51
	/** {@inheritdoc} */
52
	public function postProcessAjax(): void
53
	{
54
		$request = $this->request;
55
		$this->viewer->view('Modal/PasswordChangeModalFooter.tpl', $request->getModule());
56
	}
57
}
58