@@ -231,6 +231,10 @@ discard block |
||
231 | 231 | |
232 | 232 | //// |
233 | 233 | // prints out the actual data for the double horizontal chart |
234 | + /** |
|
235 | + * @param integer $dvalues |
|
236 | + * @param integer $dbars |
|
237 | + */ |
|
234 | 238 | function double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars) { |
235 | 239 | $double_horizontal_graph_string = ''; |
236 | 240 | for($i = 0, $n = sizeof($values); $i < $n; $i++) { |
@@ -291,6 +295,10 @@ discard block |
||
291 | 295 | |
292 | 296 | //// |
293 | 297 | // prints out the actual data for the double vertical chart |
298 | + /** |
|
299 | + * @param integer $dvalues |
|
300 | + * @param integer $dbars |
|
301 | + */ |
|
294 | 302 | function double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars) { |
295 | 303 | $double_vertical_graph_string = ' <tr>' . "\n"; |
296 | 304 | for ($i = 0, $n = sizeof($values); $i < $n; $i++) { |
@@ -88,6 +88,9 @@ discard block |
||
88 | 88 | |
89 | 89 | //// |
90 | 90 | // The HTML image wrapper function |
91 | + /** |
|
92 | + * @param string $src |
|
93 | + */ |
|
91 | 94 | function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { |
92 | 95 | $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; |
93 | 96 | |
@@ -176,6 +179,9 @@ discard block |
||
176 | 179 | |
177 | 180 | //// |
178 | 181 | // Output a form |
182 | + /** |
|
183 | + * @param string $name |
|
184 | + */ |
|
179 | 185 | function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') { |
180 | 186 | $form = '<form name="' . tep_output_string($name) . '" action="'; |
181 | 187 | if (tep_not_null($parameters)) { |
@@ -237,6 +243,9 @@ discard block |
||
237 | 243 | |
238 | 244 | //// |
239 | 245 | // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() |
246 | + /** |
|
247 | + * @param string $type |
|
248 | + */ |
|
240 | 249 | function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') { |
241 | 250 | |
242 | 251 | $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; |
@@ -267,6 +276,12 @@ discard block |
||
267 | 276 | //// |
268 | 277 | // Output a form textarea field |
269 | 278 | // The $wrap parameter is no longer used in the core xhtml template |
279 | + /** |
|
280 | + * @param string $name |
|
281 | + * @param boolean $wrap |
|
282 | + * @param integer $width |
|
283 | + * @param integer $height |
|
284 | + */ |
|
270 | 285 | function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { |
271 | 286 | |
272 | 287 | $field = '<textarea name="' . tep_output_string($name) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; |
@@ -292,6 +307,9 @@ discard block |
||
292 | 307 | |
293 | 308 | //// |
294 | 309 | // Output a form hidden field |
310 | + /** |
|
311 | + * @param string $name |
|
312 | + */ |
|
295 | 313 | function tep_draw_hidden_field($name, $value = '', $parameters = '') { |
296 | 314 | |
297 | 315 | $field = '<input type="hidden" name="' . tep_output_string($name) . '"'; |
@@ -327,6 +345,9 @@ discard block |
||
327 | 345 | |
328 | 346 | //// |
329 | 347 | // Output a form pull down menu |
348 | + /** |
|
349 | + * @param string $name |
|
350 | + */ |
|
330 | 351 | function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { |
331 | 352 | |
332 | 353 | $field = '<select name="' . tep_output_string($name) . '"'; |
@@ -360,6 +381,12 @@ discard block |
||
360 | 381 | |
361 | 382 | //// |
362 | 383 | // Output a jQuery UI Button |
384 | + /** |
|
385 | + * @param string $title |
|
386 | + * @param string $icon |
|
387 | + * @param string $link |
|
388 | + * @param string $priority |
|
389 | + */ |
|
363 | 390 | function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) { |
364 | 391 | static $button_counter = 1; |
365 | 392 |
@@ -13,6 +13,9 @@ discard block |
||
13 | 13 | //// |
14 | 14 | // This function validates a plain text password with a |
15 | 15 | // salted or phpass password |
16 | + /** |
|
17 | + * @param string $plain |
|
18 | + */ |
|
16 | 19 | function tep_validate_password($plain, $encrypted) { |
17 | 20 | if (tep_not_null($plain) && tep_not_null($encrypted)) { |
18 | 21 | if (tep_password_type($encrypted) == 'salt') { |
@@ -52,6 +55,9 @@ discard block |
||
52 | 55 | //// |
53 | 56 | // This function encrypts a phpass password from a plaintext |
54 | 57 | // password. |
58 | + /** |
|
59 | + * @param string $plain |
|
60 | + */ |
|
55 | 61 | function tep_encrypt_password($plain) { |
56 | 62 | if (!class_exists('PasswordHash')) { |
57 | 63 | include(DIR_WS_CLASSES . 'passwordhash.php'); |
@@ -91,6 +91,9 @@ discard block |
||
91 | 91 | return session_start(); |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param string $variable |
|
96 | + */ |
|
94 | 97 | function tep_session_register($variable) { |
95 | 98 | if (!isset($GLOBALS[$variable])) { |
96 | 99 | $GLOBALS[$variable] = null; |
@@ -101,10 +104,16 @@ discard block |
||
101 | 104 | return false; |
102 | 105 | } |
103 | 106 | |
107 | + /** |
|
108 | + * @param string $variable |
|
109 | + */ |
|
104 | 110 | function tep_session_is_registered($variable) { |
105 | 111 | return isset($_SESSION) && array_key_exists($variable, $_SESSION); |
106 | 112 | } |
107 | 113 | |
114 | + /** |
|
115 | + * @param string $variable |
|
116 | + */ |
|
108 | 117 | function tep_session_unregister($variable) { |
109 | 118 | unset($_SESSION[$variable]); |
110 | 119 | } |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_ADMIN_BACKUP_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param null|string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | |
37 | 40 | $server = parse_url($url); |
@@ -66,6 +66,9 @@ |
||
66 | 66 | return MODULE_SECURITY_CHECK_EXTENDED_ADMIN_BACKUP_FILE_HTTP_200; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param null|string $url |
|
71 | + */ |
|
69 | 72 | function getHttpRequest($url) { |
70 | 73 | |
71 | 74 | $server = parse_url($url); |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param null|string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | $server = parse_url($url); |
37 | 40 |
@@ -21,6 +21,9 @@ |
||
21 | 21 | $this->_trail = array(); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $title |
|
26 | + */ |
|
24 | 27 | function add($title, $link = '') { |
25 | 28 | $this->_trail[] = array('title' => $title, 'link' => $link); |
26 | 29 | } |
@@ -53,6 +53,9 @@ |
||
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param integer $parent_id |
|
58 | + */ |
|
56 | 59 | protected function _buildBranch($parent_id, $level = 0) { |
57 | 60 | $result = ((($level === 0) && ($this->parent_group_apply_to_root === true)) || ($level > 0)) ? $this->parent_group_start_string : null; |
58 | 61 |