PHP Classes

File: Smarty/libs/plugins/modifiercompiler.cat.php

Recommend this page to a friend!
  Classes of Isaac Trenado Mx   FDSSmarty   Smarty/libs/plugins/modifiercompiler.cat.php   Download  
File: Smarty/libs/plugins/modifiercompiler.cat.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: FDSSmarty
Load and display views using Smarty
Author: By
Last change:
Date: 9 years ago
Size: 633 bytes
 

Contents

Class file image Download
<?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).')';
}