Skip to content

Smarty_Template_Config

Smarty Config Resource Data Object Meta Data Container for Template Files

Properties

config_sections

array of section names, single section or null

public null|string|array $config_sections

scope

scope into which the config variables shall be loaded

public int $scope

isConfig

Flag that source is a config file

public bool $isConfig

compiler_class

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

public string $compiler_class

template_lexer_class

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

public string $template_lexer_class

template_parser_class

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

public string $template_parser_class

Methods

load

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

public static load(\Smarty_Internal_Template $_template = null, \Smarty $smarty = null, string $template_resource = null): \Smarty_Template_Config
  • This method is static.

Parameters:

Parameter Type Description
$_template \Smarty_Internal_Template template object
$smarty \Smarty smarty object
$template_resource string resource identifier

Return Value:

Source Object

Throws:


Inherited methods

load

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

public static load(\Smarty_Internal_Template $_template = null, \Smarty $smarty = null, string $template_resource = null): \Smarty_Template_Source
  • This method is static.

Parameters:

Parameter Type Description
$_template \Smarty_Internal_Template template object
$smarty \Smarty smarty object
$template_resource string resource identifier

Return Value:

Source Object

Throws:


getTimeStamp

Get source time stamp

public getTimeStamp(): int

getContent

Get source content

public getContent(): string

Throws:



Automatically generated on 2025-03-18