@@ -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 | } |
@@ -436,6 +436,9 @@ discard block |
||
| 436 | 436 | return $this->_check; |
| 437 | 437 | } |
| 438 | 438 | |
| 439 | + /** |
|
| 440 | + * @param string $parameter |
|
| 441 | + */ |
|
| 439 | 442 | function install($parameter = null) { |
| 440 | 443 | $params = $this->getParams(); |
| 441 | 444 | |
@@ -598,6 +601,10 @@ discard block |
||
| 598 | 601 | return md5($k_opad . pack("H*",md5($k_ipad . $data))); |
| 599 | 602 | } |
| 600 | 603 | |
| 604 | + /** |
|
| 605 | + * @param string $url |
|
| 606 | + * @param string $parameters |
|
| 607 | + */ |
|
| 601 | 608 | function sendTransactionToGateway($url, $parameters) { |
| 602 | 609 | $server = parse_url($url); |
| 603 | 610 | |
@@ -387,6 +387,9 @@ discard block |
||
| 387 | 387 | return $this->_check; |
| 388 | 388 | } |
| 389 | 389 | |
| 390 | + /** |
|
| 391 | + * @param string $parameter |
|
| 392 | + */ |
|
| 390 | 393 | function install($parameter = null) { |
| 391 | 394 | $params = $this->getParams(); |
| 392 | 395 | |
@@ -517,6 +520,9 @@ discard block |
||
| 517 | 520 | return $params; |
| 518 | 521 | } |
| 519 | 522 | |
| 523 | + /** |
|
| 524 | + * @param string $data |
|
| 525 | + */ |
|
| 520 | 526 | function _hmac($key, $data) { |
| 521 | 527 | if (function_exists('hash_hmac')) { |
| 522 | 528 | return hash_hmac('md5', $data, $key); |
@@ -587,6 +587,11 @@ |
||
| 587 | 587 | } |
| 588 | 588 | return $this->_check; |
| 589 | 589 | } |
| 590 | + |
|
| 591 | + /** |
|
| 592 | + * @param string $order_status |
|
| 593 | + * @param boolean $set_to_public |
|
| 594 | + */ |
|
| 590 | 595 | function set_order_status($order_status, $set_to_public) |
| 591 | 596 | {
|
| 592 | 597 | $status_id = 0; |
@@ -647,6 +647,10 @@ |
||
| 647 | 647 | return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', ''); |
| 648 | 648 | } |
| 649 | 649 | |
| 650 | + /** |
|
| 651 | + * @param string $url |
|
| 652 | + * @param string $parameters |
|
| 653 | + */ |
|
| 650 | 654 | function sendTransactionToGateway($url, $parameters, $with_headers = false) { |
| 651 | 655 | $server = parse_url($url); |
| 652 | 656 | |
@@ -329,6 +329,9 @@ discard block |
||
| 329 | 329 | return $this->_check; |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | + /** |
|
| 333 | + * @param string $parameter |
|
| 334 | + */ |
|
| 332 | 335 | function install($parameter = null) { |
| 333 | 336 | $params = $this->getParams(); |
| 334 | 337 | |
@@ -474,6 +477,10 @@ discard block |
||
| 474 | 477 | return $params; |
| 475 | 478 | } |
| 476 | 479 | |
| 480 | + /** |
|
| 481 | + * @param string $url |
|
| 482 | + * @param string $parameters |
|
| 483 | + */ |
|
| 477 | 484 | function sendTransactionToGateway($url, $parameters) { |
| 478 | 485 | $server = parse_url($url); |
| 479 | 486 | |
@@ -578,6 +585,9 @@ discard block |
||
| 578 | 585 | return (is_numeric($number) && isset($this->_error_messages[$number])); |
| 579 | 586 | } |
| 580 | 587 | |
| 588 | + /** |
|
| 589 | + * @param null|string $url |
|
| 590 | + */ |
|
| 581 | 591 | function formatURL($url) { |
| 582 | 592 | return str_replace('&', '&', $url); |
| 583 | 593 | } |