Files
smarty/libs/plugins/modifiercompiler.cat.php

30 lines
665 B
PHP
Raw Normal View History

<?php
/**
* Smarty plugin
2010-08-17 15:39:51 +00:00
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty cat modifier plugin
*
* Type: modifier<br>
* Name: cat<br>
2011-09-16 14:19:56 +00:00
* Date: Feb 24, 2003<br>
* Purpose: catenate a value to a variable<br>
* Input: string to catenate<br>
* Example: {$var|cat:"foo"}
2011-09-16 14:19:56 +00:00
*
* @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)
{
2010-08-17 15:39:51 +00:00
return '('.implode(').(', $params).')';
}
?>