Code

fd96c8b46a4d9553318d00cfce26c8647a65733d
[gosa.git] / gosa-core / include / smarty / plugins / modifier.string_format.php
1 <?php
2 /**
3 * Smarty plugin
4
5 * @package Smarty
6 * @subpackage PluginsModifier
7 */
9 /**
10 * Smarty string_format modifier plugin
11
12 * Type:     modifier<br>
13 * Name:     string_format<br>
14 * Purpose:  format strings via sprintf
15
16 * @link http://smarty.php.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
17 * @author Monte Ohrt <monte at ohrt dot com> 
18 * @param string $string input string 
19 * @param string $format format string 
20 * @return string formatted string
21 */
22     function smarty_modifier_string_format($string, $format)
23     {
24         return sprintf($format, $string);
25     } 
27 ?>