\SmartTemplateDebugger

SmartTemplateDebugger Class Used by SmartTemplate Class

Summary

Methods
Properties
Constants
SmartTemplateDebugger()
start()
toggleview()
tip()
vardump()
var_name()
highlight_html()
$filename
$template
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$filename

$filename : 

The template Filename

Type

$template

$template : 

The template itself

Type

Methods

SmartTemplateDebugger()

SmartTemplateDebugger(string  $template_filename) 

SmartTemplateParser Constructor

Parameters

string $template_filename

HTML Template Filename

start()

start(  $vars) 

Main Template Parser

Parameters

$vars

toggleview()

toggleview(string  $suffix = '') 

Insert Hide/Show Layer Switch

Parameters

string $suffix

Additional Text

tip()

tip(string  $value) 

Create Title Text

Parameters

string $value

Content

vardump()

vardump(mixed  $var, integer  $depth) : string

Recursive Variable Display Output

Parameters

mixed $var

Content

integer $depth

Incremented Indent Counter for Recursive Calls

Returns

string —

Variable Content

var_name()

var_name(string  $tag) : array

Splits Template-Style Variable Names into an Array-Name/Key-Name Components

Parameters

string $tag

Variale Name used in Template

Returns

array —

Array Name, Key Name

highlight_html()

highlight_html(string  $code) : string

Highlight HTML Source

Parameters

string $code

HTML Source

Returns

string —

Hightlighte HTML Source