Code

Readded smarty
[gosa.git] / gosa-core / include / smarty / plugins / function.msgPool.php
1 <?php
3 function smarty_function_msgPool($params, &$smarty)
4 {
5         if(class_available("msgPool") && isset($params['type'])){
6                 $parameter = array();
7                 foreach($params as $para => $value){
8                         if(!preg_match("/^type$/i",$para)){
9                                 $parameter[$para] = $value;
10                         }
11                 }
12                 if(is_callable("msgPool::".$params['type'])){
13                         echo call_user_func_array(array("msgPool",$params['type']), $parameter);
14                 }else{
15                         trigger_error("Unknown msgPool function ".$params['type']);
16                 }
17         }else{
18                 trigger_error("Unknown class msgPool.");
19         }
20 }
21 ?>