Code

Updated smarty
[gosa.git] / gosa-core / include / smarty / sysplugins / smarty_method__get_filter_name.php
1 <?php
3 /**
4 * Smarty method _get_filter_name
5
6 * Return internal filter name
7
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews 
11 */
13 /**
14 * Return internal filter name
15
16 * @param object $smarty 
17 * @param callback $function 
18 */
19 function Smarty_Method__get_filter_name($smarty, $function)
20 {
21                 if (is_array($function)) {
22                         $_class_name = (is_object($function[0]) ?
23                                 get_class($function[0]) : $function[0]);
24                         return $_class_name . '_' . $function[1];
25                 }
26                 else {
27                         return $function;
28                 }
29
31 ?>