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

TWizardSideBarListItemTemplate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 21
ccs 0
cts 6
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A instantiateIn() 0 5 1
A getIncludedFiles() 0 3 1
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