Passed
Push — master ( 2977bf...424b14 )
by Fabio
15:07 queued 10:08
created

TJuiSelectableTemplate::getIncludedFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * TJuiSelectable class file.
4
 *
5
 * @author Fabio Bas <ctrlaltca[at]gmail[dot]com>
6
 * @link https://github.com/pradosoft/prado
7
 * @license https://github.com/pradosoft/prado/blob/master/LICENSE
8
 */
9
10
namespace Prado\Web\UI\JuiControls;
11
12
use Prado\Web\UI\ITemplate;
13
14
/**
15
 * TJuiSelectableTemplate class.
16
 *
17
 * TJuiSelectableTemplate is the default template for TJuiSelectableTemplate
18
 * item template.
19
 *
20
 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
21
 * @since 3.1
22
 */
23
class TJuiSelectableTemplate extends \Prado\TComponent implements ITemplate
24
{
25
	private $_template;
26
27
	public function __construct($template)
28
	{
29
		$this->_template = $template;
30
		parent::__construct();
31
	}
32
	/**
33
	 * Instantiates the template.
34
	 * It creates a {@link TDataList} control.
35
	 * @param \Prado\Web\UI\TControl $parent parent to hold the content within the template
36
	 */
37
	public function instantiateIn($parent)
38
	{
39
		$parent->getControls()->add($this->_template);
40
	}
41
42
	/**
43
	 * TTemplateManager calls this method for caching the included file modification times.
44
	 * @return array list of included external template files
45
	 */
46
	public function getIncludedFiles()
47
	{
48
		return [];
49
	}
50
}
51