Passed
Pull Request — developer (#16316)
by Arkadiusz
17:53
created

getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Widget model for dashboard - file.
4
 *
5
 * @package   Dashboard
6
 *
7
 * @copyright YetiForce S.A.
8
 * @license   YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author    Arkadiusz Sołek <[email protected]>
10
 */
11
12
/**
13
 * Widget model for dashboard - class.
14
 */
15
class OSSTimeControl_TimeCounterModel_Dashboard extends Vtiger_Widget_Model
16
{
17
	/** {@inheritdoc} */
18
	public $editFields = [
19
		'isdefault' => ['label' => 'LBL_MANDATORY_WIDGET', 'purifyType' => \App\Purifier::BOOL],
20
		'width' => ['label' => 'LBL_WIDTH', 'purifyType' => \App\Purifier::INTEGER],
21
		'height' => ['label' => 'LBL_HEIGHT', 'purifyType' => \App\Purifier::INTEGER],
22
	];
23
24
	/** {@inheritdoc} */
25
	public function getTitle()
26
	{
27
		return \App\Language::translate($this->get('linklabel'), 'Dashboard');
28
	}
29
}
30