mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
added $cacheable-parameter to register_compiler_function()
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- added $cacheable-parameter to register_compiler_function() (messju)
|
||||||
- added $cacheable-parameter with default=true to register_function()
|
- added $cacheable-parameter with default=true to register_function()
|
||||||
and register_block() (messju)
|
and register_block() (messju)
|
||||||
- add math speedup to core (Dominik, Monte)
|
- add math speedup to core (Dominik, Monte)
|
||||||
|
@@ -784,10 +784,10 @@ reques * @var string
|
|||||||
* @param string $function name of template function
|
* @param string $function name of template function
|
||||||
* @param string $function_impl name of PHP function to register
|
* @param string $function_impl name of PHP function to register
|
||||||
*/
|
*/
|
||||||
function register_compiler_function($function, $function_impl)
|
function register_compiler_function($function, $function_impl, $cacheable=true)
|
||||||
{
|
{
|
||||||
$this->_plugins['compiler'][$function] =
|
$this->_plugins['compiler'][$function] =
|
||||||
array($function_impl, null, null, false);
|
array($function_impl, null, null, false, $cacheable);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user