@@ -221,6 +221,9 @@ discard block |
||
| 221 | 221 | return $image; |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | + /** |
|
| 225 | + * @param integer $len |
|
| 226 | + */ |
|
| 224 | 227 | function tep_break_string($string, $len, $break_char = '-') { |
| 225 | 228 | $l = 0; |
| 226 | 229 | $output = ''; |
@@ -333,6 +336,11 @@ discard block |
||
| 333 | 336 | return $geo_zone_id; |
| 334 | 337 | } |
| 335 | 338 | |
| 339 | + /** |
|
| 340 | + * @param boolean $html |
|
| 341 | + * @param string $boln |
|
| 342 | + * @param string $eoln |
|
| 343 | + */ |
|
| 336 | 344 | function tep_address_format($address_format_id, $address, $html, $boln, $eoln) { |
| 337 | 345 | $Qaddress = Registry::get('Db')->get('address_format', 'address_format', ['address_format_id' => (int)$address_format_id]); |
| 338 | 346 | |
@@ -429,6 +437,9 @@ discard block |
||
| 429 | 437 | return $def_state; |
| 430 | 438 | } |
| 431 | 439 | |
| 440 | + /** |
|
| 441 | + * @param string $params |
|
| 442 | + */ |
|
| 432 | 443 | function tep_get_uprid($prid, $params) { |
| 433 | 444 | $uprid = $prid; |
| 434 | 445 | if ( (is_array($params)) && (!strstr($prid, '{')) ) { |
@@ -545,6 +556,9 @@ discard block |
||
| 545 | 556 | //// |
| 546 | 557 | // Wrapper for class_exists() function |
| 547 | 558 | // This function is not available in all PHP versions so we test it before using it. |
| 559 | + /** |
|
| 560 | + * @param string $class_name |
|
| 561 | + */ |
|
| 548 | 562 | function tep_class_exists($class_name) { |
| 549 | 563 | if (function_exists('class_exists')) { |
| 550 | 564 | return class_exists($class_name); |
@@ -740,6 +754,9 @@ discard block |
||
| 740 | 754 | |
| 741 | 755 | //// |
| 742 | 756 | // Sets the status of a banner |
| 757 | + /** |
|
| 758 | + * @param integer $status |
|
| 759 | + */ |
|
| 743 | 760 | function tep_set_banner_status($banners_id, $status) { |
| 744 | 761 | $OSCOM_Db = Registry::get('Db'); |
| 745 | 762 | |
@@ -814,6 +831,9 @@ discard block |
||
| 814 | 831 | |
| 815 | 832 | //// |
| 816 | 833 | // Sets the status of a product on special |
| 834 | + /** |
|
| 835 | + * @param integer $status |
|
| 836 | + */ |
|
| 817 | 837 | function tep_set_specials_status($specials_id, $status) { |
| 818 | 838 | $OSCOM_Db = Registry::get('Db'); |
| 819 | 839 | |
@@ -1231,6 +1251,11 @@ discard block |
||
| 1231 | 1251 | return $value; |
| 1232 | 1252 | } |
| 1233 | 1253 | |
| 1254 | + /** |
|
| 1255 | + * @param string $to_name |
|
| 1256 | + * @param string $email_subject |
|
| 1257 | + * @param string $email_text |
|
| 1258 | + */ |
|
| 1234 | 1259 | function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) { |
| 1235 | 1260 | if (SEND_EMAILS != 'true') return false; |
| 1236 | 1261 | |
@@ -1282,6 +1307,9 @@ discard block |
||
| 1282 | 1307 | |
| 1283 | 1308 | //// |
| 1284 | 1309 | // Wrapper function for round() for php3 compatibility |
| 1310 | + /** |
|
| 1311 | + * @return double |
|
| 1312 | + */ |
|
| 1285 | 1313 | function tep_round($value, $precision) { |
| 1286 | 1314 | return round($value, $precision); |
| 1287 | 1315 | } |
@@ -1430,6 +1458,10 @@ discard block |
||
| 1430 | 1458 | |
| 1431 | 1459 | //// |
| 1432 | 1460 | // Return a random value |
| 1461 | + /** |
|
| 1462 | + * @param integer $min |
|
| 1463 | + * @param integer $max |
|
| 1464 | + */ |
|
| 1433 | 1465 | function tep_rand($min = null, $max = null) { |
| 1434 | 1466 | static $seeded; |
| 1435 | 1467 | |
@@ -1445,6 +1477,9 @@ discard block |
||
| 1445 | 1477 | } |
| 1446 | 1478 | |
| 1447 | 1479 | // nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n) |
| 1480 | + /** |
|
| 1481 | + * @param string[] $from |
|
| 1482 | + */ |
|
| 1448 | 1483 | function tep_convert_linefeeds($from, $to, $string) { |
| 1449 | 1484 | return str_replace($from, $to, $string); |
| 1450 | 1485 | } |