@@ -314,6 +314,9 @@ discard block |
||
| 314 | 314 | return $result; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | + /** |
|
| 318 | + * @param integer $location_type |
|
| 319 | + */ |
|
| 317 | 320 | public static function db_ins_field_set($location_type, $field_set, $serialize = false) { |
| 318 | 321 | // TODO multiinsert |
| 319 | 322 | !sn_db_field_set_is_safe($field_set) ? $field_set = sn_db_field_set_make_safe($field_set, $serialize) : false; |
@@ -350,7 +353,7 @@ discard block |
||
| 350 | 353 | /** |
| 351 | 354 | * Блокирует указанные таблицу/список таблиц |
| 352 | 355 | * |
| 353 | - * @param string|array $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов |
|
| 356 | + * @param string $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов |
|
| 354 | 357 | * <p>string - название таблицы для блокировки</p> |
| 355 | 358 | * <p>array - массив, где ключ - имя таблицы, а значение - условия блокировки элементов</p> |
| 356 | 359 | */ |
@@ -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 | { |
@@ -47,6 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * constuctor |
| 50 | + * @param template $template |
|
| 50 | 51 | */ |
| 51 | 52 | function template_compile(&$template) |
| 52 | 53 | { |
@@ -463,6 +464,7 @@ discard block |
||
| 463 | 464 | * Compile IF tags - much of this is from Smarty with |
| 464 | 465 | * some adaptions for our block level methods |
| 465 | 466 | * @access private |
| 467 | + * @param boolean $elseif |
|
| 466 | 468 | */ |
| 467 | 469 | function compile_tag_if($tag_args, $elseif) |
| 468 | 470 | { |
@@ -620,6 +622,7 @@ discard block |
||
| 620 | 622 | /** |
| 621 | 623 | * Compile DEFINE tags |
| 622 | 624 | * @access private |
| 625 | + * @param boolean $op |
|
| 623 | 626 | */ |
| 624 | 627 | function compile_tag_define($tag_args, $op) |
| 625 | 628 | { |
@@ -698,6 +701,7 @@ discard block |
||
| 698 | 701 | * parse expression |
| 699 | 702 | * This is from Smarty |
| 700 | 703 | * @access private |
| 704 | + * @param string $is_arg |
|
| 701 | 705 | */ |
| 702 | 706 | function _parse_is_expr($is_arg, $tokens) |
| 703 | 707 | { |
@@ -794,6 +798,8 @@ discard block |
||
| 794 | 798 | * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. |
| 795 | 799 | * NOTE: does not expect a trailing "." on the blockname. |
| 796 | 800 | * @access private |
| 801 | + * @param string $blockname |
|
| 802 | + * @param boolean $include_last_iterator |
|
| 797 | 803 | */ |
| 798 | 804 | function generate_block_data_ref($blockname, $include_last_iterator, $defop = false) |
| 799 | 805 | { |
@@ -832,6 +838,7 @@ discard block |
||
| 832 | 838 | /** |
| 833 | 839 | * Write compiled file to cache directory |
| 834 | 840 | * @access private |
| 841 | + * @param string $data |
|
| 835 | 842 | */ |
| 836 | 843 | function compile_write($handle, $data) |
| 837 | 844 | { |
@@ -857,6 +864,7 @@ discard block |
||
| 857 | 864 | /** |
| 858 | 865 | * Minifies template w/i PHP code by removing extra spaces |
| 859 | 866 | * @access private |
| 867 | + * @return string |
|
| 860 | 868 | */ |
| 861 | 869 | function minify($html) |
| 862 | 870 | { |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * @param mixed $offset <p> |
| 119 | 119 | * The offset to assign the value to. |
| 120 | 120 | * </p> |
| 121 | - * @param mixed $value <p> |
|
| 121 | + * @param Unit $value <p> |
|
| 122 | 122 | * The value to set. |
| 123 | 123 | * </p> |
| 124 | 124 | * |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | * Преобразовывает данные симулятора в данные для расчета боя |
| 460 | 460 | * |
| 461 | 461 | * @param $side_info |
| 462 | - * @param $attacker |
|
| 462 | + * @param boolean $attacker |
|
| 463 | 463 | * @param int $player_id |
| 464 | 464 | * |
| 465 | 465 | */ |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | } |
| 522 | 522 | |
| 523 | 523 | /** |
| 524 | - * @return int |
|
| 524 | + * @return double |
|
| 525 | 525 | */ |
| 526 | 526 | public function get_time_spent() { |
| 527 | 527 | return $this->time_spent; |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | } |
| 565 | 565 | |
| 566 | 566 | /** |
| 567 | - * @param $template |
|
| 567 | + * @param null|template $template |
|
| 568 | 568 | * |
| 569 | 569 | * @return template |
| 570 | 570 | */ |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * @param $ube_report_id |
|
| 153 | + * @param integer $ube_report_id |
|
| 154 | 154 | * |
| 155 | 155 | * @return array |
| 156 | 156 | * |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | |
| 289 | 289 | |
| 290 | 290 | /** |
| 291 | - * @param $ube_report_id |
|
| 291 | + * @param integer $ube_report_id |
|
| 292 | 292 | * |
| 293 | 293 | * @return array |
| 294 | 294 | */ |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | // Рендерит таблицу общего результата боя |
| 337 | 337 | /** |
| 338 | 338 | * @param $array |
| 339 | - * @param $lang_header_index |
|
| 339 | + * @param string $lang_header_index |
|
| 340 | 340 | * |
| 341 | 341 | * @return array |
| 342 | 342 | */ |
@@ -362,6 +362,9 @@ discard block |
||
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | |
| 365 | + /** |
|
| 366 | + * @param integer $ube_report_id |
|
| 367 | + */ |
|
| 365 | 368 | public function sql_generate_outcome_unit_array(&$sql_perform_report_unit, $ube_report_id) { |
| 366 | 369 | $fleet_id = $this->db_id; |
| 367 | 370 | |
@@ -468,6 +471,10 @@ discard block |
||
| 468 | 471 | $this->fleet_capacity -= $fleet_total_resources; |
| 469 | 472 | } |
| 470 | 473 | |
| 474 | + /** |
|
| 475 | + * @param integer $is_small_fleet_recce |
|
| 476 | + * @param integer $reapers_status |
|
| 477 | + */ |
|
| 471 | 478 | public function db_save_combat_result_fleet($is_small_fleet_recce, $reapers_status) { |
| 472 | 479 | $ship_count_initial = $this->unit_list->unitsCount(); |
| 473 | 480 | $ship_count_lost = $this->unit_list->unitCountLost(); |
@@ -535,7 +542,7 @@ discard block |
||
| 535 | 542 | |
| 536 | 543 | /** |
| 537 | 544 | * @param UBEFleetList $fleet_list |
| 538 | - * @param $is_simulator |
|
| 545 | + * @param boolean $is_simulator |
|
| 539 | 546 | * |
| 540 | 547 | * @version 2016-02-25 23:42:45 41a4.68 |
| 541 | 548 | */ |
@@ -278,6 +278,9 @@ |
||
| 278 | 278 | return count($this->ube_side_present_at_round_start); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | + /** |
|
| 282 | + * @param integer $round |
|
| 283 | + */ |
|
| 281 | 284 | public function ubeAnalyzeFleetOutcome($round) { |
| 282 | 285 | $this->ube_actualize_sides(); |
| 283 | 286 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @param UBE $ube |
| 9 | 9 | * |
| 10 | - * @return bool|string |
|
| 10 | + * @return false|string |
|
| 11 | 11 | * |
| 12 | 12 | * @version 2016-02-25 23:42:45 41a4.68 |
| 13 | 13 | */ |
@@ -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 | } |