1: | <?php
|
2: |
|
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: |
|
12: | class Smarty_Internal_Method_AssignByRef
|
13: | {
|
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: |
|
25: | public function assignByRef(Smarty_Internal_Data $data, $tpl_var, &$value, $nocache)
|
26: | {
|
27: | if ($tpl_var !== '') {
|
28: | $data->tpl_vars[ $tpl_var ] = new Smarty_Variable(null, $nocache);
|
29: | $data->tpl_vars[ $tpl_var ]->value = &$value;
|
30: | if ($data->_isTplObj() && $data->scope) {
|
31: | $data->ext->_updateScope->_updateScope($data, $tpl_var);
|
32: | }
|
33: | }
|
34: | return $data;
|
35: | }
|
36: | }
|
37: | |