You are here

function Smarty::assign_by_ref in Quiz 6.5

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

assigns values to template variables by reference

Parameters

string $tpl_var the template variable name:

mixed $value the referenced value to assign:

File

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

Class

Smarty
@package Smarty

Code

function assign_by_ref($tpl_var, &$value) {
  if ($tpl_var != '') {
    $this->_tpl_vars[$tpl_var] =& $value;
  }
}