cvs: smarty /libs/plugins modifier.count_words.php modifier.date_format.php modifier.debug_print_var.php modifier.default.php

From: Date: Sun, 20 Apr 2003 21:12:07 +0000
Subject: cvs: smarty /libs/plugins modifier.count_words.php modifier.date_format.php modifier.debug_print_var.php modifier.default.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-549@lists.php.net to get a copy of this message
cellog Sun Apr 20 17:12:07 2003 EDT Modified files: /smarty/libs/plugins modifier.count_words.php modifier.date_format.php modifier.debug_print_var.php modifier.default.php Log: updated all doc comments to phpDocumentor format Index: smarty/libs/plugins/modifier.count_words.php diff -u smarty/libs/plugins/modifier.count_words.php:1.2 smarty/libs/plugins/modifier.count_words.php:1.3 --- smarty/libs/plugins/modifier.count_words.php:1.2 Mon Feb 17 09:58:36 2003 +++ smarty/libs/plugins/modifier.count_words.php Sun Apr 20 17:12:07 2003 @@ -1,12 +1,21 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: count_words + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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.modifier.count.words.php + * count_words (Smarty online manual) + * @param string + * @return integer */ function smarty_modifier_count_words($string) { Index: smarty/libs/plugins/modifier.date_format.php diff -u smarty/libs/plugins/modifier.date_format.php:1.7 smarty/libs/plugins/modifier.date_format.php:1.8 --- smarty/libs/plugins/modifier.date_format.php:1.7 Wed Jun 26 10:51:12 2002 +++ smarty/libs/plugins/modifier.date_format.php Sun Apr 20 17:12:07 2003 @@ -1,17 +1,32 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: date_format - * Purpose: format datestamps via strftime - * Input: string: input date string - * format: strftime format for output - * default_date: default date if $string is empty - * ------------------------------------------------------------- + * @package Smarty + * @subpackage plugins + */ + +/** + * Include the {@link shared.make_timestamp.php} plugin */ require_once $this->_get_plugin_filepath('shared','make_timestamp'); +/** + * Smarty date_format modifier plugin + * + * Type: modifier<br> + * Name: date_format<br> + * Purpose: format datestamps via strftime<br> + * Input:<br> + * - string: input date string + * - format: strftime format for output + * - default_date: default date if $string is empty + * @link http://smarty.php.net/manual/en/language.modifier.date.format.php + * date_format (Smarty online manual) + * @param string + * @param string + * @param string + * @return string|void + * @uses smarty_make_timestamp() + */ function smarty_modifier_date_format($string, $format="%b %e, %Y", $default_date=null) { if($string != '') { Index: smarty/libs/plugins/modifier.debug_print_var.php diff -u smarty/libs/plugins/modifier.debug_print_var.php:1.5 smarty/libs/plugins/modifier.debug_print_var.php:1.6 --- smarty/libs/plugins/modifier.debug_print_var.php:1.5 Thu Mar 27 17:10:00 2003 +++ smarty/libs/plugins/modifier.debug_print_var.php Sun Apr 20 17:12:07 2003 @@ -1,12 +1,23 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: debug_print_var + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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.print.var.php + * debug_print_var (Smarty online manual) + * @param array|object + * @param integer + * @param integer + * @return string */ function smarty_modifier_debug_print_var($var, $depth = 0, $length = 40) { Index: smarty/libs/plugins/modifier.default.php diff -u smarty/libs/plugins/modifier.default.php:1.3 smarty/libs/plugins/modifier.default.php:1.4 --- smarty/libs/plugins/modifier.default.php:1.3 Thu Apr 10 16:55:36 2003 +++ smarty/libs/plugins/modifier.default.php Sun Apr 20 17:12:07 2003 @@ -1,12 +1,22 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: modifier - * Name: default + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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.default.php + * default (Smarty online manual) + * @param string + * @param string + * @return string */ function smarty_modifier_default($string, $default = '') {

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