\GB_Locale
Class that loads the calendar locale.
Synopsis
- // members
- public $weekday;
- public $weekday_initial;
- public $weekday_abbrev;
- public $month;
- public $month_abbrev;
- public $meridiem;
- public string $text_direction = 'ltr';
- public $number_format;
- // methods
- public void init()
- public void rtl_src_admin_notice()
- public string get_weekday()
- public string get_weekday_initial()
- public string get_weekday_abbrev()
- public string get_month()
- public string get_month_abbrev()
- public string get_meridiem()
- public void register_globals()
- public GB_Locale __construct()
- public bool is_rtl()
- public void _strings_for_pot()
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
28 | 9 | error | The var keyword must not be used to declare a property |
28 | 9 | error | Visibility must be declared on property "$weekday" |
42 | 9 | error | The var keyword must not be used to declare a property |
42 | 9 | error | Visibility must be declared on property "$weekday_initial" |
51 | 9 | error | The var keyword must not be used to declare a property |
51 | 9 | error | Visibility must be declared on property "$weekday_abbrev" |
60 | 9 | error | The var keyword must not be used to declare a property |
60 | 9 | error | Visibility must be declared on property "$month" |
69 | 9 | error | The var keyword must not be used to declare a property |
69 | 9 | error | Visibility must be declared on property "$month_abbrev" |
80 | 9 | error | The var keyword must not be used to declare a property |
80 | 9 | error | Visibility must be declared on property "$meridiem" |
91 | 9 | error | The var keyword must not be used to declare a property |
91 | 9 | error | Visibility must be declared on property "$text_direction" |
97 | 9 | error | The var keyword must not be used to declare a property |
97 | 9 | error | Visibility must be declared on property "$number_format" |
109 | 5 | error | Visibility must be declared on method "init" |
122 | 131 | warning | Line exceeds 120 characters; contains 131 characters |
123 | 131 | warning | Line exceeds 120 characters; contains 131 characters |
124 | 132 | warning | Line exceeds 120 characters; contains 132 characters |
125 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
126 | 133 | warning | Line exceeds 120 characters; contains 133 characters |
127 | 131 | warning | Line exceeds 120 characters; contains 131 characters |
128 | 133 | warning | Line exceeds 120 characters; contains 133 characters |
159 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
160 | 136 | warning | Line exceeds 120 characters; contains 136 characters |
161 | 130 | warning | Line exceeds 120 characters; contains 130 characters |
162 | 130 | warning | Line exceeds 120 characters; contains 130 characters |
163 | 126 | warning | Line exceeds 120 characters; contains 126 characters |
164 | 128 | warning | Line exceeds 120 characters; contains 128 characters |
165 | 128 | warning | Line exceeds 120 characters; contains 128 characters |
166 | 132 | warning | Line exceeds 120 characters; contains 132 characters |
167 | 138 | warning | Line exceeds 120 characters; contains 138 characters |
168 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
169 | 136 | warning | Line exceeds 120 characters; contains 136 characters |
170 | 136 | warning | Line exceeds 120 characters; contains 136 characters |
194 | 9 | error | Inline control structures are not allowed |
197 | 9 | error | Inline control structures are not allowed |
207 | 5 | error | Method name "GB_Locale::rtl_src_admin_notice" is not in camel caps format |
207 | 5 | error | Visibility must be declared on method "rtl_src_admin_notice" |
209 | 138 | warning | Line exceeds 120 characters; contains 138 characters |
226 | 5 | error | Method name "GB_Locale::get_weekday" is not in camel caps format |
226 | 5 | error | Visibility must be declared on method "get_weekday" |
245 | 5 | error | Method name "GB_Locale::get_weekday_initial" is not in camel caps format |
245 | 5 | error | Visibility must be declared on method "get_weekday_initial" |
263 | 5 | error | Method name "GB_Locale::get_weekday_abbrev" is not in camel caps format |
263 | 5 | error | Visibility must be declared on method "get_weekday_abbrev" |
286 | 5 | error | Method name "GB_Locale::get_month" is not in camel caps format |
286 | 5 | error | Visibility must be declared on method "get_month" |
304 | 5 | error | Method name "GB_Locale::get_month_abbrev" is not in camel caps format |
304 | 5 | error | Visibility must be declared on method "get_month_abbrev" |
321 | 5 | error | Method name "GB_Locale::get_meridiem" is not in camel caps format |
321 | 5 | error | Visibility must be declared on method "get_meridiem" |
335 | 5 | error | Method name "GB_Locale::register_globals" is not in camel caps format |
335 | 5 | error | Visibility must be declared on method "register_globals" |
353 | 5 | error | Visibility must be declared on method "__construct" |
365 | 5 | error | Method name "GB_Locale::is_rtl" is not in camel caps format |
365 | 5 | error | Visibility must be declared on method "is_rtl" |
379 | 5 | warning | Method name "_strings_for_pot" should not be prefixed with an underscore to indicate visibility |
379 | 5 | error | Method name "GB_Locale::_strings_for_pot" is not in camel caps format |
379 | 5 | error | Visibility must be declared on method "_strings_for_pot" |
Members
public
- $meridiem
—
array
Stores the translated strings for 'am' and 'pm'. - $month
—
array
Stores the translated strings for the full month names. - $month_abbrev
—
array
Stores the translated strings for the abbreviated month names. - $number_format — array
- $text_direction
—
string
The text direction of the locale language. - $weekday
—
array
Stores the translated strings for the full weekday names. - $weekday_abbrev
—
array
Stores the translated strings for the abbreviated weekday names. - $weekday_initial
—
array
Stores the translated strings for the one character weekday names.
Methods
public
- __construct() — Constructor which calls helper methods to set up object variables
- _strings_for_pot() — Register date/time format strings for general POT.
- get_meridiem() — Retrieve translated version of meridiem string.
- get_month() — Retrieve the full translated month by month number.
- get_month_abbrev() — Retrieve translated version of month abbreviation string.
- get_weekday() — Retrieve the full translated weekday word.
- get_weekday_abbrev() — Retrieve the translated weekday abbreviation.
- get_weekday_initial() — Retrieve the translated weekday initial.
- init() — Sets up the translated strings and object properties.
- is_rtl() — Checks if current locale is RTL.
- register_globals() — Global variables are deprecated.
- rtl_src_admin_notice()
History
-
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-26T21:20:33+00:00 (commit #fa63be8)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
To all files added checking that class GB_Hooks are exists.
-
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-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-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.