abstract | |
---|---|
extends |
Smarty_Internal_Data |
Class with shared smarty/template methods
Methods | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public
|
fetch(string $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null): string
fetches a rendered Smarty template
fetches a rendered Smarty template Parameters
Returnsrendered template output Throws
|
# | ||||||||||||
public
|
display(string $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null)
displays a Smarty template
displays a Smarty template Parameters
Throws
|
# | ||||||||||||
public
|
isCached(
null|string|Smarty_Internal_Template $template = null,
mixed $cache_id = null,
mixed $compile_id = null,
object $parent = null,
): bool
test if cache is valid
test if cache is valid Parameters
Returnscache status Throws
|
# | ||||||||||||
public
|
registerPlugin(
string $type,
string $name,
callable $callback,
bool $cacheable = true,
mixed $cache_attr = null,
): Smarty|Smarty_Internal_Template
Registers plugin to be used in templates
Registers plugin to be used in templates Parameters
Throws
|
# | ||||||||||||
public
|
loadFilter(string $type, string $name): bool
load a filter of specified type and name
load a filter of specified type and name Parameters
Throws
|
# | ||||||||||||
public
|
registerFilter(string $type, callable $callback, string|null $name = null): Smarty|Smarty_Internal_Template
Registers a filter function
Registers a filter function Parameters
Throws
|
# | ||||||||||||
public
|
registerObject(
string $object_name,
object $object,
array $allowed_methods_properties = [],
bool $format = true,
array $block_methods = [],
): Smarty|Smarty_Internal_Template
Registers object to be used in templates
Registers object to be used in templates Parameters
Throws
|
# | ||||||||||||
public
|
setCompileCheck(int $compile_check)
|
# | ||||||||||||
public
|
setCaching(int $caching)
|
# | ||||||||||||
public
|
setCacheLifetime(int $cache_lifetime)
|
# | ||||||||||||
public
|
setCompileId(string $compile_id)
Overriden by |
# | ||||||||||||
public
|
setCacheId(string $cache_id)
|
# | ||||||||||||
public
|
addAutoloadFilters(mixed $filters, string $type = null): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
addDefaultModifiers(mixed $modifiers): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
addLiterals(mixed $literals): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
createData(Smarty_Internal_Data $parent = null, string $name = null): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
getAutoloadFilters(string $type = null): array
|
# | ||||||||||||
public
|
getDebugTemplate(): string
|
# | ||||||||||||
public
|
getDefaultModifier(): array
|
# | ||||||||||||
public
|
getLiterals(): array
|
# | ||||||||||||
public
|
getTags(mixed $template = null): array
|
# | ||||||||||||
public
|
getRegisteredObject(string $object_name): object
|
# | ||||||||||||
public
|
registerCacheResource(string $name, Smarty_CacheResource $resource_handler): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
registerClass(string $class_name, string $class_impl): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
registerDefaultConfigHandler(callback $callback): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
registerDefaultPluginHandler(callback $callback): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
registerDefaultTemplateHandler(callback $callback): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
registerResource(string $name, mixed $resource_handler): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
setAutoloadFilters(mixed $filters, string $type = null): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
setDebugTemplate(string $tpl_name): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
setDefaultModifiers(mixed $modifiers): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
setLiterals(mixed $literals): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
unloadFilter(string $type, string $name): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
unregisterCacheResource(string $name): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
unregisterObject(string $object_name): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
unregisterPlugin(string $type, string $name): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
unregisterFilter(string $type, mixed $callback): Smarty_Internal_TemplateBase
|
# | ||||||||||||
public
|
unregisterResource(string $name): Smarty_Internal_TemplateBase
|
# |
Properties | |||
---|---|---|---|
public
|
string
|
$cache_id = null
|
# |
public
|
string
|
$compile_id = null
|
# |
public
|
int
|
$caching = Smarty::CACHING_OFF
|
# |
public
|
int
|
$compile_check = Smarty::COMPILECHECK_ON
|
# |
public
|
integer
|
$cache_lifetime = 3600
|
# |
public
|
array
|
$tplFunctions = []
|
# |
public
|
|
$_cache = []
universal cache
universal cache |
# |
public
|
int
|
$_objType
|
# |
Properties inherited from Smarty_Internal_Data |
---|
$template_class, $tpl_vars, $parent, $config_vars, $ext, $scope, $smarty |