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

TWizardSideBarListItemTemplate::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
 * 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
 * TWizardSideBarListItemTemplate class.
16
 * TWizardSideBarListItemTemplate is the default template for each item in the sidebar datalist.
17
 * @author Qiang Xue <[email protected]>
18
 * @since 3.0
19
 */
20
class TWizardSideBarListItemTemplate extends \Prado\TComponent implements ITemplate
21
{
22
	/**
23
	 * Instantiates the template.
24
	 * It creates a {@link TLinkButton}.
25
	 * @param \Prado\Web\UI\TControl $parent parent to hold the content within the template
26
	 */
27
	public function instantiateIn($parent)
28
	{
29
		$button = new TLinkButton();
30
		$button->setID(TWizard::ID_SIDEBAR_BUTTON);
31
		$parent->getControls()->add($button);
32
	}
33
34
	/**
35
	 * TTemplateManager calls this method for caching the included file modification times.
36
	 * @return array list of included external template files
37
	 */
38
	public function getIncludedFiles()
39
	{
40
		return [];
41
	}
42
}
43