\ww1_database_solders
Класс работы с базой данных нижних чинов
Synopsis
- // members
- public boolean $surname_ext = FALSE;
- public boolean $name_ext = FALSE;
- private array $simple_fields = ;
- private array $extended_fields = ;
- private array $numeric_fields = ;
- private array $ids_fields = ;
- private array $dictionary_fields = ;
- // Inherited members from ww1_database
- protected $query_mode;
- public $query;
- protected $page;
- public $have_query;
- public $records_cnt;
- // methods
- public void __construct()
- public void search_form()
- public void do_search()
- // Inherited methods from ww1_database
- public void __construct()
- public abstract void search_form()
- public abstract void do_search()
Hierarchy
Extends
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
209 - 259 | CyclomaticComplexity | The method __construct() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. |
247 | UnusedLocalVariable | Avoid unused local variables such as '$query'. |
248 | ShortVariable | Avoid variables with short names like $rq. Configured minimum length is 3. |
264 - 353 | CyclomaticComplexity | The method search_form() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. |
359 - 534 | CyclomaticComplexity | The method do_search() has a Cyclomatic Complexity of 40. The configured cyclomatic complexity threshold is 10. |
359 - 534 | NPathComplexity | The method do_search() has an NPath complexity of 705024. The configured NPath complexity threshold is 200. |
359 - 534 | ExcessiveMethodLength | The method do_search() has 176 lines of code. Current threshold is set to 100. Avoid really long methods. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
88 | 5 | error | Visibility must be declared on method "__construct" |
96 | 9 | error | Inline control structures are not allowed |
103 | 14 | error | Method name "ww1_database::search_form" is not in camel caps format |
103 | 14 | error | Visibility must be declared on method "search_form" |
108 | 14 | error | Method name "ww1_database::do_search" is not in camel caps format |
108 | 14 | error | Visibility must be declared on method "do_search" |
123 | 9 | error | The var keyword must not be used to declare a property |
123 | 9 | error | Visibility must be declared on property "$surname_ext" |
123 | 24 | error | TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" |
130 | 9 | error | The var keyword must not be used to declare a property |
130 | 9 | error | Visibility must be declared on property "$name_ext" |
130 | 21 | error | TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" |
209 | 5 | error | Visibility must be declared on method "__construct" |
218 | 17 | error | Inline control structures are not allowed |
222 | 31 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
223 | 34 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
230 | 17 | error | Inline control structures are not allowed |
232 | 17 | error | Inline control structures are not allowed |
234 | 17 | error | Inline control structures are not allowed |
238 | 85 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
239 | 94 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
264 | 5 | error | Method name "ww1_database_solders::search_form" is not in camel caps format |
264 | 5 | error | Visibility must be declared on method "search_form" |
266 | 9 | warning | Line exceeds 120 characters; contains 131 characters |
268 | 261 | warning | Line exceeds 120 characters; contains 261 characters |
282 | 201 | warning | Line exceeds 120 characters; contains 201 characters |
289 | 138 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
289 | 143 | warning | Line exceeds 120 characters; contains 143 characters |
292 | 152 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
292 | 157 | warning | Line exceeds 120 characters; contains 157 characters |
294 | 13 | warning | Line exceeds 120 characters; contains 125 characters |
295 | 147 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
295 | 152 | warning | Line exceeds 120 characters; contains 152 characters |
298 | 142 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
298 | 147 | warning | Line exceeds 120 characters; contains 147 characters |
300 | 13 | warning | Line exceeds 120 characters; contains 121 characters |
301 | 167 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
301 | 172 | warning | Line exceeds 120 characters; contains 172 characters |
326 | 567 | warning | Line exceeds 120 characters; contains 567 characters |
331 | 561 | warning | Line exceeds 120 characters; contains 561 characters |
336 | 539 | warning | Line exceeds 120 characters; contains 539 characters |
341 | 169 | warning | Line exceeds 120 characters; contains 169 characters |
342 | 29 | error | Inline control structures are not allowed |
343 | 213 | warning | Line exceeds 120 characters; contains 213 characters |
346 | 213 | warning | Line exceeds 120 characters; contains 213 characters |
359 | 5 | error | Method name "ww1_database_solders::do_search" is not in camel caps format |
359 | 5 | error | Visibility must be declared on method "do_search" |
376 | 13 | error | Inline control structures are not allowed |
378 | 13 | error | Inline control structures are not allowed |
390 | 17 | error | Inline control structures are not allowed |
392 | 17 | error | Inline control structures are not allowed |
395 | 17 | error | Inline control structures are not allowed |
397 | 17 | error | Expected 1 space after ELSE keyword; newline found |
397 | 17 | error | Inline control structures are not allowed |
412 | 133 | warning | Line exceeds 120 characters; contains 133 characters |
420 | 158 | warning | Line exceeds 120 characters; contains 158 characters |
421 | 124 | warning | Line exceeds 120 characters; contains 124 characters |
423 | 95 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
424 | 70 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
425 | 297 | warning | Line exceeds 120 characters; contains 297 characters |
431 | 33 | error | Inline control structures are not allowed |
433 | 70 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
434 | 208 | warning | Line exceeds 120 characters; contains 208 characters |
436 | 173 | warning | Line exceeds 120 characters; contains 173 characters |
437 | 157 | warning | Line exceeds 120 characters; contains 157 characters |
439 | 45 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
449 | 128 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
449 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
453 | 87 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
458 | 87 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
474 | 9 | error | Inline control structures are not allowed |
482 | 9 | error | Inline control structures are not allowed |
496 | 9 | error | Inline control structures are not allowed |
500 | 142 | warning | Line exceeds 120 characters; contains 142 characters |
506 | 186 | warning | Line exceeds 120 characters; contains 186 characters |
511 | 21 | error | Inline control structures are not allowed |
522 | 67 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
525 | 17 | error | Inline control structures are not allowed |
Tasks
Line | Task |
---|---|
486 | Добавить получение результатов поиска из кэша |
Members
private
- $dictionary_fields
—
array
List of fields that have dictionaries. - $extended_fields
—
array
List of fields for extended search mode. - $ids_fields
—
array
List of fields with IDs. - $numeric_fields
—
array
List of fields with numeric values. - $simple_fields
—
array
List of fields for simple search mode.
protected
- $page
- $query_mode
public
- $have_query
- $name_ext
—
boolean
If TRUE, the name was automatically expanded with search keys. - $query
- $records_cnt
- $surname_ext
—
boolean
If TRUE, the surname was automatically expanded with search keys.
Methods
public
- __construct() — Создание экземпляра класса.
- do_search() — Осуществление поиска и генерация класса результатов поиска.
- search_form() — Генерация html-формы поиска.
Inherited from ww1_database
public
- do_search() — Осуществление поиска и генерация класса результатов поиска.
- search_form() — Генерация html-формы поиска.
History
-
2017-05-17T09:50:09+00:00 (commit #bcd6e9c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied
-
2016-01-25T17:45:50+00:00 (commit #97e2af2)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre v.3.0
-
2015-04-01T20:46:28+00:00 (commit #4a5dece)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#63: Оптимизация запросов пользователей https://github.com/Limych/GeniBase/issues/issue/63
-
2015-03-28T21:15:41+00:00 (commit #158813e)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
ję v2
-
2015-03-26T15:50:21+00:00 (commit #b1f470c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#64: Система автоматического перевода личных имён на другие языки https://github.com/Limych/GeniBase/issues/issue/64
-
2015-03-23T11:15:12+00:00 (commit #a0eff45)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
New pagination function. And fixed error of cron usage.
-
2015-03-19T00:27:34+00:00 (commit #58e9528)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#60: Не выводятся дополнительные неформализованные поля https://github.com/Limych/GeniBase/issues/issue/60
-
2015-03-17T17:00:10+00:00 (commit #4176d2e)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#20: Перевод всего встроенного в систему текста на gettext. Английская и русская локализации системы https://github.com/Limych/GeniBase/issues/issue/20
-
2015-03-17T08:43:40+00:00 (commit #a1ec47c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#20, #53, #58, #55, #56, #57: Перевод всего встроенного в систему текста на gettext. Английская и русская локализации системы https://github.com/Limych/GeniBase/issues/issue/20
-
2015-03-14T17:05:33+00:00 (commit #1e65a19)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#20: Перевод всего встроенного в систему текста на gettext https://github.com/Limych/GeniBase/issues/issue/20 Also all non-GeniBase code moved from core folder to source root.
-
2015-03-13T19:41:13+00:00 (commit #839eee5)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Setting user ID cookie and some minor code changes. #50
-
2015-03-11T22:03:11+00:00 (commit #bff9e2e)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Renamed some SQL-tables and fields and some bugfixes. #28, #43
-
2015-03-11T20:40:06+00:00 (commit #d811aca)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Added actions.