cvs: smarty /libs/plugins modifier.truncate.php modifier.upper.php modifier.wordwrap.php outputfilter.trimwhitespace.php
shared.escape_special_chars.php

From: Date: Sun, 20 Apr 2003 21:12:12 +0000
Subject: cvs: smarty /libs/plugins modifier.truncate.php modifier.upper.php modifier.wordwrap.php outputfilter.trimwhitespace.php
shared.escape_special_chars.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-552@lists.php.net to get a copy of this message
cellog Sun Apr 20 17:12:12 2003 EDT Modified files: /smarty/libs/plugins modifier.truncate.php modifier.upper.php modifier.wordwrap.php outputfilter.trimwhitespace.php shared.escape_special_chars.php Log: updated all doc comments to phpDocumentor format Index: smarty/libs/plugins/modifier.truncate.php diff -u smarty/libs/plugins/modifier.truncate.php:1.2 smarty/libs/plugins/modifier.truncate.php:1.3 --- smarty/libs/plugins/modifier.truncate.php:1.2 Wed Mar 12 16:56:32 2003 +++ smarty/libs/plugins/modifier.truncate.php Sun Apr 20 17:12:12 2003 @@ -1,14 +1,26 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: truncate + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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 * appending the $etc string. - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.modifier.truncate.php + * truncate (Smarty online manual) + * @param string + * @param integer + * @param string + * @param boolean + * @return string */ function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false) Index: smarty/libs/plugins/modifier.upper.php diff -u smarty/libs/plugins/modifier.upper.php:1.1 smarty/libs/plugins/modifier.upper.php:1.2 --- smarty/libs/plugins/modifier.upper.php:1.1 Thu Jan 31 15:49:40 2002 +++ smarty/libs/plugins/modifier.upper.php Sun Apr 20 17:12:12 2003 @@ -1,12 +1,21 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: upper + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty upper modifier plugin + * + * Type: modifier<br> + * Name: upper<br> * Purpose: convert string to uppercase - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.modifier.upper.php + * upper (Smarty online manual) + * @param string + * @return string */ function smarty_modifier_upper($string) { Index: smarty/libs/plugins/modifier.wordwrap.php diff -u smarty/libs/plugins/modifier.wordwrap.php:1.1 smarty/libs/plugins/modifier.wordwrap.php:1.2 --- smarty/libs/plugins/modifier.wordwrap.php:1.1 Fri Mar 15 02:08:17 2002 +++ smarty/libs/plugins/modifier.wordwrap.php Sun Apr 20 17:12:12 2003 @@ -1,12 +1,24 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: wordwrap + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty wordwrap modifier plugin + * + * Type: modifier<br> + * Name: wordwrap<br> * Purpose: wrap a string of text at a given length - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php + * wordwrap (Smarty online manual) + * @param string + * @param integer + * @param string + * @param boolean + * @return string */ function smarty_modifier_wordwrap($string,$length=80,$break="\n",$cut=false) { Index: smarty/libs/plugins/outputfilter.trimwhitespace.php diff -u smarty/libs/plugins/outputfilter.trimwhitespace.php:1.5 smarty/libs/plugins/outputfilter.trimwhitespace.php:1.6 --- smarty/libs/plugins/outputfilter.trimwhitespace.php:1.5 Mon Mar 17 19:44:37 2003 +++ smarty/libs/plugins/outputfilter.trimwhitespace.php Sun Apr 20 17:12:12 2003 @@ -1,22 +1,29 @@ <?php -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.trimwhitespace.php - * Type: outputfilter - * Name: trimwhitespace - * Version: 1.3 - * Date: Jan 25, 2003 + * @package Smarty + * @subpackage plugins + */ + +/** + * 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 blank lines from * template source after it gets interpreted, cleaning * up code and saving bandwidth. Does not affect - * <PRE></PRE> and <SCRIPT></SCRIPT> blocks. + * <<PRE>></PRE> and <SCRIPT></SCRIPT> blocks.<br> * Install: Drop into the plugin directory, call - * $smarty->load_filter('output','trimwhitespace'); + * <code>$smarty->load_filter('output','trimwhitespace');</code> * from application. - * Author: Monte Ohrt <monte@ispi.net> - * Contribs: Lars Noschinski <lars@usenet.noschinski.de> - * ------------------------------------------------------------- + * @author Monte Ohrt <monte@ispi.net> + * @author Contributions from Lars Noschinski <lars@usenet.noschinski.de> + * @version 1.3 + * @param string + * @param Smarty */ function smarty_outputfilter_trimwhitespace($source, &$smarty) { Index: smarty/libs/plugins/shared.escape_special_chars.php diff -u smarty/libs/plugins/shared.escape_special_chars.php:1.2 smarty/libs/plugins/shared.escape_special_chars.php:1.3 --- smarty/libs/plugins/shared.escape_special_chars.php:1.2 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/shared.escape_special_chars.php Sun Apr 20 17:12:12 2003 @@ -1,10 +1,20 @@ <?php +/** + * Smarty shared plugin + * @package Smarty + * @subpackage plugins + */ -/*======================================================================*\ - Function: smarty_function_escape_special_chars - Purpose: used by other smarty functions to escape - special chars except for already escaped ones -\*======================================================================*/ + +/** + * 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 + * @param string + * @return string + */ function smarty_function_escape_special_chars($string) { if(!is_array($string)) {

« previous php.smarty.cvs (#552) next »