Code

Updated smarty
[gosa.git] / gosa-core / include / smarty / sysplugins / smarty_method_clear_all_assign.php
1 <?php
3 /**
4 * Smarty method Clear_All_Assign
5
6 * Deletes all assigned Smarty variables at current level
7
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews 
11 */
13 /**
14 * Delete Smarty variables
15
16 * @param object $smarty 
17 * @param object $data_object object which holds tpl_vars
18 */
19 function  Smarty_Method_Clear_All_Assign($smarty, $data_object = null)
20 {
21     if (isset($data_object)) {
22         $ptr = $data_object;
23     } else {
24         $ptr = $smarty;
25     } 
26     $ptr->tpl_vars = array();
27
29 ?>