@@ -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 | |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | return parent::bindValue($parameter, $value, $data_type); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $parameter |
|
| 37 | + */ |
|
| 35 | 38 | public function bindInt($parameter, $value) |
| 36 | 39 | { |
| 37 | 40 | // force type to int (see http://bugs.php.net/bug.php?id=44639) |
@@ -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 | } |
@@ -361,6 +361,9 @@ discard block |
||
| 361 | 361 | return $this->_check; |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | + /** |
|
| 365 | + * @param string $parameter |
|
| 366 | + */ |
|
| 364 | 367 | function install($parameter = null) { |
| 365 | 368 | $params = $this->getParams(); |
| 366 | 369 | |
@@ -515,6 +518,9 @@ discard block |
||
| 515 | 518 | return $params; |
| 516 | 519 | } |
| 517 | 520 | |
| 521 | + /** |
|
| 522 | + * @param string $url |
|
| 523 | + */ |
|
| 518 | 524 | function sendTransactionToGateway($url, $parameters = null, $curl_opts = array()) { |
| 519 | 525 | $server = parse_url($url); |
| 520 | 526 | |
@@ -167,19 +167,31 @@ |
||
| 167 | 167 | $this->service = $service; |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | + /** |
|
| 171 | + * @param double $pounds |
|
| 172 | + */ |
|
| 170 | 173 | function _setWeight($pounds, $ounces=0) { |
| 171 | 174 | $this->pounds = $pounds; |
| 172 | 175 | $this->ounces = $ounces; |
| 173 | 176 | } |
| 174 | 177 | |
| 178 | + /** |
|
| 179 | + * @param string $container |
|
| 180 | + */ |
|
| 175 | 181 | function _setContainer($container) { |
| 176 | 182 | $this->container = $container; |
| 177 | 183 | } |
| 178 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $size |
|
| 187 | + */ |
|
| 179 | 188 | function _setSize($size) { |
| 180 | 189 | $this->size = $size; |
| 181 | 190 | } |
| 182 | 191 | |
| 192 | + /** |
|
| 193 | + * @param string $machinable |
|
| 194 | + */ |
|
| 183 | 195 | function _setMachinable($machinable) { |
| 184 | 196 | $this->machinable = $machinable; |
| 185 | 197 | } |
@@ -162,6 +162,9 @@ |
||
| 162 | 162 | return $link; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string $charset |
|
| 167 | + */ |
|
| 165 | 168 | function mysqli_set_charset($link, $charset) { |
| 166 | 169 | if ( function_exists('mysql_set_charset') ) { |
| 167 | 170 | return mysql_set_charset($charset, $link); |
@@ -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]; |
@@ -32,6 +32,10 @@ discard block |
||
| 32 | 32 | return mysqli_close($$link); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param integer $errno |
|
| 37 | + * @param string $error |
|
| 38 | + */ |
|
| 35 | 39 | function tep_db_error($query, $errno, $error) { |
| 36 | 40 | if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { |
| 37 | 41 | error_log('ERROR: [' . $errno . '] ' . $error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); |
@@ -52,6 +56,9 @@ discard block |
||
| 52 | 56 | return $result; |
| 53 | 57 | } |
| 54 | 58 | |
| 59 | + /** |
|
| 60 | + * @param string $table |
|
| 61 | + */ |
|
| 55 | 62 | function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') { |
| 56 | 63 | reset($data); |
| 57 | 64 | if ($action == 'insert') { |
@@ -191,6 +198,9 @@ discard block |
||
| 191 | 198 | return mysql_error($link); |
| 192 | 199 | } |
| 193 | 200 | |
| 201 | + /** |
|
| 202 | + * @param string $charset |
|
| 203 | + */ |
|
| 194 | 204 | function mysqli_set_charset($link, $charset) { |
| 195 | 205 | if ( function_exists('mysql_set_charset') ) { |
| 196 | 206 | return mysql_set_charset($charset, $link); |
@@ -221,6 +231,9 @@ discard block |
||
| 221 | 231 | return mysql_error($link); |
| 222 | 232 | } |
| 223 | 233 | |
| 234 | + /** |
|
| 235 | + * @param integer $type |
|
| 236 | + */ |
|
| 224 | 237 | function mysqli_fetch_array($query, $type) { |
| 225 | 238 | return mysql_fetch_array($query, $type); |
| 226 | 239 | } |