@@ -29,6 +29,9 @@ |
||
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | +/** |
|
| 33 | + * @param string $group_name |
|
| 34 | + */ |
|
| 32 | 35 | function flt_spy_scan($target_planet, $group_name, $section_title, $target_user = array()) |
| 33 | 36 | { |
| 34 | 37 | global $lang; |
@@ -26,6 +26,10 @@ |
||
| 26 | 26 | return true; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | +/** |
|
| 30 | + * @param integer $mode |
|
| 31 | + * @param integer $mercenary_id |
|
| 32 | + */ |
|
| 29 | 33 | function mrc_mercenary_hire($mode, $user, $mercenary_id) { |
| 30 | 34 | global $config, $lang, $sn_powerup_buy_discounts; |
| 31 | 35 | |
@@ -108,6 +108,9 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | // ------------------------------------------------------------------------------------------------ |
| 110 | 110 | // Заполняет данные по флоту |
| 111 | +/** |
|
| 112 | + * @param boolean $is_attacker |
|
| 113 | + */ |
|
| 111 | 114 | function ube_attack_prepare_fleet(&$combat_data, &$fleet, $is_attacker){return sn_function_call('ube_attack_prepare_fleet', array(&$combat_data, &$fleet, $is_attacker));} |
| 112 | 115 | function sn_ube_attack_prepare_fleet(&$combat_data, &$fleet, $is_attacker) |
| 113 | 116 | { |
@@ -331,6 +334,9 @@ discard block |
||
| 331 | 334 | |
| 332 | 335 | // ------------------------------------------------------------------------------------------------ |
| 333 | 336 | // Вычисление дополнительной информации для расчета раунда |
| 337 | +/** |
|
| 338 | + * @param integer $round |
|
| 339 | + */ |
|
| 334 | 340 | function sn_ube_combat_round_prepare(&$combat_data, $round) |
| 335 | 341 | { |
| 336 | 342 | global $ube_combat_bonus_list; |
@@ -393,6 +399,9 @@ discard block |
||
| 393 | 399 | |
| 394 | 400 | // ------------------------------------------------------------------------------------------------ |
| 395 | 401 | // Рассчитывает результат столкновения флотов ака раунд |
| 402 | +/** |
|
| 403 | + * @param integer $round |
|
| 404 | + */ |
|
| 396 | 405 | function sn_ube_combat_round_crossfire_fleet(&$combat_data, $round) |
| 397 | 406 | { |
| 398 | 407 | if(BE_DEBUG === true) |
@@ -510,6 +519,9 @@ discard block |
||
| 510 | 519 | } |
| 511 | 520 | } |
| 512 | 521 | |
| 522 | +/** |
|
| 523 | + * @param double $amplified_damage |
|
| 524 | + */ |
|
| 513 | 525 | function sn_ube_combat_round_crossfire_unit_damage_current(&$defend_fleet_data, $defend_unit_id, &$amplified_damage, &$units_lost, &$units_boomed, &$combat_options) |
| 514 | 526 | { |
| 515 | 527 | $unit_is_lost = false; |
@@ -632,6 +644,9 @@ discard block |
||
| 632 | 644 | |
| 633 | 645 | // ------------------------------------------------------------------------------------------------ |
| 634 | 646 | // Анализирует результаты раунда и генерирует данные для следующего раунда |
| 647 | +/** |
|
| 648 | + * @param integer $round |
|
| 649 | + */ |
|
| 635 | 650 | function sn_ube_combat_round_analyze(&$combat_data, $round) |
| 636 | 651 | { |
| 637 | 652 | $round_data = &$combat_data[UBE_ROUNDS][$round]; |
@@ -281,6 +281,9 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | // ------------------------------------------------------------------------------------------------ |
| 283 | 283 | // Читает боевой отчет из БД |
| 284 | +/** |
|
| 285 | + * @param string $report_cypher |
|
| 286 | + */ |
|
| 284 | 287 | function sn_ube_report_load($report_cypher) |
| 285 | 288 | { |
| 286 | 289 | $report_cypher = db_escape($report_cypher); |
@@ -480,6 +483,9 @@ discard block |
||
| 480 | 483 | |
| 481 | 484 | // ------------------------------------------------------------------------------------------------ |
| 482 | 485 | // Парсит инфу о раунде для темплейта |
| 486 | +/** |
|
| 487 | + * @param integer $round |
|
| 488 | + */ |
|
| 483 | 489 | function sn_ube_report_round_fleet(&$combat_data, $round) |
| 484 | 490 | { |
| 485 | 491 | global $lang; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * @param float $range_start - Начало диапазона |
| 39 | 39 | * @param float $range_end - Конец диапазона |
| 40 | - * @param bool|int $round - До скольки знаков округлять результат. False - не округлять, True - округлять до целого, 1 - округлять до десятков, 2 - до сотен итд |
|
| 40 | + * @param boolean $round - До скольки знаков округлять результат. False - не округлять, True - округлять до целого, 1 - округлять до десятков, 2 - до сотен итд |
|
| 41 | 41 | * @param int $strict - В сколько сигм надо уложить результат |
| 42 | 42 | * @param bool|false $cut_extreme - надо ли обрезать крайние значения. Например, при $strict = 2 их слишком много |
| 43 | 43 | * |
@@ -18,6 +18,11 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | // TODO - НЕ ОБЯЗАТЕЛЬНО ОТПРАВЛЯТЬ ЧЕРЕЗ ЕМЕЙЛ! ЕСЛИ ЭТО ФЕЙСБУЧЕК ИЛИ ВКШЕЧКА - МОЖНО ЧЕРЕЗ ЛС ПИСАТЬ!! |
| 20 | 20 | // TODO - OK 4.6 |
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @param integer $confirmation_type_safe |
|
| 24 | + * @param string $email_unsafe |
|
| 25 | + */ |
|
| 21 | 26 | public function db_confirmation_get_latest_by_type_and_email($confirmation_type_safe, $email_unsafe) { |
| 22 | 27 | $email_safe = $this->db->db_escape($email_unsafe); |
| 23 | 28 | |
@@ -26,12 +31,21 @@ discard block |
||
| 26 | 31 | `type` = {$confirmation_type_safe} AND `email` = '{$email_safe}' ORDER BY create_time DESC LIMIT 1;", true); |
| 27 | 32 | } |
| 28 | 33 | // TODO - OK 4.6 |
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @param integer $confirmation_type_safe |
|
| 37 | + */ |
|
| 29 | 38 | public function db_confirmation_delete_by_type_and_email($confirmation_type_safe, $email_unsafe) { |
| 30 | 39 | $email_safe = $this->db->db_escape($email_unsafe); |
| 31 | 40 | |
| 32 | 41 | return $this->db->doquery("DELETE FROM {{confirmations}} WHERE `type` = {$confirmation_type_safe} AND `email` = '{$email_safe}'"); |
| 33 | 42 | } |
| 34 | 43 | // TODO - OK 4.6 |
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @param integer $confirmation_type_safe |
|
| 47 | + * @param string $email_unsafe |
|
| 48 | + */ |
|
| 35 | 49 | public function db_confirmation_get_unique_code_by_type_and_email($confirmation_type_safe, $email_unsafe) { |
| 36 | 50 | $email_safe = $this->db->db_escape($email_unsafe); |
| 37 | 51 | |
@@ -50,6 +64,11 @@ discard block |
||
| 50 | 64 | return $confirm_code_unsafe; |
| 51 | 65 | } |
| 52 | 66 | // TODO - OK 4.6 |
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * @param integer $confirmation_type_safe |
|
| 70 | + * @param string $confirmation_code_unsafe |
|
| 71 | + */ |
|
| 53 | 72 | public function db_confirmation_get_by_type_and_code($confirmation_type_safe, $confirmation_code_unsafe) { |
| 54 | 73 | $confirmation_code_safe = $this->db->db_escape($confirmation_code_unsafe); |
| 55 | 74 | |
@@ -702,7 +702,7 @@ discard block |
||
| 702 | 702 | * Рассчёт бонуса ММ |
| 703 | 703 | * |
| 704 | 704 | * @param $dark_matter |
| 705 | - * @param bool|true $direct |
|
| 705 | + * @param boolean $direct |
|
| 706 | 706 | * @param bool|false $return_bonus |
| 707 | 707 | * |
| 708 | 708 | * @return float|int |
@@ -738,6 +738,12 @@ discard block |
||
| 738 | 738 | |
| 739 | 739 | // Дополнительная ре-трансляция адреса, если в каком-то случае платежная система ожидает нелогичный ответ |
| 740 | 740 | // Пример: иксолла при неправильно заданном пользователе в ордере ожидает НЕПРАВИЛЬНЫЙ_ОРДЕР, а не НЕПРАВИЛЬНЫЙ_ПОЛЬЗОВАТЕЛЬ |
| 741 | + |
|
| 742 | + /** |
|
| 743 | + * @param integer $error_code |
|
| 744 | + * |
|
| 745 | + * @return integer|null |
|
| 746 | + */ |
|
| 741 | 747 | function retranslate_error($error_code, $options = array()) { |
| 742 | 748 | return isset($options['retranslate_error'][$error_code]) ? $options['retranslate_error'][$error_code] : $error_code; |
| 743 | 749 | } |
@@ -103,6 +103,7 @@ |
||
| 103 | 103 | /** |
| 104 | 104 | * Set custom template location (able to use directory outside of phpBB) |
| 105 | 105 | * @access public |
| 106 | + * @param string $template_path |
|
| 106 | 107 | */ |
| 107 | 108 | function set_custom_template($template_path, $template_name, $fallback_template_path = false) |
| 108 | 109 | { |
@@ -151,6 +151,9 @@ |
||
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param integer $user_id |
|
| 156 | + */ |
|
| 154 | 157 | public function __construct($user_id) { |
| 155 | 158 | $this->user_change($user_id); |
| 156 | 159 | } |