Smarty Resource Data Object

Meta Data Container for Template Files

package Smarty
subpackage TemplateResources
author Rodney Rehm

 Methods

create Source Object container

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

Parameters

$handler

\Smarty_Resource

Resource Handler this source object communicates with

$smarty

\Smarty

Smarty instance this source object belongs to

$resource

string

full template_resource

$type

string

type of resource

$name

string

resource name

$unique_resource

string

unqiue resource name

<<magic>> Generic getter.

__get(string $property_name) : mixed

Parameters

$property_name

string

valid: timestamp, exists, content

Exceptions

\SmartyException if $property_name is not valid

Returns

mixed

<<magic>> Generic Setter.

__set(string $property_name, mixed $value) 

Parameters

$property_name

string

valid: timestamp, exists, content, template

$value

mixed

new value (is not checked)

Exceptions

\SmartyException if $property_name is not valid

get a Compiled Object of this source

getCompiled(\Smarty_Internal_Template $_template) : \Smarty_Template_Compiled

Parameters

$_template

\Smarty_Internal_Template

template objet

Returns

render the uncompiled source

renderUncompiled(\Smarty_Internal_Template $_template) 

Parameters

$_template

\Smarty_Internal_Template

template object

 Properties

 

$compiler_class : string
 

$components : array
 

$content : string
magic
property Source Content
 

$exists : boolean
magic
property Source Existance
 

$filepath : string
 

$handler : \Smarty_Resource
 

$name : string
 

$recompiled : boolean
 

$resource : string
 

$smarty : \Smarty
 

$template : boolean
magic
property Extended Template reference
 

$template_lexer_class : string
 

$template_parser_class : string
 

$timestamp : integer
magic
property Source Timestamp
 

$type : string
 

$uid : string
 

$uncompiled : boolean
 

$unique_resource : string