cvs: smarty / ChangeLog NEWS /libs Config_File.class.php Smarty.class.php Smarty_Compiler.class.php /libs/plugins block.strip.php
block.textformat.php function.assign.php
| From: | Greg Beaver | Date: | Sun, 20 Apr 2003 21:11:55 +0000 |
| Subject: | cvs: smarty / ChangeLog NEWS /libs Config_File.class.php Smarty.class.php Smarty_Compiler.class.php /libs/plugins block.strip.php block.textformat.php function.assign.php |
||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-544@lists.php.net to get a copy of this message | ||
cellog Sun Apr 20 17:11:55 2003 EDT
Modified files:
/smarty ChangeLog NEWS
/smarty/libs Config_File.class.php Smarty.class.php
Smarty_Compiler.class.php
/smarty/libs/plugins block.strip.php block.textformat.php
function.assign.php
Log:
updated all doc comments to phpDocumentor format
Index: smarty/ChangeLog diff -u smarty/ChangeLog:1.136 smarty/ChangeLog:1.137 --- smarty/ChangeLog:1.136 Sun Apr 6 20:30:59 2003 +++ smarty/ChangeLog Sun Apr 20 17:11:54 2003 @@ -1,3 +1,10 @@ +2003-04-20 Greg Beaver <cellog@users.sourceforge.net> + * plugins/* + Smarty.class.php + Smarty_Compiler.class.php + Config_File.class.php: + updated all doc comments to phpDocumentor format (whew!) + 2003-04-06 Messju Mohr <messju@lammfellpuschen.de> * libs/plugins/function.math.php: @@ -24,7 +31,7 @@ * libs/Smarty.class.php libs/Smarty_Compiler.class.php: - added CVS $Id: ChangeLog,v 1.136 2003/04/07 00:30:59 changelog Exp $ + added CVS $Id: ChangeLog,v 1.137 2003/04/20 21:11:54 cellog Exp $ 2003-03-31 Messju Mohr <messju@lammfellpuschen.de> Index: smarty/NEWS diff -u smarty/NEWS:1.347 smarty/NEWS:1.348 --- smarty/NEWS:1.347 Sun Apr 20 14:33:31 2003 +++ smarty/NEWS Sun Apr 20 17:11:54 2003 @@ -1,3 +1,4 @@ + - all in-code doc comments converted to phpDocumentor format (Greg) - moved strip from smarty core to plugin (Monte) - moved config_load from smarty core to plugin (Monte) - added &$repeat-paramter to block-functions (messju) Index: smarty/libs/Config_File.class.php diff -u smarty/libs/Config_File.class.php:1.45 smarty/libs/Config_File.class.php:1.46 --- smarty/libs/Config_File.class.php:1.45 Mon Apr 14 04:51:25 2003 +++ smarty/libs/Config_File.class.php Sun Apr 20 17:11:54 2003 @@ -34,10 +34,14 @@ * @copyright Copyright: 2001,2002 ispi of Lincoln, Inc. * @author Andrei Zmievski <andrei@php.net> * @access public + * @package Smarty */ -/* $Id: Config_File.class.php,v 1.45 2003/04/14 08:51:25 messju Exp $ */ - +/* $Id: Config_File.class.php,v 1.46 2003/04/20 21:11:54 cellog Exp $ */ +/** + * Config file reading class + * @package Smarty + */ class Config_File { /**#@+ * Options Index: smarty/libs/Smarty.class.php diff -u smarty/libs/Smarty.class.php:1.380 smarty/libs/Smarty.class.php:1.381 --- smarty/libs/Smarty.class.php:1.380 Sun Apr 20 14:33:31 2003 +++ smarty/libs/Smarty.class.php Sun Apr 20 17:11:54 2003 @@ -42,7 +42,7 @@ * @version 2.5.0 */ -/* $Id: Smarty.class.php,v 1.380 2003/04/20 18:33:31 mohrt Exp $ */ +/* $Id: Smarty.class.php,v 1.381 2003/04/20 21:11:54 cellog Exp $ */ /** * set SMARTY_DIR to absolute path to Smarty library files. @@ -909,6 +909,7 @@ * @param string $cache_id name of cache_id * @param string $compile_id name of compile_id * @param string $exp_time expiration time + * @return boolean */ function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null) { @@ -935,6 +936,7 @@ * clear the entire contents of cache (all templates) * * @param string $exp_time expire time + * @return boolean results of {@link _rm_auto()} */ function clear_all_cache($exp_time = null) { @@ -953,6 +955,7 @@ * @param string $tpl_file name of template file * @param string $cache_id * @param string $compile_id + * @return string|false results of {@link _read_cache_file()} */ function is_cached($tpl_file, $cache_id = null, $compile_id = null) { @@ -983,6 +986,7 @@ * @param string $tpl_file * @param string $compile_id * @param string $exp_time + * @return boolean results of {@link _rm_auto()} */ function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null) { @@ -995,6 +999,7 @@ * Checks whether requested template exists. * * @param string $tpl_file + * @return boolean */ function template_exists($tpl_file) { @@ -1006,7 +1011,7 @@ * * @param string $name * @param string $type - * @return mixed + * @return array */ function &get_template_vars($name=null) { @@ -1023,7 +1028,7 @@ * * @param string $name * @param string $type - * @return mixed + * @return array */ function &get_config_vars($name=null) { @@ -1290,6 +1295,7 @@ * return a reference to a registered object * * @param string $name + * @return object */ function &get_registered_object($name) { if (!isset($this->_reg_objects[$name])) @@ -1309,6 +1315,7 @@ * * @param string $resource_type * @param string $resource_name + * @return boolean */ function _is_trusted($resource_type, $resource_name) { @@ -1344,6 +1351,7 @@ * * @param string $resource_type * @param string $resource_name + * @return boolean */ function _is_secure($resource_type, $resource_name) { @@ -1380,6 +1388,7 @@ * @param string $resource * @param string $resource_type * @param $php_resource + * @return boolean */ function _get_php_resource($resource, &$resource_type, &$php_resource) { @@ -1442,6 +1451,7 @@ * * @param string $tpl_file * @param string $compile_path + * @return boolean */ function _process_template($tpl_file, $compile_path) { @@ -1482,6 +1492,7 @@ * Get the compile path for this template file * * @param string $tpl_file + * @return string results of {@link _get_auto_filename()} */ function _get_compile_path($tpl_file) { @@ -1512,6 +1523,7 @@ * @param string $file_path * @param string $resource_type * @param string $resource_name + * @return boolean */ function _parse_file_path($file_base_path, $file_path, &$resource_type, &$resource_name) { @@ -1566,6 +1578,7 @@ * @param integer $template_timestamp * @param boolean $get_source * @param boolean $quiet + * @return boolean */ function _fetch_template_info($tpl_path, &$template_source, &$template_timestamp, $get_source = true, $quiet = false) { @@ -1630,6 +1643,7 @@ * @param string $tpl_file * @param string $template_source * @param string $template_compiled + * @return boolean */ function _compile_template($tpl_file, $template_source, &$template_compiled) { @@ -1778,6 +1792,7 @@ * Replace cached inserts with the actual results * * @param string $results + * @return string */ function _process_cached_inserts($results) { @@ -1825,6 +1840,7 @@ * Handle insert tags * * @param array $args + * @return string */ function _run_insert_handler($args) { @@ -1878,6 +1894,9 @@ /** * Handle modifiers * + * @param string|null $modifier_name + * @param array|null $map_array + * @return string result of modifiers */ function _run_mod_handler() { @@ -1903,6 +1922,7 @@ * Remove starting and ending quotes from the string * * @param string $string + * @return string */ function _dequote($string) { @@ -1921,6 +1941,7 @@ * @param string $filename * @param integer $start * @param integer $lines + * @return string */ function _read_file($filename, $start=null, $lines=null) { @@ -1963,6 +1984,7 @@ * @param string $filename * @param string $contents * @param boolean $create_dirs + * @return boolean */ function _write_file($filename, $contents, $create_dirs = false) { @@ -1999,6 +2021,9 @@ * @param string $auto_base * @param string $auto_source * @param string $auto_id + * @return string + * @staticvar string|null + * @staticvar string|null */ function _get_auto_filename($auto_base, $auto_source = null, $auto_id = null) { @@ -2054,6 +2079,7 @@ * @param string $auto_source * @param string $auto_id * @param integer $exp_time + * @return boolean */ function _rm_auto($auto_base, $auto_source = null, $auto_id = null, $exp_time = null) { @@ -2093,6 +2119,7 @@ * @param string $dirname * @param integer $level * @param integer $exp_time + * @return boolean */ function _rmdir($dirname, $level = 1, $exp_time = null) { @@ -2192,6 +2219,7 @@ * @param string $cache_id * @param string $compile_id * @param string $results + * @return true|null */ function _write_cache_file($tpl_file, $cache_id, $compile_id, $results) { @@ -2229,6 +2257,7 @@ * @param string $cache_id * @param string $compile_id * @param string $results + * @return boolean */ function _read_cache_file($tpl_file, $cache_id, $compile_id, &$results) { @@ -2309,6 +2338,7 @@ * * @param string $cache_id * @param string $compile_id + * @return string|null */ function _get_auto_id($cache_id=null, $compile_id=null) { if (isset($cache_id)) @@ -2324,6 +2354,7 @@ * * @param string $type * @param string $name + * @return string|false */ function _get_plugin_filepath($type, $name) { @@ -2537,6 +2568,7 @@ /** * automatically load a set of filters + * @uses load_filter() */ function _autoload_filters() { @@ -2551,6 +2583,7 @@ * Quote subpattern references * * @param string $string + * @return string */ function quote_replace($string) { @@ -2601,6 +2634,8 @@ * * @param string $file_path * @param string $new_file_path + * @return boolean + * @staticvar array|null */ function _get_include_path($file_path, &$new_file_path) { Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.215 smarty/libs/Smarty_Compiler.class.php:1.216 --- smarty/libs/Smarty_Compiler.class.php:1.215 Sun Apr 20 14:33:31 2003 +++ smarty/libs/Smarty_Compiler.class.php Sun Apr 20 17:11:54 2003 @@ -39,8 +39,11 @@ * @package Smarty */ -/* $Id: Smarty_Compiler.class.php,v 1.215 2003/04/20 18:33:31 mohrt Exp $ */ - +/* $Id: Smarty_Compiler.class.php,v 1.216 2003/04/20 21:11:54 cellog Exp $ */ +/** + * Template compiling class + * @package Smarty + */ class Smarty_Compiler extends Smarty { // internal vars @@ -206,6 +209,7 @@ * @param string $tpl_file * @param string $template_source * @param string $template_compiled + * @return true */ function _compile_file($tpl_file, $template_source, &$template_compiled) { @@ -358,6 +362,7 @@ * Compile a template tag * * @param string $template_tag + * @return string */ function _compile_tag($template_tag) { @@ -490,6 +495,7 @@ * @param string $tag_command * @param string $tag_args * @param string $output + * @return boolean */ function _compile_compiler_tag($tag_command, $tag_args, &$output) { @@ -554,6 +560,7 @@ * @param string $tag_args * @param string $tag_modifier * @param string $output + * @return boolean */ function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output) { @@ -642,6 +649,7 @@ * @param string $tag_command * @param string $tag_args * @param string $tag_modifier + * @return string */ function _compile_custom_tag($tag_command, $tag_args, $tag_modifier) { @@ -673,6 +681,7 @@ * @param string $tag_command * @param array $attrs * @param string $tag_modifier + * @return string */ function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier) { @@ -728,6 +737,7 @@ * Compile {insert ...} tag * * @param string $tag_args + * @return string */ function _compile_insert_tag($tag_args) { @@ -758,7 +768,8 @@ /** * Compile {include ...} tag * - * $param string $tag_args + * @param string $tag_args + * @return string */ function _compile_include_tag($tag_args) { @@ -808,6 +819,7 @@ * Compile {include ...} tag * * @param string $tag_args + * @return string */ function _compile_include_php_tag($tag_args) { @@ -840,6 +852,7 @@ * Compile {section ...} tag * * @param string $tag_args + * @return string */ function _compile_section_start($tag_args) { @@ -944,6 +957,7 @@ * Compile {foreach ...} tag. * * @param string $tag_args + * @return string */ function _compile_foreach_start($tag_args) { @@ -1008,6 +1022,7 @@ * * @param boolean $start true if this is the {capture} tag * @param string $tag_args + * @return string */ function _compile_capture_tag($start, $tag_args = '') { @@ -1034,6 +1049,7 @@ * * @param string $tag_args * @param boolean $elseif if true, uses elseif instead of if + * @return string */ function _compile_if_tag($tag_args, $elseif = false) { @@ -1195,6 +1211,7 @@ * * @param string $is_arg * @param array $tokens + * @return array */ function _parse_is_expr($is_arg, $tokens) { @@ -1256,6 +1273,7 @@ * * @param string $tag_args * @param true $quote unused? + * @return array */ function _parse_attrs($tag_args, $quote = true) { @@ -1354,6 +1372,7 @@ * * @param string $val * @param string $tag_attrs + * @return string */ function _parse_var_props($val, $tag_attrs = null) { @@ -1400,6 +1419,7 @@ * expand quoted text with embedded variables * * @param string $var_expr + * @return string */ function _expand_quoted_text($var_expr) { @@ -1424,6 +1444,7 @@ * parse variable expression into PHP code * * @param string $var_expr + * @return string */ function _parse_var($var_expr) { @@ -1502,6 +1523,7 @@ * parse arguments in function call parenthesis * * @param string $parenth_args + * @return string */ function _parse_parenth_args($parenth_args) { @@ -1518,6 +1540,7 @@ * parse configuration variable expression into PHP code * * @param string $conf_var_expr + * @return string */ function _parse_conf_var($conf_var_expr) { @@ -1539,6 +1562,7 @@ * parse section property expression into PHP code * * @param string $section_prop_expr + * @return string */ function _parse_section_prop($section_prop_expr) { @@ -1634,6 +1658,7 @@ * Compiles references of type $smarty.foo * * @param string $indexes + * @return string */ function _compile_smarty_ref(&$indexes) { @@ -1740,6 +1765,7 @@ * * @param string $type * @param string $name + * @return string */ function _compile_plugin_call($type, $name) { if (isset($this->_plugins[$type][$name])) { @@ -1810,6 +1836,7 @@ * @access private * @param string $a * @param string $b + * @return 0|-1|1 */ function _smarty_sort_length($a, $b) { Index: smarty/libs/plugins/block.strip.php diff -u smarty/libs/plugins/block.strip.php:1.1 smarty/libs/plugins/block.strip.php:1.2 --- smarty/libs/plugins/block.strip.php:1.1 Sun Apr 20 14:41:44 2003 +++ smarty/libs/plugins/block.strip.php Sun Apr 20 17:11:55 2003 @@ -6,12 +6,17 @@ */ /** - * Smarty textformat plugin + * Smarty {strip}{/strip} block plugin * * Type: block function<br> * Name: strip<br> * Purpose: strip unwanted white space from text<br> - * + * @link http://smarty.php.net/manual/en/language.function.strip.php {strip} + * (Smarty online manual) + * @param array unused, no parameters for this block + * @param string content of {strip}{/strip} tags + * @param Smarty clever method emulation + * @return string $content stripped of whitespace */ function smarty_block_strip($params, $content, &$this) { Index: smarty/libs/plugins/block.textformat.php diff -u smarty/libs/plugins/block.textformat.php:1.3 smarty/libs/plugins/block.textformat.php:1.4 --- smarty/libs/plugins/block.textformat.php:1.3 Sun Apr 20 14:33:31 2003 +++ smarty/libs/plugins/block.textformat.php Sun Apr 20 17:11:55 2003 @@ -6,12 +6,14 @@ */ /** - * Smarty textformat plugin + * Smarty {textformat}{/textformat} block plugin * * Type: block function<br> * Name: textformat<br> * Purpose: format text a certain way with preset styles * or custom wrap/indent settings<br> + * @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat} + * (Smarty online manual) * @param array * <pre> * Params: style: string (email) @@ -23,6 +25,7 @@ * </pre> * @param string contents of the block * @param Smarty clever simulation of a method + * @return string string $content re-formatted */ function smarty_block_textformat($params, $content, &$this) { Index: smarty/libs/plugins/function.assign.php diff -u smarty/libs/plugins/function.assign.php:1.2 smarty/libs/plugins/function.assign.php:1.3 --- smarty/libs/plugins/function.assign.php:1.2 Wed Feb 20 17:24:32 2002 +++ smarty/libs/plugins/function.assign.php Sun Apr 20 17:11:55 2003 @@ -1,12 +1,20 @@ <?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ /* - * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: assign + * Smarty {assign} function plugin + * + * Type: function<br> + * Name: assign<br> * Purpose: assign a value to a template variable - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCTION.ASSIGN {assign} + * (Smarty online manual) + * @param array Format: array('var' => variable name, 'value' => value to assign) + * @param Smarty */ function smarty_function_assign($params, &$smarty) {
Index: smarty/ChangeLog diff -u smarty/ChangeLog:1.136 smarty/ChangeLog:1.137 --- smarty/ChangeLog:1.136 Sun Apr 6 20:30:59 2003 +++ smarty/ChangeLog Sun Apr 20 17:11:54 2003 @@ -1,3 +1,10 @@ +2003-04-20 Greg Beaver <cellog@users.sourceforge.net> + * plugins/* + Smarty.class.php + Smarty_Compiler.class.php + Config_File.class.php: + updated all doc comments to phpDocumentor format (whew!) + 2003-04-06 Messju Mohr <messju@lammfellpuschen.de> * libs/plugins/function.math.php: @@ -24,7 +31,7 @@ * libs/Smarty.class.php libs/Smarty_Compiler.class.php: - added CVS $Id: ChangeLog,v 1.136 2003/04/07 00:30:59 changelog Exp $ + added CVS $Id: ChangeLog,v 1.137 2003/04/20 21:11:54 cellog Exp $ 2003-03-31 Messju Mohr <messju@lammfellpuschen.de> Index: smarty/NEWS diff -u smarty/NEWS:1.347 smarty/NEWS:1.348 --- smarty/NEWS:1.347 Sun Apr 20 14:33:31 2003 +++ smarty/NEWS Sun Apr 20 17:11:54 2003 @@ -1,3 +1,4 @@ + - all in-code doc comments converted to phpDocumentor format (Greg) - moved strip from smarty core to plugin (Monte) - moved config_load from smarty core to plugin (Monte) - added &$repeat-paramter to block-functions (messju) Index: smarty/libs/Config_File.class.php diff -u smarty/libs/Config_File.class.php:1.45 smarty/libs/Config_File.class.php:1.46 --- smarty/libs/Config_File.class.php:1.45 Mon Apr 14 04:51:25 2003 +++ smarty/libs/Config_File.class.php Sun Apr 20 17:11:54 2003 @@ -34,10 +34,14 @@ * @copyright Copyright: 2001,2002 ispi of Lincoln, Inc. * @author Andrei Zmievski <andrei@php.net> * @access public + * @package Smarty */ -/* $Id: Config_File.class.php,v 1.45 2003/04/14 08:51:25 messju Exp $ */ - +/* $Id: Config_File.class.php,v 1.46 2003/04/20 21:11:54 cellog Exp $ */ +/** + * Config file reading class + * @package Smarty + */ class Config_File { /**#@+ * Options Index: smarty/libs/Smarty.class.php diff -u smarty/libs/Smarty.class.php:1.380 smarty/libs/Smarty.class.php:1.381 --- smarty/libs/Smarty.class.php:1.380 Sun Apr 20 14:33:31 2003 +++ smarty/libs/Smarty.class.php Sun Apr 20 17:11:54 2003 @@ -42,7 +42,7 @@ * @version 2.5.0 */ -/* $Id: Smarty.class.php,v 1.380 2003/04/20 18:33:31 mohrt Exp $ */ +/* $Id: Smarty.class.php,v 1.381 2003/04/20 21:11:54 cellog Exp $ */ /** * set SMARTY_DIR to absolute path to Smarty library files. @@ -909,6 +909,7 @@ * @param string $cache_id name of cache_id * @param string $compile_id name of compile_id * @param string $exp_time expiration time + * @return boolean */ function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null) { @@ -935,6 +936,7 @@ * clear the entire contents of cache (all templates) * * @param string $exp_time expire time + * @return boolean results of {@link _rm_auto()} */ function clear_all_cache($exp_time = null) { @@ -953,6 +955,7 @@ * @param string $tpl_file name of template file * @param string $cache_id * @param string $compile_id + * @return string|false results of {@link _read_cache_file()} */ function is_cached($tpl_file, $cache_id = null, $compile_id = null) { @@ -983,6 +986,7 @@ * @param string $tpl_file * @param string $compile_id * @param string $exp_time + * @return boolean results of {@link _rm_auto()} */ function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null) { @@ -995,6 +999,7 @@ * Checks whether requested template exists. * * @param string $tpl_file + * @return boolean */ function template_exists($tpl_file) { @@ -1006,7 +1011,7 @@ * * @param string $name * @param string $type - * @return mixed + * @return array */ function &get_template_vars($name=null) { @@ -1023,7 +1028,7 @@ * * @param string $name * @param string $type - * @return mixed + * @return array */ function &get_config_vars($name=null) { @@ -1290,6 +1295,7 @@ * return a reference to a registered object * * @param string $name + * @return object */ function &get_registered_object($name) { if (!isset($this->_reg_objects[$name])) @@ -1309,6 +1315,7 @@ * * @param string $resource_type * @param string $resource_name + * @return boolean */ function _is_trusted($resource_type, $resource_name) { @@ -1344,6 +1351,7 @@ * * @param string $resource_type * @param string $resource_name + * @return boolean */ function _is_secure($resource_type, $resource_name) { @@ -1380,6 +1388,7 @@ * @param string $resource * @param string $resource_type * @param $php_resource + * @return boolean */ function _get_php_resource($resource, &$resource_type, &$php_resource) { @@ -1442,6 +1451,7 @@ * * @param string $tpl_file * @param string $compile_path + * @return boolean */ function _process_template($tpl_file, $compile_path) { @@ -1482,6 +1492,7 @@ * Get the compile path for this template file * * @param string $tpl_file + * @return string results of {@link _get_auto_filename()} */ function _get_compile_path($tpl_file) { @@ -1512,6 +1523,7 @@ * @param string $file_path * @param string $resource_type * @param string $resource_name + * @return boolean */ function _parse_file_path($file_base_path, $file_path, &$resource_type, &$resource_name) { @@ -1566,6 +1578,7 @@ * @param integer $template_timestamp * @param boolean $get_source * @param boolean $quiet + * @return boolean */ function _fetch_template_info($tpl_path, &$template_source, &$template_timestamp, $get_source = true, $quiet = false) { @@ -1630,6 +1643,7 @@ * @param string $tpl_file * @param string $template_source * @param string $template_compiled + * @return boolean */ function _compile_template($tpl_file, $template_source, &$template_compiled) { @@ -1778,6 +1792,7 @@ * Replace cached inserts with the actual results * * @param string $results + * @return string */ function _process_cached_inserts($results) { @@ -1825,6 +1840,7 @@ * Handle insert tags * * @param array $args + * @return string */ function _run_insert_handler($args) { @@ -1878,6 +1894,9 @@ /** * Handle modifiers * + * @param string|null $modifier_name + * @param array|null $map_array + * @return string result of modifiers */ function _run_mod_handler() { @@ -1903,6 +1922,7 @@ * Remove starting and ending quotes from the string * * @param string $string + * @return string */ function _dequote($string) { @@ -1921,6 +1941,7 @@ * @param string $filename * @param integer $start * @param integer $lines + * @return string */ function _read_file($filename, $start=null, $lines=null) { @@ -1963,6 +1984,7 @@ * @param string $filename * @param string $contents * @param boolean $create_dirs + * @return boolean */ function _write_file($filename, $contents, $create_dirs = false) { @@ -1999,6 +2021,9 @@ * @param string $auto_base * @param string $auto_source * @param string $auto_id + * @return string + * @staticvar string|null + * @staticvar string|null */ function _get_auto_filename($auto_base, $auto_source = null, $auto_id = null) { @@ -2054,6 +2079,7 @@ * @param string $auto_source * @param string $auto_id * @param integer $exp_time + * @return boolean */ function _rm_auto($auto_base, $auto_source = null, $auto_id = null, $exp_time = null) { @@ -2093,6 +2119,7 @@ * @param string $dirname * @param integer $level * @param integer $exp_time + * @return boolean */ function _rmdir($dirname, $level = 1, $exp_time = null) { @@ -2192,6 +2219,7 @@ * @param string $cache_id * @param string $compile_id * @param string $results + * @return true|null */ function _write_cache_file($tpl_file, $cache_id, $compile_id, $results) { @@ -2229,6 +2257,7 @@ * @param string $cache_id * @param string $compile_id * @param string $results + * @return boolean */ function _read_cache_file($tpl_file, $cache_id, $compile_id, &$results) { @@ -2309,6 +2338,7 @@ * * @param string $cache_id * @param string $compile_id + * @return string|null */ function _get_auto_id($cache_id=null, $compile_id=null) { if (isset($cache_id)) @@ -2324,6 +2354,7 @@ * * @param string $type * @param string $name + * @return string|false */ function _get_plugin_filepath($type, $name) { @@ -2537,6 +2568,7 @@ /** * automatically load a set of filters + * @uses load_filter() */ function _autoload_filters() { @@ -2551,6 +2583,7 @@ * Quote subpattern references * * @param string $string + * @return string */ function quote_replace($string) { @@ -2601,6 +2634,8 @@ * * @param string $file_path * @param string $new_file_path + * @return boolean + * @staticvar array|null */ function _get_include_path($file_path, &$new_file_path) { Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.215 smarty/libs/Smarty_Compiler.class.php:1.216 --- smarty/libs/Smarty_Compiler.class.php:1.215 Sun Apr 20 14:33:31 2003 +++ smarty/libs/Smarty_Compiler.class.php Sun Apr 20 17:11:54 2003 @@ -39,8 +39,11 @@ * @package Smarty */ -/* $Id: Smarty_Compiler.class.php,v 1.215 2003/04/20 18:33:31 mohrt Exp $ */ - +/* $Id: Smarty_Compiler.class.php,v 1.216 2003/04/20 21:11:54 cellog Exp $ */ +/** + * Template compiling class + * @package Smarty + */ class Smarty_Compiler extends Smarty { // internal vars @@ -206,6 +209,7 @@ * @param string $tpl_file * @param string $template_source * @param string $template_compiled + * @return true */ function _compile_file($tpl_file, $template_source, &$template_compiled) { @@ -358,6 +362,7 @@ * Compile a template tag * * @param string $template_tag + * @return string */ function _compile_tag($template_tag) { @@ -490,6 +495,7 @@ * @param string $tag_command * @param string $tag_args * @param string $output + * @return boolean */ function _compile_compiler_tag($tag_command, $tag_args, &$output) { @@ -554,6 +560,7 @@ * @param string $tag_args * @param string $tag_modifier * @param string $output + * @return boolean */ function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output) { @@ -642,6 +649,7 @@ * @param string $tag_command * @param string $tag_args * @param string $tag_modifier + * @return string */ function _compile_custom_tag($tag_command, $tag_args, $tag_modifier) { @@ -673,6 +681,7 @@ * @param string $tag_command * @param array $attrs * @param string $tag_modifier + * @return string */ function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier) { @@ -728,6 +737,7 @@ * Compile {insert ...} tag * * @param string $tag_args + * @return string */ function _compile_insert_tag($tag_args) { @@ -758,7 +768,8 @@ /** * Compile {include ...} tag * - * $param string $tag_args + * @param string $tag_args + * @return string */ function _compile_include_tag($tag_args) { @@ -808,6 +819,7 @@ * Compile {include ...} tag * * @param string $tag_args + * @return string */ function _compile_include_php_tag($tag_args) { @@ -840,6 +852,7 @@ * Compile {section ...} tag * * @param string $tag_args + * @return string */ function _compile_section_start($tag_args) { @@ -944,6 +957,7 @@ * Compile {foreach ...} tag. * * @param string $tag_args + * @return string */ function _compile_foreach_start($tag_args) { @@ -1008,6 +1022,7 @@ * * @param boolean $start true if this is the {capture} tag * @param string $tag_args + * @return string */ function _compile_capture_tag($start, $tag_args = '') { @@ -1034,6 +1049,7 @@ * * @param string $tag_args * @param boolean $elseif if true, uses elseif instead of if + * @return string */ function _compile_if_tag($tag_args, $elseif = false) { @@ -1195,6 +1211,7 @@ * * @param string $is_arg * @param array $tokens + * @return array */ function _parse_is_expr($is_arg, $tokens) { @@ -1256,6 +1273,7 @@ * * @param string $tag_args * @param true $quote unused? + * @return array */ function _parse_attrs($tag_args, $quote = true) { @@ -1354,6 +1372,7 @@ * * @param string $val * @param string $tag_attrs + * @return string */ function _parse_var_props($val, $tag_attrs = null) { @@ -1400,6 +1419,7 @@ * expand quoted text with embedded variables * * @param string $var_expr + * @return string */ function _expand_quoted_text($var_expr) { @@ -1424,6 +1444,7 @@ * parse variable expression into PHP code * * @param string $var_expr + * @return string */ function _parse_var($var_expr) { @@ -1502,6 +1523,7 @@ * parse arguments in function call parenthesis * * @param string $parenth_args + * @return string */ function _parse_parenth_args($parenth_args) { @@ -1518,6 +1540,7 @@ * parse configuration variable expression into PHP code * * @param string $conf_var_expr + * @return string */ function _parse_conf_var($conf_var_expr) { @@ -1539,6 +1562,7 @@ * parse section property expression into PHP code * * @param string $section_prop_expr + * @return string */ function _parse_section_prop($section_prop_expr) { @@ -1634,6 +1658,7 @@ * Compiles references of type $smarty.foo * * @param string $indexes + * @return string */ function _compile_smarty_ref(&$indexes) { @@ -1740,6 +1765,7 @@ * * @param string $type * @param string $name + * @return string */ function _compile_plugin_call($type, $name) { if (isset($this->_plugins[$type][$name])) { @@ -1810,6 +1836,7 @@ * @access private * @param string $a * @param string $b + * @return 0|-1|1 */ function _smarty_sort_length($a, $b) { Index: smarty/libs/plugins/block.strip.php diff -u smarty/libs/plugins/block.strip.php:1.1 smarty/libs/plugins/block.strip.php:1.2 --- smarty/libs/plugins/block.strip.php:1.1 Sun Apr 20 14:41:44 2003 +++ smarty/libs/plugins/block.strip.php Sun Apr 20 17:11:55 2003 @@ -6,12 +6,17 @@ */ /** - * Smarty textformat plugin + * Smarty {strip}{/strip} block plugin * * Type: block function<br> * Name: strip<br> * Purpose: strip unwanted white space from text<br> - * + * @link http://smarty.php.net/manual/en/language.function.strip.php {strip} + * (Smarty online manual) + * @param array unused, no parameters for this block + * @param string content of {strip}{/strip} tags + * @param Smarty clever method emulation + * @return string $content stripped of whitespace */ function smarty_block_strip($params, $content, &$this) { Index: smarty/libs/plugins/block.textformat.php diff -u smarty/libs/plugins/block.textformat.php:1.3 smarty/libs/plugins/block.textformat.php:1.4 --- smarty/libs/plugins/block.textformat.php:1.3 Sun Apr 20 14:33:31 2003 +++ smarty/libs/plugins/block.textformat.php Sun Apr 20 17:11:55 2003 @@ -6,12 +6,14 @@ */ /** - * Smarty textformat plugin + * Smarty {textformat}{/textformat} block plugin * * Type: block function<br> * Name: textformat<br> * Purpose: format text a certain way with preset styles * or custom wrap/indent settings<br> + * @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat} + * (Smarty online manual) * @param array * <pre> * Params: style: string (email) @@ -23,6 +25,7 @@ * </pre> * @param string contents of the block * @param Smarty clever simulation of a method + * @return string string $content re-formatted */ function smarty_block_textformat($params, $content, &$this) { Index: smarty/libs/plugins/function.assign.php diff -u smarty/libs/plugins/function.assign.php:1.2 smarty/libs/plugins/function.assign.php:1.3 --- smarty/libs/plugins/function.assign.php:1.2 Wed Feb 20 17:24:32 2002 +++ smarty/libs/plugins/function.assign.php Sun Apr 20 17:11:55 2003 @@ -1,12 +1,20 @@ <?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ /* - * Smarty plugin - * ------------------------------------------------------------- - * Type: function - * Name: assign + * Smarty {assign} function plugin + * + * Type: function<br> + * Name: assign<br> * Purpose: assign a value to a template variable - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCTION.ASSIGN {assign} + * (Smarty online manual) + * @param array Format: array('var' => variable name, 'value' => value to assign) + * @param Smarty */ function smarty_function_assign($params, &$smarty) {