\Smarty_Template_Config

Smarty Config Resource Data Object Meta Data Container for Template Files

Summary

Methods
Properties
Constants
__construct()
load()
getTimeStamp()
getContent()
$uid
$resource
$type
$name
$filepath
$timestamp
$exists
$basename
$components
$handler
$smarty
$isConfig
$content
$compiler_class
$template_lexer_class
$template_parser_class
$config_sections
$scope
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$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

$filepath

$filepath : string

Source Filepath

Type

string

$timestamp

$timestamp : integer

Source Timestamp

Type

integer

$exists

$exists : boolean

Source Existence

Type

boolean

$basename

$basename : string

Source File Base name

Type

string

$components

$components : array<mixed,\Smarty_Template_Source>

The Components an extended template is made of

Type

array<mixed,\Smarty_Template_Source>

$smarty

$smarty : \Smarty

Smarty instance

Type

\Smarty

$isConfig

$isConfig : boolean

Flag that source is a config file

Type

boolean

$content

$content : string

Template source content eventually set by default handler

Type

string

$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

$config_sections

$config_sections : null|string|array

array of section names, single section or null

Type

null|string|array

$scope

$scope : integer

scope into which the config variables shall be loaded

Type

integer

Methods

__construct()

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

create Source Object container

Parameters

\Smarty $smarty

Smarty instance this source object belongs to

string $resource

full template_resource

string $type

type of resource

string $name

resource name

load()

load(\Smarty_Internal_Template  $_template = null, \Smarty  $smarty = null, string  $template_resource = null) : \Smarty_Template_Config

initialize Source Object for given resource Either [$_template] or [$smarty, $template_resource] must be specified

Parameters

\Smarty_Internal_Template $_template

template object

\Smarty $smarty

smarty object

string $template_resource

resource identifier

Throws

\SmartyException

Returns

\Smarty_Template_Config

Source Object

getTimeStamp()

getTimeStamp() : integer

Get source time stamp

Returns

integer

getContent()

getContent() : string

Get source content

Returns

string