\GB_Scripts
GeniBase Scripts enqueue class.
Synopsis
- // members
- public $base_url;
- public $content_url;
- public $default_version;
- public array $in_footer = ;
- public string $concat = '';
- public string $concat_version = '';
- public boolean $do_concat = false;
- public string $print_html = '';
- public string $print_code = '';
- public string $ext_handles = '';
- public string $ext_version = '';
- public $default_dirs;
- // Inherited members from GB_Dependencies
- public array $registered;
- public array $queue;
- public array $to_do;
- public array $done;
- public array $args;
- public array $groups;
- public integer $group;
- // methods
- public void __construct()
- public void init()
- public array print_scripts()
- public void print_extra_script()
- public void do_item()
- public void localize()
- public void set_group()
- public void all_deps()
- public void do_head_items()
- public void do_footer_items()
- public void in_default_dir()
- public void reset()
- // Inherited methods from GB_Dependencies
- public array do_items()
- public bool do_item()
- public bool all_deps()
- public bool add()
- public bool add_data()
- public mixed get_data()
- public void remove()
- public void enqueue()
- public void dequeue()
- protected boolean recurse_deps()
- public bool query()
- public bool set_group()
Hierarchy
Extends
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
115 - 224 | CyclomaticComplexity | The method do_item() has a Cyclomatic Complexity of 26. The configured cyclomatic complexity threshold is 10. |
115 - 224 | NPathComplexity | The method do_item() has an NPath complexity of 995328. The configured NPath complexity threshold is 200. |
115 - 224 | ExcessiveMethodLength | The method do_item() has 110 lines of code. Current threshold is set to 100. Avoid really long methods. |
273 | ShortVariable | Avoid variables with short names like $r. Configured minimum length is 3. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
56 | 9 | error | Inline control structures are not allowed |
61 | 9 | error | Expected 1 space after ELSE keyword; newline found |
61 | 9 | error | Inline control structures are not allowed |
93 | 12 | error | Method name "GB_Scripts::print_scripts" is not in camel caps format |
98 | 12 | error | Method name "GB_Scripts::print_extra_script" is not in camel caps format |
100 | 9 | error | Inline control structures are not allowed |
103 | 9 | error | Inline control structures are not allowed |
115 | 12 | error | Method name "GB_Scripts::do_item" is not in camel caps format |
117 | 9 | error | Inline control structures are not allowed |
125 | 9 | error | Inline control structures are not allowed |
130 | 9 | error | Inline control structures are not allowed |
132 | 9 | error | Expected 1 space after ELSE keyword; newline found |
132 | 9 | error | Inline control structures are not allowed |
135 | 9 | error | Inline control structures are not allowed |
150 | 121 | warning | Line exceeds 120 characters; contains 121 characters |
178 | 9 | error | Inline control structures are not allowed |
183 | 9 | error | Inline control structures are not allowed |
190 | 9 | error | Inline control structures are not allowed |
198 | 9 | error | Inline control structures are not allowed |
233 | 68 | warning | Line exceeds 120 characters; contains 133 characters |
239 | 13 | error | Inline control structures are not allowed |
247 | 9 | error | Inline control structures are not allowed |
252 | 9 | error | Inline control structures are not allowed |
258 | 12 | error | Method name "GB_Scripts::set_group" is not in camel caps format |
260 | 9 | error | Inline control structures are not allowed |
262 | 9 | error | Expected 1 space after ELSE keyword; newline found |
262 | 9 | error | Inline control structures are not allowed |
265 | 9 | error | Inline control structures are not allowed |
271 | 12 | error | Method name "GB_Scripts::all_deps" is not in camel caps format |
288 | 12 | error | Method name "GB_Scripts::do_head_items" is not in camel caps format |
294 | 12 | error | Method name "GB_Scripts::do_footer_items" is not in camel caps format |
300 | 12 | error | Method name "GB_Scripts::in_default_dir" is not in camel caps format |
328 | 2 | error | Whitespace found at end of line |
Members
public
- $args
—
array
An array of additional arguments passed when a handle is registered. - $base_url
- $concat
- $concat_version
- $content_url
- $default_dirs
- $default_version
- $do_concat
- $done
—
array
An array of _GB_Dependency handle objects already queued. - $ext_handles
- $ext_version
- $group
—
int
A handle group to enqueue. - $groups
—
array
An array of handle groups to enqueue. - $print_code
- $print_html
- $queue
—
array
An array of queued _GB_Dependency handle objects. - $registered
—
array
An array of registered handle objects. - $to_do
—
array
An array of _GB_Dependency handle objects to queue.
Methods
public
- __construct()
- all_deps()
- do_head_items()
- do_item()
- in_default_dir()
- init()
- localize() — Localizes a script
- print_extra_script()
- print_scripts() — Prints scripts.
- reset()
- set_group()
Inherited from GB_Dependencies
protected
- recurse_deps() — Recursively search the passed dependency tree for $handle
public
- add() — Register an item.
- add_data() — Add extra item data.
- all_deps() — Determine dependencies.
- dequeue() — Dequeue an item or items.
- do_item() — Process a dependency.
- do_items() — Process the items and dependencies.
- enqueue() — Queue an item or items.
- get_data() — Get extra item data.
- query() — Query list for an item.
- remove() — Un-register an item or items.
- set_group() — Set item group, unless already in a lower group.
History
-
2017-05-29T22:42:45+00:00 (commit #ba5872a)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Core remastered to Bootstrap CSS framework.
-
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-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-25T21:34:13+00:00 (commit #4a7821b)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Hooks API incapsulated to static class.
-
2015-03-19T20:07:04+00:00 (commit #702bc18)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#23: Написать автоматические тесты для всей системы https://github.com/Limych/GeniBase/issues/issue/23
-
2015-03-17T22:34:17+00:00 (commit #28c49e6)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#23: Написать автоматические тесты для всей системы https://github.com/Limych/GeniBase/issues/issue/23
-
2015-03-17T22:05:20+00:00 (commit #dafa260)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#23: Написать автоматические тесты для всей системы https://github.com/Limych/GeniBase/issues/issue/23
-
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-11T20:40:06+00:00 (commit #d811aca)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Added actions.