Smarty Resource Data Object

Meta Data Container for Config Files

package Smarty
subpackage TemplateResources
author Rodney Rehm

 Methods

create Config 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 config_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: content, timestamp, exists

Exceptions

\SmartyException when the given property name is not valid

Returns

mixed

<<magic>> Generic setter.

__set(string $property_name, mixed $value) 

Parameters

$property_name

string

valid: content, timestamp, exists

$value

mixed

newly assigned value (not check for correct type)

Exceptions

\SmartyException when the given property name is not valid

get a Compiled Object of this source

getCompiled(\Smarty_Internal_Template $_template) : \Smarty_Template_Compiled
Inherited
inherited_from \Smarty_Template_Source::getCompiled()

Parameters

$_template

\Smarty_Internal_Template

template objet

Returns

render the uncompiled source

renderUncompiled(\Smarty_Internal_Template $_template) 
Inherited
inherited_from \Smarty_Template_Source::renderUncompiled()

Parameters

$_template

\Smarty_Internal_Template

template object

 Properties

 

$compiler_class : string
Inherited
inherited_from \Smarty_Template_Source::$$compiler_class
 

$components : array
Inherited
inherited_from \Smarty_Template_Source::$$components
 

$content : string
magic
property
 

$exists : bool
magic
property
 

$filepath : string
Inherited
inherited_from \Smarty_Template_Source::$$filepath
 

$handler : \Smarty_Resource
Inherited
inherited_from \Smarty_Template_Source::$$handler
 

$name : string
Inherited
inherited_from \Smarty_Template_Source::$$name
 

$recompiled : boolean
Inherited
inherited_from \Smarty_Template_Source::$$recompiled
 

$resource : string
Inherited
inherited_from \Smarty_Template_Source::$$resource
 

$smarty : \Smarty
Inherited
inherited_from \Smarty_Template_Source::$$smarty
 

$template_lexer_class : string
Inherited
inherited_from \Smarty_Template_Source::$$template_lexer_class
 

$template_parser_class : string
Inherited
inherited_from \Smarty_Template_Source::$$template_parser_class
 

$timestamp : int
magic
property
 

$type : string
Inherited
inherited_from \Smarty_Template_Source::$$type
 

$uid : string
Inherited
inherited_from \Smarty_Template_Source::$$uid
 

$uncompiled : boolean
Inherited
inherited_from \Smarty_Template_Source::$$uncompiled
 

$unique_resource : string
Inherited
inherited_from \Smarty_Template_Source::$$unique_resource