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

TWizardSideBarTemplate::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 1
Bugs 0 Features 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 1
b 0
f 0
1
<?php
2
/**
3
 * TWizard and the relevant class definitions.
4
 *
5
 * @author Qiang Xue <[email protected]>
6
 * @link https://github.com/pradosoft/prado
7
 * @license https://github.com/pradosoft/prado/blob/master/LICENSE
8
 */
9
10
namespace Prado\Web\UI\WebControls;
11
12
use Prado\Web\UI\ITemplate;
13
14
/**
15
 * TWizardSideBarTemplate class.
16
 * TWizardSideBarTemplate is the default template for wizard sidebar.
17
 * @author Qiang Xue <[email protected]>
18
 * @since 3.0
19
 */
20
class TWizardSideBarTemplate extends \Prado\TComponent implements ITemplate
21
{
22
	/**
23
	 * Instantiates the template.
24
	 * It creates a {@link TDataList} control.
25
	 * @param \Prado\Web\UI\TControl $parent parent to hold the content within the template
26
	 */
27
	public function instantiateIn($parent)
28
	{
29
		$dataList = new TDataList();
30
		$dataList->setID(TWizard::ID_SIDEBAR_LIST);
31
		$dataList->getSelectedItemStyle()->getFont()->setBold(true);
32
		$dataList->setItemTemplate(new TWizardSideBarListItemTemplate());
33
		$parent->getControls()->add($dataList);
34
	}
35
36
	/**
37
	 * TTemplateManager calls this method for caching the included file modification times.
38
	 * @return array list of included external template files
39
	 */
40
	public function getIncludedFiles()
41
	{
42
		return [];
43
	}
44
}
45