summaryrefslogtreecommitdiff
path: root/tests/UnitTests/__shared/PHPunitplugins/function.pluginassign.php
blob: 7786b742e9fc9410b9ea550918282ca60045be08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Smarty plugin for assign
 *


 */

/**
 * Smarty {pluginassign}
 *
 * @param array  $params   parameter array
 * @param object $template template object
 *
 * @return string
 */
function smarty_function_pluginassign($params, $template)
{
    $template->assign($params[ 'var' ], $params[ 'value' ]);
    return '';
}