cvs: smarty /libs/plugins function.debug.php function.eval.php function.fetch.php function.html_checkboxes.php function.html_image.php
function.html_options.php
| From: | Greg Beaver | Date: | Sun, 20 Apr 2003 21:11:59 +0000 |
| Subject: | cvs: smarty /libs/plugins function.debug.php function.eval.php function.fetch.php function.html_checkboxes.php function.html_image.php function.html_options.php |
||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-545@lists.php.net to get a copy of this message | ||
cellog Sun Apr 20 17:11:59 2003 EDT
Modified files:
/smarty/libs/plugins function.debug.php function.eval.php
function.fetch.php
function.html_checkboxes.php
function.html_image.php
function.html_options.php
Log:
updated all doc comments to phpDocumentor format
Index: smarty/libs/plugins/function.debug.php diff -u smarty/libs/plugins/function.debug.php:1.3 smarty/libs/plugins/function.debug.php:1.4 --- smarty/libs/plugins/function.debug.php:1.3 Wed Jan 8 12:34:45 2003 +++ smarty/libs/plugins/function.debug.php Sun Apr 20 17:11:59 2003 @@ -1,15 +1,25 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: debug - * Version: 1.0 - * Date: July 1, 2002 - * Author: Monte Ohrt <monte@ispi.net> + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty {debug} function plugin + * + * Type: function<br> + * Name: debug<br> + * Date: July 1, 2002<br> * Purpose: popup debug window - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.function.debug.php {debug} + * (Smarty online manual) + * @author Monte Ohrt <monte@ispi.net> + * @version 1.0 + * @param array + * @param Smarty + * @return string output from {@link Smarty::_generate_debug_output()} */ function smarty_function_debug($params, &$smarty) { Index: smarty/libs/plugins/function.eval.php diff -u smarty/libs/plugins/function.eval.php:1.5 smarty/libs/plugins/function.eval.php:1.6 --- smarty/libs/plugins/function.eval.php:1.5 Wed Jan 8 12:34:45 2003 +++ smarty/libs/plugins/function.eval.php Sun Apr 20 17:11:59 2003 @@ -1,12 +1,21 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: eval - * Purpose: evaluate a template variable as a template - * ------------------------------------------------------------- + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty {eval} function plugin + * + * Type: function<br> + * Name: eval<br> + * Purpose: evaluate a template variable as a template<br> + * @link http://smarty.php.net/manual/en/language.function.eval.php {eval} + * (Smarty online manual) + * @param array + * @param Smarty */ function smarty_function_eval($params, &$this) { Index: smarty/libs/plugins/function.fetch.php diff -u smarty/libs/plugins/function.fetch.php:1.11 smarty/libs/plugins/function.fetch.php:1.12 --- smarty/libs/plugins/function.fetch.php:1.11 Mon Feb 24 09:23:39 2003 +++ smarty/libs/plugins/function.fetch.php Sun Apr 20 17:11:59 2003 @@ -1,12 +1,23 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: fetch + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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 online manual) + * @param array + * @param Smarty + * @return string|null if the assign parameter is passed, Smarty assigns the + * result to a template variable */ function smarty_function_fetch($params, &$smarty) { Index: smarty/libs/plugins/function.html_checkboxes.php diff -u smarty/libs/plugins/function.html_checkboxes.php:1.9 smarty/libs/plugins/function.html_checkboxes.php:1.10 --- smarty/libs/plugins/function.html_checkboxes.php:1.9 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/function.html_checkboxes.php Sun Apr 20 17:11:59 2003 @@ -1,26 +1,41 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * File: function.html_checkboxes.php - * Type: function - * Name: html_checkboxes - * Version: 1.0 - * Date: 24.Feb.2003 - * Purpose: Prints out a list of checkbox input types - * Input: name (optional) - string default "checkbox" - * values (required) - array - * options (optional) - associative array - * checked (optional) - array default not set - * separator (optional) - ie <br> or - * output (optional) - without this one the buttons don't have names - * Author: Christopher Kvarme <christopher.kvarme@flashjab.com> - * Credits: Monte Ohrt <monte@ispi.net> - * Examples: {html_checkboxes values=$ids output=$names} - * {html_checkboxes values=$ids name='box' separator='<br>' output=$names} - * {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names} - * ------------------------------------------------------------- + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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 checkbox input types<br> + * Input:<br> + * - name (optional) - string default "checkbox" + * - values (required) - array + * - options (optional) - associative array + * - checked (optional) - array default not set + * - separator (optional) - ie <br> or + * - output (optional) - without this one the buttons don't have names + * Examples: + * <pre> + * {html_checkboxes values=$ids output=$names} + * {html_checkboxes values=$ids name='box' separator='<br>' output=$names} + * {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names} + * </pre> + * @link http://smarty.php.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} + * (Smarty online manual) + * @author Christopher Kvarme <christopher.kvarme@flashjab.com> + * @author credits to Monte Ohrt <monte@ispi.net> + * @version 1.0 + * @param array + * @param Smarty + * @return string + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_checkboxes($params, &$smarty) { Index: smarty/libs/plugins/function.html_image.php diff -u smarty/libs/plugins/function.html_image.php:1.12 smarty/libs/plugins/function.html_image.php:1.13 --- smarty/libs/plugins/function.html_image.php:1.12 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/function.html_image.php Sun Apr 20 17:11:59 2003 @@ -1,26 +1,38 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: html_image - * Version: 1.0 - * Date: Feb 24, 2003 - * Author: Monte Ohrt <monte@ispi.net> - * Credits: Duda <duda@big.hu> - wrote first image function - * in repository, helped with lots of functionality - * Purpose: format HTML tags for the image - * Input: file = file (and path) of image (required) - * border = border width (optional, default 0) - * height = image height (optional, default actual height) - * image =image width (optional, default actual width) - * basedir = base directory for absolute paths, default + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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> + * Input:<br> + * - file = file (and path) of image (required) + * - border = border width (optional, default 0) + * - height = image height (optional, default actual height) + * - image =image width (optional, default actual width) + * - basedir = base directory for absolute paths, default * is environment variable DOCUMENT_ROOT * * Examples: {image file="images/masthead.gif"} * Output: <img src="images/masthead.gif" border=0 width=400 height=23> - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image} + * (Smarty online manual) + * @author Monte Ohrt <monte@ispi.net> + * @author credits to Duda <duda@big.hu> - wrote first image function + * in repository, helped with lots of functionality + * @version 1.0 + * @param array + * @param Smarty + * @return string + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_image($params, &$smarty) { Index: smarty/libs/plugins/function.html_options.php diff -u smarty/libs/plugins/function.html_options.php:1.16 smarty/libs/plugins/function.html_options.php:1.17 --- smarty/libs/plugins/function.html_options.php:1.16 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/function.html_options.php Sun Apr 20 17:11:59 2003 @@ -1,18 +1,30 @@ <?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + /* - * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: html_options - * Input: name (optional) - string default "select" - * values (required if no options supplied) - array - * options (required if no values supplied) - associative array - * selected (optional) - string default not set - * output (required if not options supplied) - array + * Smarty {html_options} function plugin + * + * Type: function<br> + * Name: html_options<br> + * Input:<br> + * - name (optional) - string default "select" + * - values (required if no options supplied) - array + * - options (required if no values supplied) - associative array + * - selected (optional) - string default not set + * - output (required if not options supplied) - array * Purpose: Prints the list of <option> tags generated from * the passed parameters - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image} + * (Smarty online manual) + * @param array + * @param Smarty + * @return string + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_options($params, &$smarty) {
Index: smarty/libs/plugins/function.debug.php diff -u smarty/libs/plugins/function.debug.php:1.3 smarty/libs/plugins/function.debug.php:1.4 --- smarty/libs/plugins/function.debug.php:1.3 Wed Jan 8 12:34:45 2003 +++ smarty/libs/plugins/function.debug.php Sun Apr 20 17:11:59 2003 @@ -1,15 +1,25 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: debug - * Version: 1.0 - * Date: July 1, 2002 - * Author: Monte Ohrt <monte@ispi.net> + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty {debug} function plugin + * + * Type: function<br> + * Name: debug<br> + * Date: July 1, 2002<br> * Purpose: popup debug window - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.function.debug.php {debug} + * (Smarty online manual) + * @author Monte Ohrt <monte@ispi.net> + * @version 1.0 + * @param array + * @param Smarty + * @return string output from {@link Smarty::_generate_debug_output()} */ function smarty_function_debug($params, &$smarty) { Index: smarty/libs/plugins/function.eval.php diff -u smarty/libs/plugins/function.eval.php:1.5 smarty/libs/plugins/function.eval.php:1.6 --- smarty/libs/plugins/function.eval.php:1.5 Wed Jan 8 12:34:45 2003 +++ smarty/libs/plugins/function.eval.php Sun Apr 20 17:11:59 2003 @@ -1,12 +1,21 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: eval - * Purpose: evaluate a template variable as a template - * ------------------------------------------------------------- + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty {eval} function plugin + * + * Type: function<br> + * Name: eval<br> + * Purpose: evaluate a template variable as a template<br> + * @link http://smarty.php.net/manual/en/language.function.eval.php {eval} + * (Smarty online manual) + * @param array + * @param Smarty */ function smarty_function_eval($params, &$this) { Index: smarty/libs/plugins/function.fetch.php diff -u smarty/libs/plugins/function.fetch.php:1.11 smarty/libs/plugins/function.fetch.php:1.12 --- smarty/libs/plugins/function.fetch.php:1.11 Mon Feb 24 09:23:39 2003 +++ smarty/libs/plugins/function.fetch.php Sun Apr 20 17:11:59 2003 @@ -1,12 +1,23 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: fetch + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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 online manual) + * @param array + * @param Smarty + * @return string|null if the assign parameter is passed, Smarty assigns the + * result to a template variable */ function smarty_function_fetch($params, &$smarty) { Index: smarty/libs/plugins/function.html_checkboxes.php diff -u smarty/libs/plugins/function.html_checkboxes.php:1.9 smarty/libs/plugins/function.html_checkboxes.php:1.10 --- smarty/libs/plugins/function.html_checkboxes.php:1.9 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/function.html_checkboxes.php Sun Apr 20 17:11:59 2003 @@ -1,26 +1,41 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * File: function.html_checkboxes.php - * Type: function - * Name: html_checkboxes - * Version: 1.0 - * Date: 24.Feb.2003 - * Purpose: Prints out a list of checkbox input types - * Input: name (optional) - string default "checkbox" - * values (required) - array - * options (optional) - associative array - * checked (optional) - array default not set - * separator (optional) - ie <br> or - * output (optional) - without this one the buttons don't have names - * Author: Christopher Kvarme <christopher.kvarme@flashjab.com> - * Credits: Monte Ohrt <monte@ispi.net> - * Examples: {html_checkboxes values=$ids output=$names} - * {html_checkboxes values=$ids name='box' separator='<br>' output=$names} - * {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names} - * ------------------------------------------------------------- + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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 checkbox input types<br> + * Input:<br> + * - name (optional) - string default "checkbox" + * - values (required) - array + * - options (optional) - associative array + * - checked (optional) - array default not set + * - separator (optional) - ie <br> or + * - output (optional) - without this one the buttons don't have names + * Examples: + * <pre> + * {html_checkboxes values=$ids output=$names} + * {html_checkboxes values=$ids name='box' separator='<br>' output=$names} + * {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names} + * </pre> + * @link http://smarty.php.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} + * (Smarty online manual) + * @author Christopher Kvarme <christopher.kvarme@flashjab.com> + * @author credits to Monte Ohrt <monte@ispi.net> + * @version 1.0 + * @param array + * @param Smarty + * @return string + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_checkboxes($params, &$smarty) { Index: smarty/libs/plugins/function.html_image.php diff -u smarty/libs/plugins/function.html_image.php:1.12 smarty/libs/plugins/function.html_image.php:1.13 --- smarty/libs/plugins/function.html_image.php:1.12 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/function.html_image.php Sun Apr 20 17:11:59 2003 @@ -1,26 +1,38 @@ <?php - -/* +/** * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: html_image - * Version: 1.0 - * Date: Feb 24, 2003 - * Author: Monte Ohrt <monte@ispi.net> - * Credits: Duda <duda@big.hu> - wrote first image function - * in repository, helped with lots of functionality - * Purpose: format HTML tags for the image - * Input: file = file (and path) of image (required) - * border = border width (optional, default 0) - * height = image height (optional, default actual height) - * image =image width (optional, default actual width) - * basedir = base directory for absolute paths, default + * @package Smarty + * @subpackage plugins + */ + + +/** + * 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> + * Input:<br> + * - file = file (and path) of image (required) + * - border = border width (optional, default 0) + * - height = image height (optional, default actual height) + * - image =image width (optional, default actual width) + * - basedir = base directory for absolute paths, default * is environment variable DOCUMENT_ROOT * * Examples: {image file="images/masthead.gif"} * Output: <img src="images/masthead.gif" border=0 width=400 height=23> - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image} + * (Smarty online manual) + * @author Monte Ohrt <monte@ispi.net> + * @author credits to Duda <duda@big.hu> - wrote first image function + * in repository, helped with lots of functionality + * @version 1.0 + * @param array + * @param Smarty + * @return string + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_image($params, &$smarty) { Index: smarty/libs/plugins/function.html_options.php diff -u smarty/libs/plugins/function.html_options.php:1.16 smarty/libs/plugins/function.html_options.php:1.17 --- smarty/libs/plugins/function.html_options.php:1.16 Mon Apr 14 12:57:40 2003 +++ smarty/libs/plugins/function.html_options.php Sun Apr 20 17:11:59 2003 @@ -1,18 +1,30 @@ <?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + /* - * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: html_options - * Input: name (optional) - string default "select" - * values (required if no options supplied) - array - * options (required if no values supplied) - associative array - * selected (optional) - string default not set - * output (required if not options supplied) - array + * Smarty {html_options} function plugin + * + * Type: function<br> + * Name: html_options<br> + * Input:<br> + * - name (optional) - string default "select" + * - values (required if no options supplied) - array + * - options (required if no values supplied) - associative array + * - selected (optional) - string default not set + * - output (required if not options supplied) - array * Purpose: Prints the list of <option> tags generated from * the passed parameters - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image} + * (Smarty online manual) + * @param array + * @param Smarty + * @return string + * @uses smarty_function_escape_special_chars() */ function smarty_function_html_options($params, &$smarty) {