Passed
Push — master ( e877b4...cb3898 )
by Fabio
05:28
created

TSkinTemplate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * TSkinTemplate class file
4
 *
5
 * @author Brad Anderson <[email protected]>
6
 * @link https://github.com/pradosoft/prado
7
 * @license https://github.com/pradosoft/prado/blob/master/LICENSE
8
 * @package Prado\Web\UI
9
 */
10
11
namespace Prado\Web\UI;
12
13
/**
14
 * TSkinTemplate implements TTemplate but without class and attribute validation.
15
 * This class is the implementation of skin files in themes. Skin errors are thrown
16
 * on setting object skin properties rather than on parsing the skin.  Skins can
17
 * have class objects that are not implemented to be more portable.
18
 *
19
 * @author Brad Anderson <[email protected]>
20
 * @package Prado\Web\UI
21
 * @since 4.2.0
22
 */
23
class TSkinTemplate extends TTemplate
24
{
25
	/**
26
	 * Constructor.
27
	 * turns off attribute validation
28
	 * @param string $template the template string
29
	 * @param string $contextPath the template context directory
30
	 * @param null|string $tplFile the template file, null if no file
31
	 * @param int $startingLine the line number that parsing starts from (internal use)
32
	 * @param bool $sourceTemplate whether this template is a source template, i.e., this template is loaded from
33
	 * some external storage rather than from within another template.
34
	 */
35
	public function __construct($template, $contextPath, $tplFile = null, $startingLine = 0, $sourceTemplate = true)
36
	{
37
		$this->setAttributeValidation(false);
38
		parent::__construct($template, $contextPath, $tplFile, $startingLine, $sourceTemplate);
39
	}
40
}
41