Files
PrestaShop/tools/smarty/plugins/modifiercompiler.cat.php
rGaillard 3f5f0bb897 // Update to Smarty 3.1.6
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11177 b9a71923-0436-4b27-9f14-aed3839534dd
2011-12-13 13:53:36 +00:00

30 lines
665 B
PHP
Executable File

<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty cat modifier plugin
*
* Type: modifier<br>
* Name: cat<br>
* Date: Feb 24, 2003<br>
* Purpose: catenate a value to a variable<br>
* Input: string to catenate<br>
* Example: {$var|cat:"foo"}
*
* @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
* (Smarty online manual)
* @author Uwe Tews
* @param array $params parameters
* @return string with compiled code
*/
function smarty_modifiercompiler_cat($params, $compiler)
{
return '('.implode(').(', $params).')';
}
?>