Update to Smarty 3.1.15

This commit is contained in:
Némunaire 2013-10-09 19:08:38 +02:00
commit 1c9cd9208f
119 changed files with 5232 additions and 4641 deletions

View file

@ -39,8 +39,8 @@ require(dirname(__FILE__) . '/Smarty.class.php');
*
* @package Smarty
*/
class SmartyBC extends Smarty {
class SmartyBC extends Smarty
{
/**
* Smarty 2 BC
* @var string
@ -118,10 +118,10 @@ class SmartyBC extends Smarty {
/**
* Registers object to be used in templates
*
* @param string $object name of template object
* @param object $object_impl the referenced PHP object to register
* @param array $allowed list of allowed methods (empty = all)
* @param boolean $smarty_args smarty argument format, else traditional
* @param string $object name of template object
* @param object $object_impl the referenced PHP object to register
* @param array $allowed list of allowed methods (empty = all)
* @param boolean $smarty_args smarty argument format, else traditional
* @param array $block_functs list of methods that are block format
*/
public function register_object($object, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array())
@ -144,8 +144,8 @@ class SmartyBC extends Smarty {
/**
* Registers block function to be used in templates
*
* @param string $block name of template block
* @param string $block_impl PHP function to register
* @param string $block name of template block
* @param string $block_impl PHP function to register
* @param bool $cacheable
* @param mixed $cache_attrs
*/
@ -189,7 +189,7 @@ class SmartyBC extends Smarty {
/**
* Registers modifier to be used in templates
*
* @param string $modifier name of template modifier
* @param string $modifier name of template modifier
* @param string $modifier_impl name of PHP function to register
*/
public function register_modifier($modifier, $modifier_impl)
@ -305,10 +305,10 @@ class SmartyBC extends Smarty {
/**
* clear cached content for the given template and cache id
*
* @param string $tpl_file name of template file
* @param string $cache_id name of cache_id
* @param string $compile_id name of compile_id
* @param string $exp_time expiration time
* @param string $tpl_file name of template file
* @param string $cache_id name of cache_id
* @param string $compile_id name of compile_id
* @param string $exp_time expiration time
* @return boolean
*/
public function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null)
@ -319,7 +319,7 @@ class SmartyBC extends Smarty {
/**
* clear the entire contents of cache (all templates)
*
* @param string $exp_time expire time
* @param string $exp_time expire time
* @return boolean
*/
public function clear_all_cache($exp_time = null)
@ -330,9 +330,9 @@ class SmartyBC extends Smarty {
/**
* test to see if valid cache exists for this template
*
* @param string $tpl_file name of template file
* @param string $cache_id
* @param string $compile_id
* @param string $tpl_file name of template file
* @param string $cache_id
* @param string $compile_id
* @return boolean
*/
public function is_cached($tpl_file, $cache_id = null, $compile_id = null)
@ -353,9 +353,9 @@ class SmartyBC extends Smarty {
* or all compiled template files if one is not specified.
* This function is for advanced use only, not normally needed.
*
* @param string $tpl_file
* @param string $compile_id
* @param string $exp_time
* @param string $tpl_file
* @param string $compile_id
* @param string $exp_time
* @return boolean results of {@link smarty_core_rm_auto()}
*/
public function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null)
@ -366,7 +366,7 @@ class SmartyBC extends Smarty {
/**
* Checks whether requested template exists.
*
* @param string $tpl_file
* @param string $tpl_file
* @return boolean
*/
public function template_exists($tpl_file)
@ -377,7 +377,7 @@ class SmartyBC extends Smarty {
/**
* Returns an array containing template variables
*
* @param string $name
* @param string $name
* @return array
*/
public function get_template_vars($name=null)
@ -388,7 +388,7 @@ class SmartyBC extends Smarty {
/**
* Returns an array containing config variables
*
* @param string $name
* @param string $name
* @return array
*/
public function get_config_vars($name=null)
@ -411,7 +411,7 @@ class SmartyBC extends Smarty {
/**
* return a reference to a registered object
*
* @param string $name
* @param string $name
* @return object
*/
public function get_registered_object($name)
@ -432,7 +432,7 @@ class SmartyBC extends Smarty {
/**
* trigger Smarty error
*
* @param string $error_msg
* @param string $error_msg
* @param integer $error_type
*/
public function trigger_error($error_msg, $error_type = E_USER_WARNING)
@ -454,7 +454,6 @@ class SmartyBC extends Smarty {
function smarty_php_tag($params, $content, $template, &$repeat)
{
eval($content);
return '';
}
?>