\Smarty_Template_Compiled

Smarty Resource Data Object Meta Data Container for Template Files

Summary

Methods
Properties
Constants
process()
getRenderedTemplateCode()
getTimeStamp()
load()
populateCompiledFilepath()
render()
compileTemplateSource()
write()
read()
$filepath
$timestamp
$exists
$compile_id
$processed
$unifunc
$has_nocache_code
$file_dependency
$content
$required_plugins
$includes
$isCache
$nocache_hash
$content
No constants found
No protected methods found
No protected properties found
N/A
loadCompiledTemplate()
No private properties found
N/A

Properties

$filepath

$filepath : string

Compiled Filepath

Type

string

$timestamp

$timestamp : integer|boolean

Compiled Timestamp

Type

integer|boolean

$exists

$exists : boolean

Compiled Existence

Type

boolean

$compile_id

$compile_id : string

Template Compile Id (Smarty_Internal_Template::$compile_id)

Type

string

$processed

$processed : boolean

Compiled Content Loaded

Type

boolean

$unifunc

$unifunc : string

unique function name for compiled template code

Type

string

$has_nocache_code

$has_nocache_code : boolean

flag if template does contain nocache code sections

Type

boolean

$file_dependency

$file_dependency : array

resource file dependency

Type

array

$content

$content : string

Content buffer

Type

string

$required_plugins

$required_plugins : array

required plugins

Type

array

$includes

$includes : array

Included subtemplates

Type

array

$isCache

$isCache : boolean

Flag if this is a cache resource

Type

boolean

$nocache_hash

$nocache_hash : string|null

nocache hash

Type

string|null

$content

$content : string

Content buffer

compiled content

Type

string

Methods

process()

process(\Smarty_Internal_Template  $_smarty_tpl) 

load compiled template or compile from source

Parameters

\Smarty_Internal_Template $_smarty_tpl

do not change variable name, is used by compiled template

Throws

\Exception

getRenderedTemplateCode()

getRenderedTemplateCode(\Smarty_Internal_Template  $_template, string  $unifunc = null) 

get rendered template content by calling compiled or cached template code

Parameters

\Smarty_Internal_Template $_template
string $unifunc

function with template code

Throws

\Exception

getTimeStamp()

getTimeStamp() : integer

Get compiled time stamp

Returns

integer

populateCompiledFilepath()

populateCompiledFilepath(\Smarty_Internal_Template  $_template) 

populate Compiled Object with compiled filepath

Parameters

\Smarty_Internal_Template $_template

template object

render()

render(\Smarty_Internal_Template  $_template) : string

render compiled template code

Parameters

\Smarty_Internal_Template $_template

Throws

\Exception

Returns

string

compileTemplateSource()

compileTemplateSource(\Smarty_Internal_Template  $_template) 

compile template from source

Parameters

\Smarty_Internal_Template $_template

Throws

\Exception

write()

write(\Smarty_Internal_Template  $_template, string  $code) : boolean

Write compiled code by handler

Parameters

\Smarty_Internal_Template $_template

template object

string $code

compiled code

Returns

boolean —

success

read()

read(\Smarty_Internal_Template  $_template) : string

Read compiled content from handler

Parameters

\Smarty_Internal_Template $_template

template object

Returns

string —

content

loadCompiledTemplate()

loadCompiledTemplate(\Smarty_Internal_Template  $_smarty_tpl) 

Load fresh compiled template by including the PHP file HHVM requires a work around because of a PHP incompatibility

Parameters

\Smarty_Internal_Template $_smarty_tpl

do not change variable name, is used by compiled template