code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty strip modifier plugin * * Type: modifier<br> * Name: strip<br> * Purpose: Replace all repeated spaces, newlines, tabs * with a single space or supplied replacement string....
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty strip_tags modifier plugin * * Type: modifier<br> * Name: strip_tags<br> * Purpose: strip html tags from text * * @link http://smarty.php.net/manual/en/language.modifier.strip.tags....
PHP
<?php /** * Smarty plugin * * This plugin is only for Smarty2 BC * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {math} function plugin * * Type: function<br> * Name: math<br> * Purpose: handle math computations in template<br> * @link http://smarty.php.net/manual/en/language.funct...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_options} function plugin * * Type: function<br> * Name: html_options<br> * Purpose: Prints the list of <option> tags generated from * the passed parameters * * @link http://smarty.php.n...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage Debug */ /** * Smarty debug_print_var modifier plugin * * Type: modifier<br> * Name: debug_print_var<br> * Purpose: formats variable contents for display in the console * * @link http://smarty.php.net/manual/en/language.modifier.debug....
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifier */ /** * Smarty spacify modifier plugin * * Type: modifier<br> * Name: spacify<br> * Purpose: add spaces between characters in a string * * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty escape modifier plugin * * Type: modifier<br> * Name: escape<br> * Purpose: escape string for output * * @link http://smarty.php.net/manual/en/language.modifier.count.characters.php count_characters (Sm...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty default modifier plugin * * Type: modifier<br> * Name: default<br> * Purpose: designate default value for empty variables * * @link http://smarty.php.net/manual/en/language.modifier...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_checkboxes} function plugin * * File: function.html_checkboxes.php<br> * Type: function<br> * Name: html_checkboxes<br> * Date: 24.Feb.2003<br> * Purpose: Prints out a list of checkb...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty noprint modifier plugin * * Type: modifier<br> * Name: noprint<br> * Purpose: return an empty string * @author Uwe Tews * @param array $params parameters * @return string with com...
PHP
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ /** * escape_special_chars common function * * Function: smarty_function_escape_special_chars<br> * Purpose: used by other smarty functions to escape * special chars except for already escaped ones * @author Mon...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_select_time} function plugin * * Type: function<br> * Name: html_select_time<br> * Purpose: Prints the dropdowns for time selection * * @link http://smarty.php.net/manual/en/language.function.html....
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_image} function plugin * * Type: function<br> * Name: html_image<br> * Date: Feb 24, 2003<br> * Purpose: format HTML tags for the image<br> * Examples: {html_image file="/images/masthead.gif"} ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifier */ /** * Smarty replace modifier plugin * * Type: modifier<br> * Name: replace<br> * Purpose: simple search/replace * * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) * @...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_select_date} plugin * * Type: function<br> * Name: html_select_date<br> * Purpose: Prints the dropdowns for date selection. * * ChangeLog:<br> * - 1.0 initial release * - 1....
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFilter */ /** * Smarty trimwhitespace outputfilter plugin * * File: outputfilter.trimwhitespace.php<br> * Type: outputfilter<br> * Name: trimwhitespace<br> * Date: Jan 25, 2003<br> * Purpose: trim leading white space and bl...
PHP
<?php if(!function_exists('smarty_mb_str_replace')) { function smarty_mb_str_replace($search, $replace, $subject, &$count=0) { if (!is_array($search) && is_array($replace)) { return false; } if (is_array($subject)) { // call mb_replace for each single string in $subject ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty truncate modifier plugin * * Type: modifier<br> * Name: truncate<br> * Purpose: Truncate a string to a certain length if necessary, * optionally splitting in the middle of a word, and * ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty regex_replace modifier plugin * * Type: modifier<br> * Name: regex_replace<br> * Purpose: regular expression search/replace * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php * ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty upper modifier plugin * * Type: modifier<br> * Name: lower<br> * Purpose: convert string to uppercase * * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Sm...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty string_format modifier plugin * * Type: modifier<br> * Name: string_format<br> * Purpose: format strings via sprintf * * @link http://smarty.php.net/manual/en/language.modifier.str...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_characters modifier plugin * * Type: modifier<br> * Name: count_characteres<br> * Purpose: count the number of characters in a text * * @link http://smarty.php.net/manual/en/l...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty cat modifier plugin * * Type: modifier<br> * Name: cat<br> * Date: Feb 24, 2003 * Purpose: catenate a value to a variable * Input: string to catenate * Example: {$var|cat:"f...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {fetch} plugin * * Type: function<br> * Name: fetch<br> * Purpose: fetch file, web or ftp data and display results * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} * (Smarty...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {mailto} function plugin * * Type: function<br> * Name: mailto<br> * Date: May 21, 2002 * Purpose: automate mailto address link creation, and optionally * encode them.<br> * * Examples: ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFilter */ /** * Smarty htmlspecialchars variablefilter plugin * * @param string $source input string * @param object $ &$smarty Smarty object * @return string filtered output */ function smarty_variablefilter_htmlspecialchars($source, $sm...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {cycle} function plugin * * Type: function<br> * Name: cycle<br> * Date: May 3, 2002<br> * Purpose: cycle through given values<br> * Input: * - name = name of cycle (optional) * - valu...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_radios} function plugin * * File: function.html_radios.php<br> * Type: function<br> * Name: html_radios<br> * Date: 24.Feb.2003<br> * Purpose: Prints out a list of radio input type...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_paragraphs modifier plugin * * Type: modifier<br> * Name: count_paragraphs<br> * Purpose: count the number of paragraphs in a text * @link http://smarty.php.net/manual/en/language...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_words modifier plugin * * Type: modifier<br> * Name: count_words<br> * Purpose: count the number of words in a text * * @link http://smarty.php.net/manual/en/language.modifie...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_table} function plugin * * Type: function<br> * Name: html_table<br> * Date: Feb 17, 2003<br> * Purpose: make an html table from an array of data<br> * * * Examples: * <pre> * {table loop=...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty indent modifier plugin * * Type: modifier<br> * Name: indent<br> * Purpose: indent lines of text * @link http://smarty.php.net/manual/en/language.modifier.indent.php * indent (Sm...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: Smarty.class.php * SVN: $Id: Smarty.class.php 4074 2011-04-22 02:19:14Z uwe.tews@googlemail.com $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Publi...
PHP
<?php /** * Smarty Internal Plugin Debug * * Class to collect data for the Smarty Debugging Consol * * @package Smarty * @subpackage Debug * @author Uwe Tews */ /** * Smarty Internal Plugin Debug Class */ class Smarty_Internal_Debug extends Smarty_Internal_Data { // template data static $template_data = array(); ...
PHP
<?php /** * Smarty Internal Plugin Compile Modifier * * Compiles code for modifier execution * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Modifier Class */ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileB...
PHP
<?php /** * Smarty Internal Plugin Compile Rdelim * * Compiles the {rdelim} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Rdelim Class */ class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase { /** * Compiles code for the...
PHP
<?php /** * Smarty Internal Plugin Resource Stream * * Implements the streams as resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Stream */ class Smarty_Internal_Resource_Stream { public function __construct($smarty) {...
PHP
<?php /** * Smarty Internal Plugin Compile Eval * * Compiles the {eval} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Eval Class */ class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase { public $required_attributes = array('var...
PHP
<?php /** * Smarty Internal Plugin Compile Nocache * * Compiles the {nocache} {/nocache} tags * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Nocache Class */ class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase { /** * Compi...
PHP
<?php /** * Smarty Internal Plugin Template * * This file contains the Smarty template engine * * @package Smarty * @subpackage Templates * @author Uwe Tews */ /** * Main class with template data structures and methods */ class Smarty_Internal_Template extends Smarty_Internal_Data { // object cache ...
PHP
<?php /** * Smarty Internal Plugin Compile Function Plugin * * Compiles code for the execution of function plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Plugin Class */ class Smarty_Internal_Compile_Private_Function_Plugin extends Sma...
PHP
<?php /** * Smarty Internal Plugin CacheResource File * * Implements the file system as resource for the HTML cache * Version ussing nocache inserts * * @package Smarty * @subpackage Cacher * @author Uwe Tews */ /** * This class does contain all necessary methods for the HTML cache on file system */ cla...
PHP
<?php /** * Smarty Internal Plugin Filter Handler * * Smarty filter handler class * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews */ /** * Class for filter processing */ class Smarty_Internal_Filter_Handler { /** * Run filters over content * * The filters will be ...
PHP
<?php /** * Smarty Internal Plugin Templateparser * * This is the template parser. * It is generated from the internal.templateparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TP_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); function __...
PHP
<?php /** * Smarty Internal Plugin Compile Object Funtion * * Compiles code for registered objects as function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Object Function Class */ class Smarty_Internal_Compile_Private_Object_Function extends Smarty...
PHP
<?php /** * Smarty Internal Plugin Resource String * * Implements the strings as resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource String */ class Smarty_Internal_Resource_String { public function __construct(...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Function * * Compiles code for the execution of a registered function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Function Class */ class Smarty_Internal_Compile_Privat...
PHP
<?php /** * Smarty Internal Plugin Compile Print Expression * * Compiles any tag which will output an expression or variable * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Print Expression Class */ class Smarty_Internal_Compile_Private_Print_Expressio...
PHP
<?php /** * Smarty Internal Plugin Compile Section * * Compiles the {section} {sectionelse} {/section} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Section Class */ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase { //...
PHP
<?php /** * Smarty Internal Plugin Function Call Handler * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews */ /** * This class does call function defined with the {function} tag */ class Smarty_Internal_Function_Call_Handler extends Smarty_Internal_Template { static function...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: smarty_internal_utility.php * SVN: $Id: $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundati...
PHP
<?php /** * Smarty Internal Plugin Configfilelexer * * This is the lexer to break the config file source into tokens * @package Smarty * @subpackage Config * @author Uwe Tews */ /** * Smarty Internal Plugin Configfilelexer */ class Smarty_Internal_Configfilelexer { public $data; public $counter; public $to...
PHP
<?php /** * Smarty write file plugin * * @package Smarty * @subpackage PluginsInternal * @author Monte Ohrt */ /** * Smarty Internal Write File Class */ class Smarty_Internal_Write_File { /** * Writes file in a save way to disk * * @param string $_filepath complete filepath * @param...
PHP
<?php /** * Smarty Internal Plugin Resource Eval * * Implements the strings as resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Eval */ class Smarty_Internal_Resource_Eval { public function __...
PHP
<?php /** * Smarty Internal Plugin Compile Block * * Compiles the {block}{/block} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Class */ class Smarty_Internal_Compile_Block extends Smarty_Internal_CompileBase { // attribute definitions p...
PHP
<?php /** * Smarty Internal Plugin Config File Compiler * * This is the config file compiler class. It calls the lexer and parser to * perform the compiling. * * @package Smarty * @subpackage Config * @author Uwe Tews */ /** * Main config file compiler class */ class Smarty_Internal_Config_File_Compile...
PHP
<?php /** * Smarty Internal Plugin Compile Special Smarty Variable * * Compiles the special $smarty variables * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile special Smarty Variable Class */ class Smarty_Internal_Compile_Private_Special_Variable extend...
PHP
<?php /** * Smarty Internal Plugin Compile For * * Compiles the {for} {forelse} {/for} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile For Class */ class Smarty_Internal_Compile_For extends Smarty_Internal_CompileBase { /** * Compiles cod...
PHP
<?php /** * Smarty Internal Plugin Templateparser Parsetrees * * These are classes to build parsetrees in the template parser * * @package Smarty * @subpackage Compiler * @author Thue Kristensen * @author Uwe Tews */ abstract class _smarty_parsetree { abstract public function to_smarty_php...
PHP
<?php /** * Smarty Internal Plugin Smarty Template Compiler Base * * This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Main compiler class */ class Smarty_Internal_TemplateCom...
PHP
<?php /** * Smarty Internal Plugin Resource Extends * * Implements the file system as resource for Smarty which does extend a chain of template files templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Extends */ class Smarty_Internal_...
PHP
<?php /** * Smarty Internal Plugin Compile Capture * * Compiles the {capture} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Capture Class */ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase { // attribute definitions ...
PHP
<?php /** * Smarty Internal Plugin Compile Ldelim * * Compiles the {ldelim} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Ldelim Class */ class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase { /** * Compiles code for the...
PHP
<?php /** * Smarty Internal Plugin Compile Config Load * * Compiles the {config load} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Config Load Class */ class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase { // attribut...
PHP
<?php /** * Smarty Internal Plugin Compile Debug * * Compiles the {debug} tag * It opens a window the the Smarty Debugging Console * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Debug Class */ class Smarty_Internal_Compile_Debug extends Smarty_Internal_...
PHP
<?php /** * Smarty Internal Plugin Compile Continue * * Compiles the {continue} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Continue Class */ class Smarty_Internal_Compile_Continue extends Smarty_Internal_CompileBase { // attrib...
PHP
<?php /** * Smarty Internal Plugin Filter * * External Smarty filter methods * * @package Smarty * @author Uwe Tews */ /** * Class for filter methods */ class Smarty_Internal_Filter { function __construct($smarty) { $this->smarty = $smarty; } /** * Registers a filter functio...
PHP
<?php /** * Smarty Internal Plugin Smarty Template Compiler Base * * This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ require_once("smarty_internal_parsetree.php"); /** * Class SmartyTemplat...
PHP
<?php /** * Smarty Internal Plugin Compile Function * * Compiles the {function} {/function} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Class */ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase { // attribut...
PHP
<?php /** * Smarty Internal Plugin Compile Include * * Compiles the {include} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Include Class */ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { // caching mode to create n...
PHP
<?php /** * Smarty Internal Plugin Compile Block Plugin * * Compiles code for the execution of block plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Plugin Class */ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal...
PHP
<?php /** * Smarty Internal Plugin Data * * This file contains the basic classes and methodes for template and variable creation * * @package Smarty * @subpackage Templates * @author Uwe Tews */ /** * Base class with template and variable methodes */ class Smarty_Internal_Data { // class used for templa...
PHP
<?php /** * Smarty Internal Plugin Compile If * * Compiles the {if} {else} {elseif} {/if} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile If Class */ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase { /** * Compiles co...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Block * * Compiles code for the execution of a registered block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Block Class */ class Smarty_Internal_Compile_Private...
PHP
<?php /** * Smarty read include path plugin * * @package Smarty * @subpackage PluginsInternal * @author Monte Ohrt */ /** * Smarty Internal Read Include Path Class */ class Smarty_Internal_Get_Include_Path { /** * Return full file path from PHP include_path * * @param st...
PHP
<?php /** * Smarty Internal Plugin Compile Foreach * * Compiles the {foreach} {foreachelse} {/foreach} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Foreach Class */ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase { //...
PHP
<?php /** * Smarty Internal Plugin Resource File * * Implements the file system as resource for Smarty templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource File */ class Smarty_Internal_Resource_File { public function __construct($...
PHP
<?php /** * Smarty Internal Plugin Resource PHP * * Implements the file system as resource for PHP templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource PHP */ class Smarty_Internal_Resource_PHP { /** * Class constructor, enable...
PHP
<?php /** * Smarty Internal Plugin Compile Include PHP * * Compiles the {include_php} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase { // attribute def...
PHP
<?php /** * Smarty Internal Plugin Configfileparser * * This is the config file parser. * It is generated from the internal.configfileparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TPC_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); fun...
PHP
<?php /** * Smarty Internal Plugin Resource Registered * * Implements the registered resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Registered */ class Smarty_Internal_Resource_Registered { public function ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage Security * @author Uwe Tews */ /** * This class does contain the security settings */ class Smarty_Security { /** * This determines how Smarty handles "<?php ... ?>" tags in templates. * possible values: * <ul> * <li>Smart...
PHP
<?php /** * Smarty Internal Plugin CompileBase * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * This class does extend all internal compile plugins */ // abstract class Smarty_Internal_CompileBase implements TagCompilerInterface class Smarty_Internal_CompileBase { public $required_att...
PHP
<?php /** * Smarty Internal Plugin Compile Insert * * Compiles the {insert} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase { // attribute definitions pu...
PHP
<?php /** * Smarty Internal Plugin Compile Break * * Compiles the {break} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Break Class */ class Smarty_Internal_Compile_Break extends Smarty_Internal_CompileBase { // attribute definiti...
PHP
<?php /** * Smarty Internal Plugin Compile Object Block Function * * Compiles code for registered objects as block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Object Block Function Class */ class Smarty_Internal_Compile_Private_Object_Bloc...
PHP
<?php /** * Smarty Internal Plugin Register * * External Smarty methods register/unregister * * @package Smarty * @author Uwe Tews */ /** * Class for register/unregister methods */ class Smarty_Internal_Register { function __construct($smarty) { $this->smarty = $smarty; } /** ...
PHP
<?php /** * Smarty Internal Plugin Compile Function_Call * * Compiles the calls of user defined tags defined by {function} * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function_Call Class */ class Smarty_Internal_Compile_Call extends Smarty_Interna...
PHP
<?php /** * Smarty Internal Plugin Compile Assign * * Compiles the {assign} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Assign Class */ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase { /** * Compiles code for...
PHP
<?php /** * Smarty Internal Plugin Compile While * * Compiles the {while} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile While Class */ class Smarty_Internal_Compile_While extends Smarty_Internal_CompileBase { /** * Compiles code for the {while} tag...
PHP
<?php /** * Smarty Internal Plugin Compile extend * * Compiles the {extends} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile extend Class */ class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase { // attribute definitions pub...
PHP
<?php /** * Smarty Internal Plugin Templatelexer * * This is the lexer to break the template source into tokens * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Templatelexer */ class Smarty_Internal_Templatelexer { public $data; public $counter; public $token; ...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: smarty_internal_wrapper.php * SVN: $Id: $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundati...
PHP
<?php /** * Smarty Internal Plugin Config * * Main class for config variables * * @ignore * @package Smarty * @subpackage Config * @author Uwe Tews */ class Smarty_Internal_Config { static $config_objects = array(); public function __construct($config_resource, $smarty, $data = null) { ...
PHP
<?php /** * Smarty Internal Plugin Compile Append * * Compiles the {append} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Append Class */ class Smarty_Internal_Compile_Append extends Smarty_Internal_Compile_Assign { /** * Compiles code ...
PHP
<?php /** * Smarty Internal Plugin Nocache Insert * * Compiles the {insert} tag into the cache file * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Nocache_Insert { /** * Compiles code fo...
PHP
PHP file test $foo is <?=$foo?> <br> Test functions <? echo trim($foo,"'");?> <br>Test objects <?=$person->setName('Paul')->setAge(39)->introduce()?> <br>Test Arrays <?=$array['a']['aa']?> <?=$array['b']?> <br>function time <? echo time();?> <br>nocache function time <? echo '<? echo time();?>';?> <br>DONE
PHP
<?php /** * Test script for PHP template * @author Monte Ohrt <monte at ohrt dot com> * @package SmartyTestScripts */ require('../libs/Smarty.class.php'); class Person { private $m_szName; private $m_iAge; public function setName($szName) { $this->m_szName = $szName; return $this...
PHP
<?php require('../libs/Smarty.class.php'); $smarty = new Smarty; //$smarty->force_compile = true; $smarty->debugging = true; $smarty->caching = true; $smarty->cache_lifetime = 120; $smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill",true); $smarty->assign("FirstName",array("John","Mary","James","Henr...
PHP
<?php include_once("../configure/admin.config.inc.php"); //--> admin global var include_once("db.inc.php"); //--> db global var include_once("Smarty.class.php"); //--> out template include_once("Merchant.php"); //--> Merchant include_once("Operation.php"); //--> Operation require_once("controlHeade...
PHP