@@ -8,9 +8,7 @@ |
||
| 8 | 8 | /** |
| 9 | 9 | * write the compiled resource |
| 10 | 10 | * |
| 11 | - * @param string $compile_path |
|
| 12 | - * @param string $compiled_content |
|
| 13 | - * @return true |
|
| 11 | + * @return boolean |
|
| 14 | 12 | */ |
| 15 | 13 | function smarty_core_write_compiled_resource($params, &$smarty) |
| 16 | 14 | { |
@@ -8,9 +8,6 @@ |
||
| 8 | 8 | /** |
| 9 | 9 | * write out a file to disk |
| 10 | 10 | * |
| 11 | - * @param string $filename |
|
| 12 | - * @param string $contents |
|
| 13 | - * @param boolean $create_dirs |
|
| 14 | 11 | * @return boolean |
| 15 | 12 | */ |
| 16 | 13 | function smarty_core_write_file($params, &$smarty) |
@@ -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 | { |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | * @author Monte Ohrt <monte at ohrt dot com> |
| 18 | 18 | * @param array |
| 19 | 19 | * @param Smarty |
| 20 | + * @param XoopsTpl $smarty |
|
| 20 | 21 | */ |
| 21 | 22 | function smarty_function_eval($params, &$smarty) |
| 22 | 23 | { |
@@ -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; |
@@ -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,10 @@ |
||
| 61 | 61 | return $source; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | +/** |
|
| 65 | + * @param string $search_str |
|
| 66 | + * @param string[] $replace |
|
| 67 | + */ |
|
| 64 | 68 | function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) { |
| 65 | 69 | $_len = strlen($search_str); |
| 66 | 70 | $_pos = 0; |