Code

Updated integrated smarty
[gosa.git] / gosa-core / include / smarty / plugins / modifiercompiler.cat.php
1 <?php\r
2 /**\r
3  * Smarty plugin\r
4  *\r
5  * @package Smarty\r
6  * @subpackage PluginsModifierCompiler\r
7  */\r
8 \r
9 /**\r
10  * Smarty cat modifier plugin\r
11  *\r
12  * Type:     modifier<br>\r
13  * Name:     cat<br>\r
14  * Date:     Feb 24, 2003<br>\r
15  * Purpose:  catenate a value to a variable<br>\r
16  * Input:    string to catenate<br>\r
17  * Example:  {$var|cat:"foo"}\r
18  *\r
19  * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat\r
20  *          (Smarty online manual)\r
21  * @author   Uwe Tews\r
22  * @param array $params parameters\r
23  * @return string with compiled code\r
24  */\r
25 function smarty_modifiercompiler_cat($params, $compiler)\r
26 {\r
27     return '('.implode(').(', $params).')';\r
28 }\r
29 \r
30 ?>