@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * removes the header from a classname |
103 | 103 | * |
104 | 104 | * @param string $name ClassName |
105 | - * @return camelCased classname minus header |
|
105 | + * @return string classname minus header |
|
106 | 106 | */ |
107 | 107 | public static function cleanClassName($name) |
108 | 108 | { |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | * @param array $array associative array to implode |
292 | 292 | * @param string $separator (optional, defaults to =) |
293 | 293 | * @param string $glue (optional, defaults to ', ') |
294 | - * @return bool |
|
294 | + * @return string|false |
|
295 | 295 | */ |
296 | 296 | public static function implodeAssociativeArray($array, $separator = '=', $glue = ', ') |
297 | 297 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @access protected |
60 | 60 | * @static |
61 | - * @param object $writer XMLWriter object |
|
61 | + * @param XMLWriter $writer XMLWriter object |
|
62 | 62 | * @param array $aData contains attributes and values |
63 | 63 | * @return void |
64 | 64 | */ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * converts datetime back to xml schema format |
127 | 127 | * @access protected |
128 | - * @param object $dateTime |
|
128 | + * @param DateTime $dateTime |
|
129 | 129 | * @return string XML schema formatted timestamp |
130 | 130 | */ |
131 | 131 | private static function _dateTimeToXmlTimestamp($dateTime) |
@@ -182,6 +182,9 @@ discard block |
||
182 | 182 | return false; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $info |
|
187 | + */ |
|
185 | 188 | function getModuleInfo($module, $info) { |
186 | 189 | $class = 'OSCOM_Braintree_' . $module; |
187 | 190 | |
@@ -368,6 +371,10 @@ discard block |
||
368 | 371 | return $result; |
369 | 372 | } |
370 | 373 | |
374 | + /** |
|
375 | + * @param string $link |
|
376 | + * @param string $type |
|
377 | + */ |
|
371 | 378 | function drawButton($title = null, $link = null, $type = null, $params = null, $force_css = false) { |
372 | 379 | $colours = array('success' => '#1cb841', |
373 | 380 | 'error' => '#ca3c3c', |
@@ -424,6 +431,9 @@ discard block |
||
424 | 431 | return $button; |
425 | 432 | } |
426 | 433 | |
434 | + /** |
|
435 | + * @param integer $length |
|
436 | + */ |
|
427 | 437 | function createRandomValue($length, $type = 'mixed') { |
428 | 438 | if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) $type = 'mixed'; |
429 | 439 | |
@@ -508,6 +518,9 @@ discard block |
||
508 | 518 | } |
509 | 519 | } |
510 | 520 | |
521 | + /** |
|
522 | + * @param string $key |
|
523 | + */ |
|
511 | 524 | function deleteParameter($key) { |
512 | 525 | tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = '" . tep_db_input($key) . "'"); |
513 | 526 | } |
@@ -672,6 +685,9 @@ discard block |
||
672 | 685 | } |
673 | 686 | } |
674 | 687 | |
688 | + /** |
|
689 | + * @param string $filename |
|
690 | + */ |
|
675 | 691 | public function loadLanguageFile($filename, $lang = null) { |
676 | 692 | global $language; |
677 | 693 | |
@@ -713,6 +729,9 @@ discard block |
||
713 | 729 | } |
714 | 730 | } |
715 | 731 | |
732 | + /** |
|
733 | + * @param string $key |
|
734 | + */ |
|
716 | 735 | function getDef($key, $values = null) { |
717 | 736 | $def = isset($this->_definitions[$key]) ? $this->_definitions[$key] : $key; |
718 | 737 |
@@ -103,6 +103,9 @@ discard block |
||
103 | 103 | return session_start(); |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $variable |
|
108 | + */ |
|
106 | 109 | function tep_session_register($variable) { |
107 | 110 | if (PHP_VERSION < 4.3) { |
108 | 111 | return session_register($variable); |
@@ -117,6 +120,9 @@ discard block |
||
117 | 120 | return false; |
118 | 121 | } |
119 | 122 | |
123 | + /** |
|
124 | + * @param string $variable |
|
125 | + */ |
|
120 | 126 | function tep_session_is_registered($variable) { |
121 | 127 | if (PHP_VERSION < 4.3) { |
122 | 128 | return session_is_registered($variable); |
@@ -125,6 +131,9 @@ discard block |
||
125 | 131 | } |
126 | 132 | } |
127 | 133 | |
134 | + /** |
|
135 | + * @param string $variable |
|
136 | + */ |
|
128 | 137 | function tep_session_unregister($variable) { |
129 | 138 | if (PHP_VERSION < 4.3) { |
130 | 139 | return session_unregister($variable); |
@@ -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 | global $HTTP_SERVER_VARS; |
37 | 40 |
@@ -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 | global $HTTP_SERVER_VARS; |
71 | 74 |
@@ -82,6 +82,7 @@ discard block |
||
82 | 82 | * it. This can then be given as the first |
83 | 83 | * argument of the the functions |
84 | 84 | * add_html_image() or add_attachment(). |
85 | + * @param string $filename |
|
85 | 86 | */ |
86 | 87 | |
87 | 88 | function get_file($filename) { |
@@ -153,6 +154,7 @@ discard block |
||
153 | 154 | * Adds a html part to the mail. |
154 | 155 | * Also replaces image names with |
155 | 156 | * content-id's. |
157 | + * @param string $text |
|
156 | 158 | */ |
157 | 159 | |
158 | 160 | function add_html($html, $text = NULL, $images_dir = NULL) { |
@@ -165,6 +167,7 @@ discard block |
||
165 | 167 | /** |
166 | 168 | * Adds an image to the list of embedded |
167 | 169 | * images. |
170 | + * @param string $file |
|
168 | 171 | */ |
169 | 172 | |
170 | 173 | function add_html_image($file, $name = '', $c_type='application/octet-stream') { |
@@ -239,6 +242,9 @@ discard block |
||
239 | 242 | |
240 | 243 | /* HPDL PHP3 */ |
241 | 244 | // function &add_alternative_part(&$obj) { |
245 | + /** |
|
246 | + * @param null|mime $obj |
|
247 | + */ |
|
242 | 248 | function add_alternative_part(&$obj) { |
243 | 249 | $params['content_type'] = 'multipart/alternative'; |
244 | 250 |
@@ -70,6 +70,9 @@ |
||
70 | 70 | $this->set_language($lng); |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $language |
|
75 | + */ |
|
73 | 76 | function set_language($language) { |
74 | 77 | if ( (tep_not_null($language)) && (isset($this->catalog_languages[$language])) ) { |
75 | 78 | $this->language = $this->catalog_languages[$language]; |
@@ -35,6 +35,10 @@ discard block |
||
35 | 35 | var $portable_hashes; |
36 | 36 | var $random_state; |
37 | 37 | |
38 | + /** |
|
39 | + * @param integer $iteration_count_log2 |
|
40 | + * @param boolean $portable_hashes |
|
41 | + */ |
|
38 | 42 | function PasswordHash($iteration_count_log2, $portable_hashes) |
39 | 43 | { |
40 | 44 | $this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; |
@@ -84,6 +88,9 @@ discard block |
||
84 | 88 | return $output; |
85 | 89 | } |
86 | 90 | |
91 | + /** |
|
92 | + * @param integer $count |
|
93 | + */ |
|
87 | 94 | function encode64($input, $count) |
88 | 95 | { |
89 | 96 | $output = ''; |
@@ -107,6 +114,9 @@ discard block |
||
107 | 114 | return $output; |
108 | 115 | } |
109 | 116 | |
117 | + /** |
|
118 | + * @param string $input |
|
119 | + */ |
|
110 | 120 | function gensalt_private($input) |
111 | 121 | { |
112 | 122 | $output = '$P$'; |
@@ -155,6 +165,9 @@ discard block |
||
155 | 165 | return $output; |
156 | 166 | } |
157 | 167 | |
168 | + /** |
|
169 | + * @param string $input |
|
170 | + */ |
|
158 | 171 | function gensalt_extended($input) |
159 | 172 | { |
160 | 173 | $count_log2 = min($this->iteration_count_log2 + 8, 24); |
@@ -173,6 +186,9 @@ discard block |
||
173 | 186 | return $output; |
174 | 187 | } |
175 | 188 | |
189 | + /** |
|
190 | + * @param string $input |
|
191 | + */ |
|
176 | 192 | function gensalt_blowfish($input) |
177 | 193 | { |
178 | 194 | # This one needs to use a different order of characters and a |