\Smarty_Template_Source

Smarty Resource Data Object

Meta Data Container for Template Files

Summary

Methods
Properties
Constants
__construct()
getCompiled()
renderUncompiled()
__set()
__get()
$compiler_class
$template_lexer_class
$template_parser_class
$uid
$resource
$type
$name
$unique_resource
$filepath
$uncompiled
$recompiled
$components
$handler
$smarty
$timestamp
$exists
$template
$content
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$compiler_class

$compiler_class : string

Name of the Class to compile this resource's contents with

Type

string

$template_lexer_class

$template_lexer_class : string

Name of the Class to tokenize this resource's contents with

Type

string

$template_parser_class

$template_parser_class : string

Name of the Class to parse this resource's contents with

Type

string

$uid

$uid : string

Unique Template ID

Type

string

$resource

$resource : string

Template Resource (Smarty_Internal_Template::$template_resource)

Type

string

$type

$type : string

Resource Type

Type

string

$name

$name : string

Resource Name

Type

string

$unique_resource

$unique_resource : string

Unique Resource Name

Type

string

$filepath

$filepath : string

Source Filepath

Type

string

$uncompiled

$uncompiled : boolean

Source is bypassing compiler

Type

boolean

$recompiled

$recompiled : boolean

Source must be recompiled on every occasion

Type

boolean

$components

$components : array

The Components an extended template is made of

Type

array

$smarty

$smarty : \Smarty

Smarty instance

Type

\Smarty

$timestamp

$timestamp : integer

Source Timestamp

Type

integer

$exists

$exists : boolean

Source Existance

Type

boolean

$template

$template : boolean

Extended Template reference

Type

boolean

$content

$content : string

Source Content

Type

string

Methods

__construct()

__construct(\Smarty_Resource  $handler, \Smarty  $smarty, string  $resource, string  $type, string  $name, string  $unique_resource) 

create Source Object container

Parameters

\Smarty_Resource $handler

Resource Handler this source object communicates with

\Smarty $smarty

Smarty instance this source object belongs to

string $resource

full template_resource

string $type

type of resource

string $name

resource name

string $unique_resource

unqiue resource name

renderUncompiled()

renderUncompiled(\Smarty_Internal_Template  $_template) 

render the uncompiled source

Parameters

\Smarty_Internal_Template $_template

template object

__set()

__set(string  $property_name, mixed  $value) 

<<magic>> Generic Setter.

Parameters

string $property_name

valid: timestamp, exists, content, template

mixed $value

new value (is not checked)

Throws

\SmartyException

if $property_name is not valid

__get()

__get(string  $property_name) : mixed

<<magic>> Generic getter.

Parameters

string $property_name

valid: timestamp, exists, content

Throws

\SmartyException

if $property_name is not valid

Returns

mixed