\GB_Styles
GeniBase Styles enqueue class.
Synopsis
- // members
- public $base_url;
- public $content_url;
- public $default_version;
- public string $text_direction = 'ltr';
- public boolean $do_concat = false;
- public string $concat_tag = '';
- public string $concat_code = '';
- public string $print_html = '';
- public string $print_code = '';
- 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 static void get_file()
- public bool do_item()
- public void add_inline_style()
- public bool print_inline_style()
- public bool all_deps()
- public string _css_href()
- public bool in_default_dir()
- public void do_footer_items()
- 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 |
---|---|---|
79 - 175 | CyclomaticComplexity | The method do_item() has a Cyclomatic Complexity of 29. The configured cyclomatic complexity threshold is 10. |
79 - 175 | NPathComplexity | The method do_item() has an NPath complexity of 570240. The configured NPath complexity threshold is 200. |
232 | ShortVariable | Avoid variables with short names like $r. Configured minimum length is 3. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
64 | 12 | error | Method name "GB_Styles::get_file" is not in camel caps format |
64 | 12 | error | Visibility must be declared on method "get_file" |
68 | 9 | error | Inline control structures are not allowed |
79 | 12 | error | Method name "GB_Styles::do_item" is not in camel caps format |
81 | 9 | error | Inline control structures are not allowed |
85 | 9 | error | Inline control structures are not allowed |
87 | 9 | error | Expected 1 space after ELSE keyword; newline found |
87 | 9 | error | Inline control structures are not allowed |
90 | 9 | error | Inline control structures are not allowed |
94 | 121 | warning | Line exceeds 120 characters; contains 121 characters |
104 | 9 | error | Inline control structures are not allowed |
106 | 9 | error | Expected 1 space after ELSE keyword; newline found |
106 | 9 | error | Inline control structures are not allowed |
133 | 173 | warning | Line exceeds 120 characters; contains 173 characters |
138 | 128 | warning | Line exceeds 120 characters; contains 128 characters |
146 | 189 | warning | Line exceeds 120 characters; contains 189 characters |
164 | 13 | error | Inline control structures are not allowed |
165 | 141 | warning | Line exceeds 120 characters; contains 141 characters |
182 | 12 | error | Method name "GB_Styles::add_inline_style" is not in camel caps format |
204 | 12 | error | Method name "GB_Styles::print_inline_style" is not in camel caps format |
230 | 12 | error | Method name "GB_Styles::all_deps" is not in camel caps format |
254 | 12 | warning | Method name "_css_href" should not be prefixed with an underscore to indicate visibility |
254 | 12 | error | Method name "GB_Styles::_css_href" is not in camel caps format |
256 | 139 | warning | Line exceeds 120 characters; contains 139 characters |
260 | 9 | error | Inline control structures are not allowed |
283 | 12 | error | Method name "GB_Styles::in_default_dir" is not in camel caps format |
285 | 9 | error | Inline control structures are not allowed |
289 | 13 | error | Inline control structures are not allowed |
295 | 12 | error | Method name "GB_Styles::do_footer_items" is not in camel caps format |
296 | 5 | error | Opening brace must be the last content on the line |
308 | 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_code
- $concat_tag
- $content_url
- $default_dirs
- $default_version
- $do_concat
- $done
—
array
An array of _GB_Dependency handle objects already queued. - $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. - $text_direction
- $to_do
—
array
An array of _GB_Dependency handle objects to queue.
Methods
public
- __construct()
- _css_href()
- add_inline_style()
- all_deps()
- do_item()
- get_file()
- in_default_dir()
- print_inline_style()
- reset()
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-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-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.