You are here

function Smarty::register_compiler_function in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::register_compiler_function()

Registers compiler function

Parameters

string $function name of template function:

string $function_impl name of PHP function to register:

File

includes/moodle/lib/smarty/Smarty.class.php, line 762

Class

Smarty
@package Smarty

Code

function register_compiler_function($function, $function_impl, $cacheable = true) {
  $this->_plugins['compiler'][$function] = array(
    $function_impl,
    null,
    null,
    false,
    $cacheable,
  );
}