@@ -23,6 +23,7 @@ |
||
23 | 23 | * 'global' => overrides scope, setting to parent if true) |
24 | 24 | * </pre> |
25 | 25 | * @param Smarty |
26 | + * @param Smarty $smarty |
|
26 | 27 | */ |
27 | 28 | function smarty_function_config_load($params, &$smarty) |
28 | 29 | { |
@@ -123,6 +123,12 @@ |
||
123 | 123 | |
124 | 124 | } |
125 | 125 | |
126 | +/** |
|
127 | + * @param string $name |
|
128 | + * @param string $extra |
|
129 | + * @param string $separator |
|
130 | + * @param boolean $labels |
|
131 | + */ |
|
126 | 132 | function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels) { |
127 | 133 | $_output = ''; |
128 | 134 | if ($labels) $_output .= '<label>'; |
@@ -127,6 +127,14 @@ |
||
127 | 127 | |
128 | 128 | } |
129 | 129 | |
130 | +/** |
|
131 | + * @param string $name |
|
132 | + * @param null|string $selected |
|
133 | + * @param string $extra |
|
134 | + * @param string $separator |
|
135 | + * @param boolean $labels |
|
136 | + * @param boolean $label_ids |
|
137 | + */ |
|
130 | 138 | function smarty_function_html_radios_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids) { |
131 | 139 | $_output = ''; |
132 | 140 | if ($labels) { |
@@ -161,6 +161,10 @@ |
||
161 | 161 | return $output; |
162 | 162 | } |
163 | 163 | |
164 | +/** |
|
165 | + * @param string $name |
|
166 | + * @param string $var |
|
167 | + */ |
|
164 | 168 | function smarty_function_html_table_cycle($name, $var, $no) { |
165 | 169 | if(!is_array($var)) { |
166 | 170 | $ret = $var; |
@@ -195,6 +195,9 @@ |
||
195 | 195 | return $params['buttons']; |
196 | 196 | } |
197 | 197 | |
198 | +/** |
|
199 | + * @param string $glue |
|
200 | + */ |
|
198 | 201 | function implode_r($glue, $pieces, $extract_first_item = false) { |
199 | 202 | $result = array_shift($pieces); |
200 | 203 | if(is_array($result)) { |
@@ -24,6 +24,9 @@ |
||
24 | 24 | return preg_replace_callback('!\'?\b\w(\w|\')*\b!', 'smarty_modifier_capitalize_ucfirst', $string); |
25 | 25 | } |
26 | 26 | |
27 | +/** |
|
28 | + * @param boolean $uc_digits |
|
29 | + */ |
|
27 | 30 | function smarty_modifier_capitalize_ucfirst($string, $uc_digits = null) |
28 | 31 | { |
29 | 32 | static $_uc_digits = false; |
@@ -61,6 +61,9 @@ |
||
61 | 61 | return $source; |
62 | 62 | } |
63 | 63 | |
64 | +/** |
|
65 | + * @param string $search_str |
|
66 | + */ |
|
64 | 67 | function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) { |
65 | 68 | $_len = strlen($search_str); |
66 | 69 | $_pos = 0; |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * from a string. |
13 | 13 | * @author Monte Ohrt <monte at ohrt dot com> |
14 | 14 | * @param string |
15 | - * @return string |
|
15 | + * @return integer |
|
16 | 16 | */ |
17 | 17 | function smarty_make_timestamp($string) |
18 | 18 | { |
@@ -712,7 +712,6 @@ discard block |
||
712 | 712 | * @param object &$object_impl the referenced PHP object to register |
713 | 713 | * @param null|array $allowed list of allowed methods (empty = all) |
714 | 714 | * @param boolean $smarty_args smarty argument format, else traditional |
715 | - * @param null|array $block_functs list of methods that are block format |
|
716 | 715 | */ |
717 | 716 | function register_object($object, &$object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) |
718 | 717 | { |
@@ -977,7 +976,7 @@ discard block |
||
977 | 976 | * @param string $tpl_file name of template file |
978 | 977 | * @param string $cache_id |
979 | 978 | * @param string $compile_id |
980 | - * @return string|false results of {@link _read_cache_file()} |
|
979 | + * @return boolean results of {@link _read_cache_file()} |
|
981 | 980 | */ |
982 | 981 | function is_cached($tpl_file, $cache_id = null, $compile_id = null) |
983 | 982 | { |
@@ -1046,7 +1045,6 @@ discard block |
||
1046 | 1045 | * Returns an array containing template variables |
1047 | 1046 | * |
1048 | 1047 | * @param string $name |
1049 | - * @param string $type |
|
1050 | 1048 | * @return array |
1051 | 1049 | */ |
1052 | 1050 | function &get_template_vars($name=null) |
@@ -1066,7 +1064,6 @@ discard block |
||
1066 | 1064 | * Returns an array containing config variables |
1067 | 1065 | * |
1068 | 1066 | * @param string $name |
1069 | - * @param string $type |
|
1070 | 1067 | * @return array |
1071 | 1068 | */ |
1072 | 1069 | function &get_config_vars($name=null) |
@@ -1444,6 +1441,7 @@ discard block |
||
1444 | 1441 | * @param string $resource_name |
1445 | 1442 | * @param string $source_content |
1446 | 1443 | * @param string $compiled_content |
1444 | + * @param string $cache_include_path |
|
1447 | 1445 | * @return boolean |
1448 | 1446 | */ |
1449 | 1447 | function _compile_source($resource_name, &$source_content, &$compiled_content, $cache_include_path=null) |
@@ -1521,11 +1519,6 @@ discard block |
||
1521 | 1519 | * |
1522 | 1520 | * sets $source_content to the source of the template, and |
1523 | 1521 | * $resource_timestamp to its time stamp |
1524 | - * @param string $resource_name |
|
1525 | - * @param string $source_content |
|
1526 | - * @param integer $resource_timestamp |
|
1527 | - * @param boolean $get_source |
|
1528 | - * @param boolean $quiet |
|
1529 | 1522 | * @return boolean |
1530 | 1523 | */ |
1531 | 1524 | |
@@ -1606,10 +1599,6 @@ discard block |
||
1606 | 1599 | /** |
1607 | 1600 | * parse out the type and name from the resource |
1608 | 1601 | * |
1609 | - * @param string $resource_base_path |
|
1610 | - * @param string $resource_name |
|
1611 | - * @param string $resource_type |
|
1612 | - * @param string $resource_name |
|
1613 | 1602 | * @return boolean |
1614 | 1603 | */ |
1615 | 1604 | |
@@ -1670,8 +1659,6 @@ discard block |
||
1670 | 1659 | /** |
1671 | 1660 | * Handle modifiers |
1672 | 1661 | * |
1673 | - * @param string|null $modifier_name |
|
1674 | - * @param array|null $map_array |
|
1675 | 1662 | * @return string result of modifiers |
1676 | 1663 | */ |
1677 | 1664 | function _run_mod_handler() |