BlueSpice MediaWiki master
|
Public Member Functions | |
__construct () | |
templateExists ($resource_name) | |
getGlobal ($varname=null) | |
enableSecurity ($security_class=null) | |
disableSecurity () | |
setTemplateDir ($template_dir, $isConfig=false) | |
addTemplateDir ($template_dir, $key=null, $isConfig=false) | |
getTemplateDir ($index=null, $isConfig=false) | |
setConfigDir ($config_dir) | |
addConfigDir ($config_dir, $key=null) | |
getConfigDir ($index=null) | |
setPluginsDir ($plugins_dir) | |
addPluginsDir ($plugins_dir) | |
getPluginsDir () | |
setCompileDir ($compile_dir) | |
getCompileDir () | |
setCacheDir ($cache_dir) | |
getCacheDir () | |
createTemplate ($template, $cache_id=null, $compile_id=null, $parent=null, $do_clone=true) | |
loadPlugin ($plugin_name, $check=true) | |
_getTemplateId ($template_name, $cache_id=null, $compile_id=null, $caching=null) | |
_realpath ($path, $realpath=null) | |
setCompileCheck ($compile_check) | |
setUseSubDirs ($use_sub_dirs) | |
setErrorReporting ($error_reporting) | |
setEscapeHtml ($escape_html) | |
setAutoLiteral ($auto_literal) | |
setForceCompile ($force_compile) | |
setMergeCompiledIncludes ($merge_compiled_includes) | |
setLeftDelimiter ($left_delimiter) | |
setRightDelimiter ($right_delimiter) | |
setDebugging ($debugging) | |
setConfigOverwrite ($config_overwrite) | |
setConfigBooleanize ($config_booleanize) | |
setConfigReadHidden ($config_read_hidden) | |
setCompileLocking ($compile_locking) | |
setDefaultResourceType ($default_resource_type) | |
setCachingType ($caching_type) | |
testInstall (&$errors=null) | |
__destruct () | |
__get ($name) | |
__set ($name, $value) | |
![]() | |
fetch ($template=null, $cache_id=null, $compile_id=null, $parent=null) | |
display ($template=null, $cache_id=null, $compile_id=null, $parent=null) | |
isCached ($template=null, $cache_id=null, $compile_id=null, $parent=null) | |
registerPlugin ($type, $name, $callback, $cacheable=true, $cache_attr=null) | |
loadFilter ($type, $name) | |
registerFilter ($type, $callback, $name=null) | |
registerObject ($object_name, $object, $allowed_methods_properties=array(), $format=true, $block_methods=array()) | |
setCaching ($caching) | |
setCacheLifetime ($cache_lifetime) | |
setCompileId ($compile_id) | |
setCacheId ($cache_id) | |
![]() | |
__construct () | |
assign ($tpl_var, $value=null, $nocache=false) | |
append ($tpl_var, $value=null, $merge=false, $nocache=false) | |
assignGlobal ($varName, $value=null, $nocache=false) | |
appendByRef ($tpl_var, &$value, $merge=false) | |
assignByRef ($tpl_var, &$value, $nocache=false) | |
getTemplateVars ($varName=null, Smarty_Internal_Data $_ptr=null, $searchParents=true) | |
getVariable ($variable=null, Smarty_Internal_Data $_ptr=null, $searchParents=true, $error_enable=true) | |
_mergeVars (Smarty_Internal_Data $data=null) | |
__call ($name, $args) | |
Static Public Member Functions | |
static | mutingErrorHandler ($errno, $errstr, $errfile, $errline, $errcontext) |
static | muteExpectedErrors () |
static | unmuteExpectedErrors () |
Public Attributes | |
const | SMARTY_VERSION = '3.1.29' |
const | SCOPE_LOCAL = 0 |
const | SCOPE_PARENT = 2 |
const | SCOPE_TPL_ROOT = 4 |
const | SCOPE_ROOT = 8 |
const | SCOPE_SMARTY = 16 |
const | SCOPE_GLOBAL = 32 |
const | SCOPE_BUBBLE_UP = 64 |
const | CACHING_OFF = 0 |
const | CACHING_LIFETIME_CURRENT = 1 |
const | CACHING_LIFETIME_SAVED = 2 |
const | CLEAR_EXPIRED = - 1 |
const | COMPILECHECK_OFF = 0 |
const | COMPILECHECK_ON = 1 |
const | COMPILECHECK_CACHEMISS = 2 |
const | DEBUG_OFF = 0 |
const | DEBUG_ON = 1 |
const | DEBUG_INDIVIDUAL = 2 |
const | PHP_PASSTHRU = 0 |
const | PHP_QUOTE = 1 |
const | PHP_REMOVE = 2 |
const | PHP_ALLOW = 3 |
const | FILTER_POST = 'post' |
const | FILTER_PRE = 'pre' |
const | FILTER_OUTPUT = 'output' |
const | FILTER_VARIABLE = 'variable' |
const | PLUGIN_FUNCTION = 'function' |
const | PLUGIN_BLOCK = 'block' |
const | PLUGIN_COMPILER = 'compiler' |
const | PLUGIN_MODIFIER = 'modifier' |
const | PLUGIN_MODIFIERCOMPILER = 'modifiercompiler' |
const | RESOURCE_CACHE_OFF = 0 |
const | RESOURCE_CACHE_AUTOMATIC = 1 |
const | RESOURCE_CACHE_TEMPLATE = 2 |
const | RESOURCE_CACHE_ON = 4 |
$auto_literal = true | |
$error_unassigned = false | |
$use_include_path = false | |
$_joined_template_dir = null | |
$_joined_config_dir = null | |
$default_template_handler_func = null | |
$default_config_handler_func = null | |
$default_plugin_handler_func = null | |
$force_compile = false | |
$compile_check = true | |
$use_sub_dirs = false | |
$allow_ambiguous_resources = false | |
$merge_compiled_includes = false | |
$force_cache = false | |
$left_delimiter = "{" | |
$right_delimiter = "}" | |
$security_class = 'Smarty_Security' | |
$security_policy = null | |
$php_handling = self::PHP_PASSTHRU | |
$allow_php_templates = false | |
$debugging = false | |
$debugging_ctrl = 'NONE' | |
$smarty_debug_id = 'SMARTY_DEBUG' | |
$debug_tpl = null | |
$error_reporting = null | |
$config_overwrite = true | |
$config_booleanize = true | |
$config_read_hidden = false | |
$compile_locking = true | |
$cache_locking = false | |
$locking_timeout = 10 | |
$default_resource_type = 'file' | |
$caching_type = 'file' | |
$default_config_type = 'file' | |
$resource_cache_mode = 1 | |
$cache_modified_check = false | |
$registered_plugins = array() | |
$registered_objects = array() | |
$registered_classes = array() | |
$registered_filters = array() | |
$registered_resources = array() | |
$registered_cache_resources = array() | |
$autoload_filters = array() | |
$default_modifiers = array() | |
$escape_html = false | |
$start_time = 0 | |
$_current_file = null | |
$_parserdebug = false | |
$_objType = 1 | |
$_debug = null | |
![]() | |
$cache_id = null | |
$compile_id = null | |
$caching = false | |
$cache_lifetime = 3600 | |
$_cache = array() | |
![]() | |
$_objType = 4 | |
$template_class = 'Smarty_Internal_Template' | |
$tpl_vars = array() | |
$parent = null | |
$config_vars = array() | |
$ext = null | |
Static Public Attributes | |
static | $global_tpl_vars = array() |
static | $_previous_error_handler = null |
static | $_muted_directories = array() |
static | $_MBSTRING = SMARTY_MBSTRING |
static | $_CHARSET = SMARTY_RESOURCE_CHAR_SET |
static | $_DATE_FORMAT = SMARTY_RESOURCE_DATE_FORMAT |
static | $_UTF8_MODIFIER = 'u' |
static | $_IS_WINDOWS = false |
Smarty::__construct | ( | ) |
#@- Initialize new Smarty object
Smarty::__destruct | ( | ) |
Class destructor
Smarty::__get | ( | $name | ) |
<<magic>> Generic getter. Calls the appropriate getter function. Issues an E_USER_NOTICE if no valid getter is found.
string | $name | property name |
Smarty::__set | ( | $name, | |
$value | |||
) |
<<magic>> Generic setter. Calls the appropriate setter function. Issues an E_USER_NOTICE if no valid setter is found.
string | $name | property name |
mixed | $value | parameter passed to setter |
Smarty::_getTemplateId | ( | $template_name, | |
$cache_id = null , |
|||
$compile_id = null , |
|||
$caching = null |
|||
) |
Get unique template id
string | $template_name | |
null | mixed | $cache_id | |
null | mixed | $compile_id | |
null | $caching |
Smarty::_realpath | ( | $path, | |
$realpath = null |
|||
) |
Normalize path
string | $path | file path |
bool | $realpath | leave $path relative |
Smarty::addConfigDir | ( | $config_dir, | |
$key = null |
|||
) |
Smarty::addPluginsDir | ( | $plugins_dir | ) |
Smarty::addTemplateDir | ( | $template_dir, | |
$key = null , |
|||
$isConfig = false |
|||
) |
Smarty::createTemplate | ( | $template, | |
$cache_id = null , |
|||
$compile_id = null , |
|||
$parent = null , |
|||
$do_clone = true |
|||
) |
creates a template object
string | $template | the resource handle of the template file |
mixed | $cache_id | cache id to be used with this template |
mixed | $compile_id | compile id to be used with this template |
object | $parent | next higher level of Smarty variables |
boolean | $do_clone | flag is Smarty object shall be cloned |
Smarty::enableSecurity | ( | $security_class = null | ) |
Loads security class and enables security
string | Smarty_Security | $security_class | if a string is used, it must be class-name |
SmartyException | when an invalid class name is provided |
Smarty::getCacheDir | ( | ) |
Get cache directory
Smarty::getCompileDir | ( | ) |
Get compiled directory
Smarty::getConfigDir | ( | $index = null | ) |
Get config directory
mixed | $index | index of directory to get, null to get all |
Smarty::getGlobal | ( | $varname = null | ) |
Returns a single or all global variables
string | $varname | variable name or null |
Smarty::getPluginsDir | ( | ) |
Get plugin directories
Smarty::getTemplateDir | ( | $index = null , |
|
$isConfig = false |
|||
) |
Get template directories
mixed | $index | index of directory to get, null to get all |
bool | $isConfig | true for config_dir |
Smarty::loadPlugin | ( | $plugin_name, | |
$check = true |
|||
) |
Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php
string | $plugin_name | class plugin name to load |
bool | $check | check if already loaded |
SmartyException |
|
static |
Enable error handler to mute expected messages
|
static |
Error Handler to mute expected messages
integer $errno Error level $errstr $errfile $errline $errcontext boolean
Smarty::setAutoLiteral | ( | $auto_literal | ) |
boolean | $auto_literal |
Smarty::setCacheDir | ( | $cache_dir | ) |
Smarty::setCachingType | ( | $caching_type | ) |
string | $caching_type |
Smarty::setCompileCheck | ( | $compile_check | ) |
boolean | $compile_check |
Smarty::setCompileDir | ( | $compile_dir | ) |
Smarty::setCompileLocking | ( | $compile_locking | ) |
boolean | $compile_locking |
Smarty::setConfigBooleanize | ( | $config_booleanize | ) |
boolean | $config_booleanize |
Smarty::setConfigDir | ( | $config_dir | ) |
Smarty::setConfigOverwrite | ( | $config_overwrite | ) |
boolean | $config_overwrite |
Smarty::setConfigReadHidden | ( | $config_read_hidden | ) |
boolean | $config_read_hidden |
Smarty::setDebugging | ( | $debugging | ) |
boolean | $debugging |
Smarty::setDefaultResourceType | ( | $default_resource_type | ) |
string | $default_resource_type |
Smarty::setErrorReporting | ( | $error_reporting | ) |
int | $error_reporting |
Smarty::setEscapeHtml | ( | $escape_html | ) |
boolean | $escape_html |
Smarty::setForceCompile | ( | $force_compile | ) |
boolean | $force_compile |
Smarty::setLeftDelimiter | ( | $left_delimiter | ) |
string | $left_delimiter |
Smarty::setMergeCompiledIncludes | ( | $merge_compiled_includes | ) |
boolean | $merge_compiled_includes |
Smarty::setPluginsDir | ( | $plugins_dir | ) |
Smarty::setRightDelimiter | ( | $right_delimiter | ) |
string | $right_delimiter |
Smarty::setTemplateDir | ( | $template_dir, | |
$isConfig = false |
|||
) |
Set template directory
string | array | $template_dir | directory(s) of template sources |
bool | $isConfig | true for config_dir |
Smarty::setUseSubDirs | ( | $use_sub_dirs | ) |
boolean | $use_sub_dirs |
Smarty::templateExists | ( | $resource_name | ) |
Check if a template resource exists
string | $resource_name | template name |
Smarty::testInstall | ( | & | $errors = null | ) |
Test install
null | $errors |
|
static |
Disable error handler muting expected messages
|
static |
The character set to adhere to (e.g. "UTF-8")
|
static |
The date format to be used internally (accepts date() and strftime())
|
static |
Flag denoting if operating system is windows
|
static |
Flag denoting if Multibyte String functions are available
|
static |
contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors()
|
static |
error handler returned by set_error_handler() in Smarty::muteExpectedErrors()
|
static |
Flag denoting if PCRE should run in UTF-8 mode
|
static |
#@- assigned global tpl vars
const Smarty::CACHING_OFF = 0 |
define caching modes
const Smarty::CLEAR_EXPIRED = - 1 |
define constant for clearing cache files be saved expiration dates
const Smarty::COMPILECHECK_OFF = 0 |
define compile check modes
const Smarty::DEBUG_OFF = 0 |
define debug modes
const Smarty::FILTER_POST = 'post' |
filter types
const Smarty::PHP_PASSTHRU = 0 |
modes for handling of "<?php ... ?>" tags in templates.
const Smarty::PLUGIN_FUNCTION = 'function' |
plugin types
const Smarty::RESOURCE_CACHE_OFF = 0 |
Resource caching modes
const Smarty::SCOPE_LOCAL = 0 |
define variable scopes
const Smarty::SMARTY_VERSION = '3.1.29' |
#@+ constant definitions smarty version