Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/**
4
 * Smarty plugin
5
 *
6
 * @package    Smarty
7
 * @subpackage PluginsModifierCompiler
8
 */
9
/**
10
 * Smarty str_repeat modifier plugin
11
 * Type:     modifier
12
 * Name:     str_repeat
13
 * Purpose:  returns string repeated times times
14
 *
15
 * @link   https://www.smarty.net/docs/en/language.modifier.str_repeat.tpl str_repeat (Smarty online manual)
16
 *
17
 * @param array $params parameters
18
 *
19
 * @return string with compiled code
20
 */
21
function smarty_modifiercompiler_str_repeat($params) {
22
    return 'str_repeat((string) ' . $params[0] . ', (int) ' . $params[1] . ')';
23
}