@@ -109,6 +109,9 @@ discard block |
||
| 109 | 109 | //// |
| 110 | 110 | // The HTML form submit button wrapper function |
| 111 | 111 | // Outputs a button in the selected language |
| 112 | + /** |
|
| 113 | + * @param string $image |
|
| 114 | + */ |
|
| 112 | 115 | function tep_image_submit($image, $alt = '', $parameters = '') { |
| 113 | 116 | global $language; |
| 114 | 117 | |
@@ -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)) { |
@@ -238,6 +244,9 @@ discard block |
||
| 238 | 244 | |
| 239 | 245 | //// |
| 240 | 246 | // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() |
| 247 | + /** |
|
| 248 | + * @param string $type |
|
| 249 | + */ |
|
| 241 | 250 | function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') { |
| 242 | 251 | global $HTTP_GET_VARS, $HTTP_POST_VARS; |
| 243 | 252 | |
@@ -256,6 +265,9 @@ discard block |
||
| 256 | 265 | |
| 257 | 266 | //// |
| 258 | 267 | // Output a form checkbox field |
| 268 | + /** |
|
| 269 | + * @param string $name |
|
| 270 | + */ |
|
| 259 | 271 | function tep_draw_checkbox_field($name, $value = '', $checked = false, $compare = '') { |
| 260 | 272 | return tep_draw_selection_field($name, 'checkbox', $value, $checked, $compare); |
| 261 | 273 | } |
@@ -269,6 +281,10 @@ discard block |
||
| 269 | 281 | //// |
| 270 | 282 | // Output a form textarea field |
| 271 | 283 | // The $wrap parameter is no longer used in the core xhtml template |
| 284 | + /** |
|
| 285 | + * @param string $name |
|
| 286 | + * @param string|false $wrap |
|
| 287 | + */ |
|
| 272 | 288 | function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { |
| 273 | 289 | global $HTTP_GET_VARS, $HTTP_POST_VARS; |
| 274 | 290 | |
@@ -365,6 +381,12 @@ discard block |
||
| 365 | 381 | |
| 366 | 382 | //// |
| 367 | 383 | // Output a jQuery UI Button |
| 384 | + /** |
|
| 385 | + * @param string $title |
|
| 386 | + * @param string $icon |
|
| 387 | + * @param string $link |
|
| 388 | + * @param string $priority |
|
| 389 | + */ |
|
| 368 | 390 | function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) { |
| 369 | 391 | static $button_counter = 1; |
| 370 | 392 | |
@@ -69,6 +69,9 @@ |
||
| 69 | 69 | return $this->doMigrationCheck($this->_pm_code) || $this->doMigrationCheck($this->_pm_pf_code); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $class |
|
| 74 | + */ |
|
| 72 | 75 | function doMigrationCheck($class) { |
| 73 | 76 | if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) { |
| 74 | 77 | if ( !class_exists($class) ) { |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | $this->register('global'); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $group |
|
| 25 | + */ |
|
| 23 | 26 | function register($group) { |
| 24 | 27 | $group = basename($group); |
| 25 | 28 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | /** |
| 111 | 111 | * addHeader |
| 112 | 112 | * set a unique request header |
| 113 | - * @param headerName the header name |
|
| 113 | + * @param headerName string header name |
|
| 114 | 114 | * @param headerValue the header value, ( unencoded) |
| 115 | 115 | **/ |
| 116 | 116 | function addHeader($headerName, $headerValue) { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | /** |
| 121 | 121 | * removeHeader |
| 122 | 122 | * unset a request header |
| 123 | - * @param headerName the header name |
|
| 123 | + * @param headerName string header name |
|
| 124 | 124 | **/ |
| 125 | 125 | function removeHeader($headerName) { |
| 126 | 126 | unset($this->requestHeaders[$headerName]); |
@@ -172,6 +172,7 @@ discard block |
||
| 172 | 172 | * get |
| 173 | 173 | * issue a GET http request |
| 174 | 174 | * @param uri URI (path on server) or full URL of the document |
| 175 | + * @param string $url |
|
| 175 | 176 | * @return string response status code (200 if ok) |
| 176 | 177 | * @seeAlso getHeaders(), getBody() |
| 177 | 178 | **/ |
@@ -309,7 +310,8 @@ discard block |
||
| 309 | 310 | * a) the command |
| 310 | 311 | * b) the request headers if they are defined |
| 311 | 312 | * c) the request body if defined |
| 312 | - * @return string the server repsonse status code |
|
| 313 | + * @param string $command |
|
| 314 | + * @return boolean|null the server repsonse status code |
|
| 313 | 315 | **/ |
| 314 | 316 | function sendCommand($command) { |
| 315 | 317 | $this->responseHeaders = array(); |
@@ -433,7 +435,7 @@ discard block |
||
| 433 | 435 | /** |
| 434 | 436 | * Calculate and return the URI to be sent ( proxy purpose ) |
| 435 | 437 | * @param the local URI |
| 436 | - * @return URI to be used in the HTTP request |
|
| 438 | + * @return string to be used in the HTTP request |
|
| 437 | 439 | * @scope private |
| 438 | 440 | **/ |
| 439 | 441 | function makeUri($uri) { |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | //// |
| 14 | 14 | // Sets the status of a banner |
| 15 | + /** |
|
| 16 | + * @param string $status |
|
| 17 | + */ |
|
| 15 | 18 | function tep_set_banner_status($banners_id, $status) { |
| 16 | 19 | if ($status == '1') { |
| 17 | 20 | return tep_db_query("update " . TABLE_BANNERS . " set status = '1', date_status_change = now(), date_scheduled = NULL where banners_id = '" . (int)$banners_id . "'"); |
@@ -55,6 +55,10 @@ |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | if (!function_exists('checkdnsrr')) { |
| 58 | + |
|
| 59 | + /** |
|
| 60 | + * @param string $type |
|
| 61 | + */ |
|
| 58 | 62 | function checkdnsrr($host, $type) { |
| 59 | 63 | if(tep_not_null($host) && tep_not_null($type)) { |
| 60 | 64 | @exec("nslookup -type=" . escapeshellarg($type) . " " . escapeshellarg($host), $output); |
@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | //// |
| 118 | 118 | // The HTML form submit button wrapper function |
| 119 | 119 | // Outputs a button in the selected language |
| 120 | + /** |
|
| 121 | + * @param string $image |
|
| 122 | + */ |
|
| 120 | 123 | function tep_image_submit($image, $alt = '', $parameters = '') { |
| 121 | 124 | global $language; |
| 122 | 125 | |
@@ -147,6 +150,9 @@ discard block |
||
| 147 | 150 | |
| 148 | 151 | //// |
| 149 | 152 | // Output a form |
| 153 | + /** |
|
| 154 | + * @param string $name |
|
| 155 | + */ |
|
| 150 | 156 | function tep_draw_form($name, $action, $method = 'post', $parameters = '', $tokenize = false) { |
| 151 | 157 | global $sessiontoken; |
| 152 | 158 | |
@@ -197,6 +203,9 @@ discard block |
||
| 197 | 203 | |
| 198 | 204 | //// |
| 199 | 205 | // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() |
| 206 | + /** |
|
| 207 | + * @param string $type |
|
| 208 | + */ |
|
| 200 | 209 | function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') { |
| 201 | 210 | global $HTTP_GET_VARS, $HTTP_POST_VARS; |
| 202 | 211 | |
@@ -217,6 +226,9 @@ discard block |
||
| 217 | 226 | |
| 218 | 227 | //// |
| 219 | 228 | // Output a form checkbox field |
| 229 | + /** |
|
| 230 | + * @param string $name |
|
| 231 | + */ |
|
| 220 | 232 | function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') { |
| 221 | 233 | return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters); |
| 222 | 234 | } |
@@ -230,6 +242,10 @@ discard block |
||
| 230 | 242 | //// |
| 231 | 243 | // Output a form textarea field |
| 232 | 244 | // The $wrap parameter is no longer used in the core xhtml template |
| 245 | + /** |
|
| 246 | + * @param string $name |
|
| 247 | + * @param string|false $wrap |
|
| 248 | + */ |
|
| 233 | 249 | function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { |
| 234 | 250 | global $HTTP_GET_VARS, $HTTP_POST_VARS; |
| 235 | 251 | |
@@ -337,6 +353,12 @@ discard block |
||
| 337 | 353 | |
| 338 | 354 | //// |
| 339 | 355 | // Output a jQuery UI Button |
| 356 | + /** |
|
| 357 | + * @param string $title |
|
| 358 | + * @param string $icon |
|
| 359 | + * @param string $link |
|
| 360 | + * @param string $priority |
|
| 361 | + */ |
|
| 340 | 362 | function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) { |
| 341 | 363 | static $button_counter = 1; |
| 342 | 364 | |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | //// |
| 14 | 14 | // Sets the status of a special product |
| 15 | + /** |
|
| 16 | + * @param string $status |
|
| 17 | + */ |
|
| 15 | 18 | function tep_set_specials_status($specials_id, $status) { |
| 16 | 19 | return tep_db_query("update " . TABLE_SPECIALS . " set status = '" . (int)$status . "', date_status_change = now() where specials_id = '" . (int)$specials_id . "'"); |
| 17 | 20 | } |
@@ -312,6 +312,9 @@ |
||
| 312 | 312 | return array('OSCOM_APP_PAYPAL_LOGIN_CONTENT_WIDTH', 'OSCOM_APP_PAYPAL_LOGIN_SORT_ORDER'); |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | + /** |
|
| 316 | + * @param string $attribute |
|
| 317 | + */ |
|
| 315 | 318 | function hasAttribute($attribute) { |
| 316 | 319 | return in_array($attribute, explode(';', OSCOM_APP_PAYPAL_LOGIN_ATTRIBUTES)); |
| 317 | 320 | } |