mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Merge branch 'develop' of https://github.com/Orange-Management/phpOMS into develop
This commit is contained in:
commit
27c19f10af
|
|
@ -170,7 +170,7 @@ class Dispatcher
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
private function dispatchClosure(\Closure $controller, RequestAbstract $request, ResponseAbstract $response, $data = null)
|
||||
private function dispatchClosure(\Closure $controller, RequestAbstract $request, ResponseAbstract $response, $data = null) : array
|
||||
{
|
||||
return $controller($this->app, $request, $response, $data);
|
||||
}
|
||||
|
|
|
|||
5
Localization/Default/Ip/LICENSE.txt
Normal file
5
Localization/Default/Ip/LICENSE.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com. IP ranges are transformed from string representation to integer representation.
|
||||
|
||||
This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
|
||||
|
||||
This database incorporates GeoNames [http://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 3.0 License. To view a copy of this license, visit http://www.creativecommons.org/licenses/by/3.0/us/.
|
||||
122366
Localization/Default/Ip/ipGeoLocation.csv
Normal file
122366
Localization/Default/Ip/ipGeoLocation.csv
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
49
Localization/Default/en_US.json
Normal file
49
Localization/Default/en_US.json
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
"language": "EN",
|
||||
"country": "USA",
|
||||
"currency": "USD",
|
||||
"thousand": ",",
|
||||
"decimal": ".",
|
||||
"angle": "Degree",
|
||||
"temperature": "celsius",
|
||||
"weight": {
|
||||
"very_light" : "mg",
|
||||
"light" : "g",
|
||||
"medium" : "kg",
|
||||
"heavy" : "t",
|
||||
"very_heavy" : "t",
|
||||
},
|
||||
"speed": {
|
||||
"very_slow" : "ms",
|
||||
"slow" : "ms",
|
||||
"medium" : "kph",
|
||||
"fast" : "kph",
|
||||
"very_fast" : "mach",
|
||||
"sea" : "knot"
|
||||
},
|
||||
"length": {
|
||||
"very_short" : "mm",
|
||||
"short" : "cm",
|
||||
"medium" : "m",
|
||||
"long" : "km",
|
||||
"very_long" : "km",
|
||||
"sea": "mile"
|
||||
},
|
||||
"area": {
|
||||
"very_small" : "mm",
|
||||
"small" : "cm",
|
||||
"medium" : "m",
|
||||
"large" : "km",
|
||||
"very_large" : "ha"
|
||||
},
|
||||
"volume": {
|
||||
"very_small" : "ml",
|
||||
"small" : "ml",
|
||||
"medium" : "l",
|
||||
"large" : "m",
|
||||
"very_large" : "km",
|
||||
"teaspoon": "metric teaspoon",
|
||||
"tablespoon": "metric tablespoon",
|
||||
"glass": "metric glass"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,522 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Localization;
|
||||
|
||||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class ISO3166Enum extends Enum
|
||||
{
|
||||
const _AF = 'Afghanistan';
|
||||
|
||||
const _AX = 'Aland Islands';
|
||||
|
||||
const _AL = 'Albania';
|
||||
|
||||
const _DZ = 'Algeria';
|
||||
|
||||
const _AS = 'American Samoa';
|
||||
|
||||
const _AD = 'Andorra';
|
||||
|
||||
const _AO = 'Angola';
|
||||
|
||||
const _AI = 'Anguilla';
|
||||
|
||||
const _AQ = 'Antarctica';
|
||||
|
||||
const _AG = 'Antigua And Barbuda';
|
||||
|
||||
const _AR = 'Argentina';
|
||||
|
||||
const _AM = 'Armenia';
|
||||
|
||||
const _AW = 'Aruba';
|
||||
|
||||
const _AU = 'Australia';
|
||||
|
||||
const _AT = 'Austria';
|
||||
|
||||
const _AZ = 'Azerbaijan';
|
||||
|
||||
const _BS = 'Bahamas';
|
||||
|
||||
const _BH = 'Bahrain';
|
||||
|
||||
const _BD = 'Bangladesh';
|
||||
|
||||
const _BB = 'Barbados';
|
||||
|
||||
const _BY = 'Belarus';
|
||||
|
||||
const _BE = 'Belgium';
|
||||
|
||||
const _BZ = 'Belize';
|
||||
|
||||
const _BJ = 'Benin';
|
||||
|
||||
const _BM = 'Bermuda';
|
||||
|
||||
const _BT = 'Bhutan';
|
||||
|
||||
const _BO = 'Bolivia';
|
||||
|
||||
const _BA = 'Bosnia And Herzegovina';
|
||||
|
||||
const _BW = 'Botswana';
|
||||
|
||||
const _BV = 'Bouvet Island';
|
||||
|
||||
const _BR = 'Brazil';
|
||||
|
||||
const _IO = 'British Indian Ocean Territory';
|
||||
|
||||
const _BN = 'Brunei Darussalam';
|
||||
|
||||
const _BG = 'Bulgaria';
|
||||
|
||||
const _BF = 'Burkina Faso';
|
||||
|
||||
const _BI = 'Burundi';
|
||||
|
||||
const _KH = 'Cambodia';
|
||||
|
||||
const _CM = 'Cameroon';
|
||||
|
||||
const _CA = 'Canada';
|
||||
|
||||
const _CV = 'Cape Verde';
|
||||
|
||||
const _KY = 'Cayman Islands';
|
||||
|
||||
const _CF = 'Central African Republic';
|
||||
|
||||
const _TD = 'Chad';
|
||||
|
||||
const _CL = 'Chile';
|
||||
|
||||
const _CN = 'China';
|
||||
|
||||
const _CX = 'Christmas Island';
|
||||
|
||||
const _CC = 'Cocos (Keeling) Islands';
|
||||
|
||||
const _CO = 'Colombia';
|
||||
|
||||
const _KM = 'Comoros';
|
||||
|
||||
const _CG = 'Congo';
|
||||
|
||||
const _CD = 'Congo, Democratic Republic';
|
||||
|
||||
const _CK = 'Cook Islands';
|
||||
|
||||
const _CR = 'Costa Rica';
|
||||
|
||||
const _CI = 'Cote D\'Ivoire';
|
||||
|
||||
const _HR = 'Croatia';
|
||||
|
||||
const _CU = 'Cuba';
|
||||
|
||||
const _CY = 'Cyprus';
|
||||
|
||||
const _CZ = 'Czech Republic';
|
||||
|
||||
const _DK = 'Denmark';
|
||||
|
||||
const _DJ = 'Djibouti';
|
||||
|
||||
const _DM = 'Dominica';
|
||||
|
||||
const _DO = 'Dominican Republic';
|
||||
|
||||
const _EC = 'Ecuador';
|
||||
|
||||
const _EG = 'Egypt';
|
||||
|
||||
const _SV = 'El Salvador';
|
||||
|
||||
const _GQ = 'Equatorial Guinea';
|
||||
|
||||
const _ER = 'Eritrea';
|
||||
|
||||
const _EE = 'Estonia';
|
||||
|
||||
const _ET = 'Ethiopia';
|
||||
|
||||
const _FK = 'Falkland Islands (Malvinas)';
|
||||
|
||||
const _FO = 'Faroe Islands';
|
||||
|
||||
const _FJ = 'Fiji';
|
||||
|
||||
const _FI = 'Finland';
|
||||
|
||||
const _FR = 'France';
|
||||
|
||||
const _GF = 'French Guiana';
|
||||
|
||||
const _PF = 'French Polynesia';
|
||||
|
||||
const _TF = 'French Southern Territories';
|
||||
|
||||
const _GA = 'Gabon';
|
||||
|
||||
const _GM = 'Gambia';
|
||||
|
||||
const _GE = 'Georgia';
|
||||
|
||||
const _DE = 'Germany';
|
||||
|
||||
const _GH = 'Ghana';
|
||||
|
||||
const _GI = 'Gibraltar';
|
||||
|
||||
const _GR = 'Greece';
|
||||
|
||||
const _GL = 'Greenland';
|
||||
|
||||
const _GD = 'Grenada';
|
||||
|
||||
const _GP = 'Guadeloupe';
|
||||
|
||||
const _GU = 'Guam';
|
||||
|
||||
const _GT = 'Guatemala';
|
||||
|
||||
const _GG = 'Guernsey';
|
||||
|
||||
const _GN = 'Guinea';
|
||||
|
||||
const _GW = 'Guinea-Bissau';
|
||||
|
||||
const _GY = 'Guyana';
|
||||
|
||||
const _HT = 'Haiti';
|
||||
|
||||
const _HM = 'Heard Island & Mcdonald Islands';
|
||||
|
||||
const _VA = 'Holy See (Vatican City State)';
|
||||
|
||||
const _HN = 'Honduras';
|
||||
|
||||
const _HK = 'Hong Kong';
|
||||
|
||||
const _HU = 'Hungary';
|
||||
|
||||
const _IS = 'Iceland';
|
||||
|
||||
const _IN = 'India';
|
||||
|
||||
const _ID = 'Indonesia';
|
||||
|
||||
const _IR = 'Iran, Islamic Republic Of';
|
||||
|
||||
const _IQ = 'Iraq';
|
||||
|
||||
const _IE = 'Ireland';
|
||||
|
||||
const _IM = 'Isle Of Man';
|
||||
|
||||
const _IL = 'Israel';
|
||||
|
||||
const _IT = 'Italy';
|
||||
|
||||
const _JM = 'Jamaica';
|
||||
|
||||
const _JP = 'Japan';
|
||||
|
||||
const _JE = 'Jersey';
|
||||
|
||||
const _JO = 'Jordan';
|
||||
|
||||
const _KZ = 'Kazakhstan';
|
||||
|
||||
const _KE = 'Kenya';
|
||||
|
||||
const _KI = 'Kiribati';
|
||||
|
||||
const _KR = 'Korea';
|
||||
|
||||
const _KW = 'Kuwait';
|
||||
|
||||
const _KG = 'Kyrgyzstan';
|
||||
|
||||
const _LA = 'Lao People\'s Democratic Republic';
|
||||
|
||||
const _LV = 'Latvia';
|
||||
|
||||
const _LB = 'Lebanon';
|
||||
|
||||
const _LS = 'Lesotho';
|
||||
|
||||
const _LR = 'Liberia';
|
||||
|
||||
const _LY = 'Libyan Arab Jamahiriya';
|
||||
|
||||
const _LI = 'Liechtenstein';
|
||||
|
||||
const _LT = 'Lithuania';
|
||||
|
||||
const _LU = 'Luxembourg';
|
||||
|
||||
const _MO = 'Macao';
|
||||
|
||||
const _MK = 'Macedonia';
|
||||
|
||||
const _MG = 'Madagascar';
|
||||
|
||||
const _MW = 'Malawi';
|
||||
|
||||
const _MY = 'Malaysia';
|
||||
|
||||
const _MV = 'Maldives';
|
||||
|
||||
const _ML = 'Mali';
|
||||
|
||||
const _MT = 'Malta';
|
||||
|
||||
const _MH = 'Marshall Islands';
|
||||
|
||||
const _MQ = 'Martinique';
|
||||
|
||||
const _MR = 'Mauritania';
|
||||
|
||||
const _MU = 'Mauritius';
|
||||
|
||||
const _YT = 'Mayotte';
|
||||
|
||||
const _MX = 'Mexico';
|
||||
|
||||
const _FM = 'Micronesia, Federated States Of';
|
||||
|
||||
const _MD = 'Moldova';
|
||||
|
||||
const _MC = 'Monaco';
|
||||
|
||||
const _MN = 'Mongolia';
|
||||
|
||||
const _ME = 'Montenegro';
|
||||
|
||||
const _MS = 'Montserrat';
|
||||
|
||||
const _MA = 'Morocco';
|
||||
|
||||
const _MZ = 'Mozambique';
|
||||
|
||||
const _MM = 'Myanmar';
|
||||
|
||||
const _NA = 'Namibia';
|
||||
|
||||
const _NR = 'Nauru';
|
||||
|
||||
const _NP = 'Nepal';
|
||||
|
||||
const _NL = 'Netherlands';
|
||||
|
||||
const _AN = 'Netherlands Antilles';
|
||||
|
||||
const _NC = 'New Caledonia';
|
||||
|
||||
const _NZ = 'New Zealand';
|
||||
|
||||
const _NI = 'Nicaragua';
|
||||
|
||||
const _NE = 'Niger';
|
||||
|
||||
const _NG = 'Nigeria';
|
||||
|
||||
const _NU = 'Niue';
|
||||
|
||||
const _NF = 'Norfolk Island';
|
||||
|
||||
const _MP = 'Northern Mariana Islands';
|
||||
|
||||
const _NO = 'Norway';
|
||||
|
||||
const _OM = 'Oman';
|
||||
|
||||
const _PK = 'Pakistan';
|
||||
|
||||
const _PW = 'Palau';
|
||||
|
||||
const _PS = 'Palestinian Territory, Occupied';
|
||||
|
||||
const _PA = 'Panama';
|
||||
|
||||
const _PG = 'Papua New Guinea';
|
||||
|
||||
const _PY = 'Paraguay';
|
||||
|
||||
const _PE = 'Peru';
|
||||
|
||||
const _PH = 'Philippines';
|
||||
|
||||
const _PN = 'Pitcairn';
|
||||
|
||||
const _PL = 'Poland';
|
||||
|
||||
const _PT = 'Portugal';
|
||||
|
||||
const _PR = 'Puerto Rico';
|
||||
|
||||
const _QA = 'Qatar';
|
||||
|
||||
const _RE = 'Reunion';
|
||||
|
||||
const _RO = 'Romania';
|
||||
|
||||
const _RU = 'Russian Federation';
|
||||
|
||||
const _RW = 'Rwanda';
|
||||
|
||||
const _BL = 'Saint Barthelemy';
|
||||
|
||||
const _SH = 'Saint Helena';
|
||||
|
||||
const _KN = 'Saint Kitts And Nevis';
|
||||
|
||||
const _LC = 'Saint Lucia';
|
||||
|
||||
const _MF = 'Saint Martin';
|
||||
|
||||
const _PM = 'Saint Pierre And Miquelon';
|
||||
|
||||
const _VC = 'Saint Vincent And Grenadines';
|
||||
|
||||
const _WS = 'Samoa';
|
||||
|
||||
const _SM = 'San Marino';
|
||||
|
||||
const _ST = 'Sao Tome And Principe';
|
||||
|
||||
const _SA = 'Saudi Arabia';
|
||||
|
||||
const _SN = 'Senegal';
|
||||
|
||||
const _RS = 'Serbia';
|
||||
|
||||
const _SC = 'Seychelles';
|
||||
|
||||
const _SL = 'Sierra Leone';
|
||||
|
||||
const _SG = 'Singapore';
|
||||
|
||||
const _SK = 'Slovakia';
|
||||
|
||||
const _SI = 'Slovenia';
|
||||
|
||||
const _SB = 'Solomon Islands';
|
||||
|
||||
const _SO = 'Somalia';
|
||||
|
||||
const _ZA = 'South Africa';
|
||||
|
||||
const _GS = 'South Georgia And Sandwich Isl.';
|
||||
|
||||
const _ES = 'Spain';
|
||||
|
||||
const _LK = 'Sri Lanka';
|
||||
|
||||
const _SD = 'Sudan';
|
||||
|
||||
const _SR = 'Suriname';
|
||||
|
||||
const _SJ = 'Svalbard And Jan Mayen';
|
||||
|
||||
const _SZ = 'Swaziland';
|
||||
|
||||
const _SE = 'Sweden';
|
||||
|
||||
const _CH = 'Switzerland';
|
||||
|
||||
const _SY = 'Syrian Arab Republic';
|
||||
|
||||
const _TW = 'Taiwan';
|
||||
|
||||
const _TJ = 'Tajikistan';
|
||||
|
||||
const _TZ = 'Tanzania';
|
||||
|
||||
const _TH = 'Thailand';
|
||||
|
||||
const _TL = 'Timor-Leste';
|
||||
|
||||
const _TG = 'Togo';
|
||||
|
||||
const _TK = 'Tokelau';
|
||||
|
||||
const _TO = 'Tonga';
|
||||
|
||||
const _TT = 'Trinidad And Tobago';
|
||||
|
||||
const _TN = 'Tunisia';
|
||||
|
||||
const _TR = 'Turkey';
|
||||
|
||||
const _TM = 'Turkmenistan';
|
||||
|
||||
const _TC = 'Turks And Caicos Islands';
|
||||
|
||||
const _TV = 'Tuvalu';
|
||||
|
||||
const _UG = 'Uganda';
|
||||
|
||||
const _UA = 'Ukraine';
|
||||
|
||||
const _AE = 'United Arab Emirates';
|
||||
|
||||
const _GB = 'United Kingdom';
|
||||
|
||||
const _US = 'United States';
|
||||
|
||||
const _UM = 'United States Outlying Islands';
|
||||
|
||||
const _UY = 'Uruguay';
|
||||
|
||||
const _UZ = 'Uzbekistan';
|
||||
|
||||
const _VU = 'Vanuatu';
|
||||
|
||||
const _VE = 'Venezuela';
|
||||
|
||||
const _VN = 'Viet Nam';
|
||||
|
||||
const _VG = 'Virgin Islands, British';
|
||||
|
||||
const _VI = 'Virgin Islands, U.S.';
|
||||
|
||||
const _WF = 'Wallis And Futuna';
|
||||
|
||||
const _EH = 'Western Sahara';
|
||||
|
||||
const _YE = 'Yemen';
|
||||
|
||||
const _ZM = 'Zambia';
|
||||
|
||||
const _ZW = 'Zimbabwe';
|
||||
}
|
||||
|
|
@ -1,280 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Localization;
|
||||
|
||||
use phpOMS\Datatypes\EnumArray;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class ISO3166EnumArray extends EnumArray
|
||||
{
|
||||
protected static $constants = [
|
||||
'af' => 'Afghanistan',
|
||||
'ax' => 'Aland Islands',
|
||||
'al' => 'Albania',
|
||||
'dz' => 'Algeria',
|
||||
'as' => 'American Samoa',
|
||||
'ad' => 'Andorra',
|
||||
'ao' => 'Angola',
|
||||
'ai' => 'Anguilla',
|
||||
'aq' => 'Antarctica',
|
||||
'ag' => 'Antigua And Barbuda',
|
||||
'ar' => 'Argentina',
|
||||
'am' => 'Armenia',
|
||||
'aw' => 'Aruba',
|
||||
'au' => 'Australia',
|
||||
'at' => 'Austria',
|
||||
'az' => 'Azerbaijan',
|
||||
'bs' => 'Bahamas',
|
||||
'bh' => 'Bahrain',
|
||||
'bd' => 'Bangladesh',
|
||||
'bb' => 'Barbados',
|
||||
'by' => 'Belarus',
|
||||
'be' => 'Belgium',
|
||||
'bz' => 'Belize',
|
||||
'bj' => 'Benin',
|
||||
'bm' => 'Bermuda',
|
||||
'bt' => 'Bhutan',
|
||||
'bo' => 'Bolivia',
|
||||
'ba' => 'Bosnia And Herzegovina',
|
||||
'bw' => 'Botswana',
|
||||
'bv' => 'Bouvet Island',
|
||||
'br' => 'Brazil',
|
||||
'io' => 'British Indian Ocean Territory',
|
||||
'bn' => 'Brunei Darussalam',
|
||||
'bg' => 'Bulgaria',
|
||||
'bf' => 'Burkina Faso',
|
||||
'bi' => 'Burundi',
|
||||
'kh' => 'Cambodia',
|
||||
'cm' => 'Cameroon',
|
||||
'ca' => 'Canada',
|
||||
'cv' => 'Cape Verde',
|
||||
'ky' => 'Cayman Islands',
|
||||
'cf' => 'Central African Republic',
|
||||
'td' => 'Chad',
|
||||
'cl' => 'Chile',
|
||||
'cn' => 'China',
|
||||
'cx' => 'Christmas Island',
|
||||
'cc' => 'Cocos (Keeling) Islands',
|
||||
'co' => 'Colombia',
|
||||
'km' => 'Comoros',
|
||||
'cg' => 'Congo',
|
||||
'cd' => 'Congo, Democratic Republic',
|
||||
'ck' => 'Cook Islands',
|
||||
'cr' => 'Costa Rica',
|
||||
'ci' => 'Cote D\'Ivoire',
|
||||
'hr' => 'Croatia',
|
||||
'cu' => 'Cuba',
|
||||
'cy' => 'Cyprus',
|
||||
'cz' => 'Czech Republic',
|
||||
'dk' => 'Denmark',
|
||||
'dj' => 'Djibouti',
|
||||
'dm' => 'Dominica',
|
||||
'do' => 'Dominican Republic',
|
||||
'ec' => 'Ecuador',
|
||||
'eg' => 'Egypt',
|
||||
'sv' => 'El Salvador',
|
||||
'gq' => 'Equatorial Guinea',
|
||||
'er' => 'Eritrea',
|
||||
'ee' => 'Estonia',
|
||||
'et' => 'Ethiopia',
|
||||
'fk' => 'Falkland Islands (Malvinas)',
|
||||
'fo' => 'Faroe Islands',
|
||||
'fj' => 'Fiji',
|
||||
'fi' => 'Finland',
|
||||
'fr' => 'France',
|
||||
'gf' => 'French Guiana',
|
||||
'pf' => 'French Polynesia',
|
||||
'tf' => 'French Southern Territories',
|
||||
'ga' => 'Gabon',
|
||||
'gm' => 'Gambia',
|
||||
'ge' => 'Georgia',
|
||||
'de' => 'Germany',
|
||||
'gh' => 'Ghana',
|
||||
'gi' => 'Gibraltar',
|
||||
'gr' => 'Greece',
|
||||
'gl' => 'Greenland',
|
||||
'gd' => 'Grenada',
|
||||
'gp' => 'Guadeloupe',
|
||||
'gu' => 'Guam',
|
||||
'gt' => 'Guatemala',
|
||||
'gg' => 'Guernsey',
|
||||
'gn' => 'Guinea',
|
||||
'gw' => 'Guinea-Bissau',
|
||||
'gy' => 'Guyana',
|
||||
'ht' => 'Haiti',
|
||||
'hm' => 'Heard Island & Mcdonald Islands',
|
||||
'va' => 'Holy See (Vatican City State)',
|
||||
'hn' => 'Honduras',
|
||||
'hk' => 'Hong Kong',
|
||||
'hu' => 'Hungary',
|
||||
'is' => 'Iceland',
|
||||
'in' => 'India',
|
||||
'id' => 'Indonesia',
|
||||
'ir' => 'Iran, Islamic Republic Of',
|
||||
'iq' => 'Iraq',
|
||||
'ie' => 'Ireland',
|
||||
'im' => 'Isle Of Man',
|
||||
'il' => 'Israel',
|
||||
'it' => 'Italy',
|
||||
'jm' => 'Jamaica',
|
||||
'jp' => 'Japan',
|
||||
'je' => 'Jersey',
|
||||
'jo' => 'Jordan',
|
||||
'kz' => 'Kazakhstan',
|
||||
'ke' => 'Kenya',
|
||||
'ki' => 'Kiribati',
|
||||
'kr' => 'Korea',
|
||||
'kw' => 'Kuwait',
|
||||
'kg' => 'Kyrgyzstan',
|
||||
'la' => 'Lao People\'s Democratic Republic',
|
||||
'lv' => 'Latvia',
|
||||
'lb' => 'Lebanon',
|
||||
'ls' => 'Lesotho',
|
||||
'lr' => 'Liberia',
|
||||
'ly' => 'Libyan Arab Jamahiriya',
|
||||
'li' => 'Liechtenstein',
|
||||
'lt' => 'Lithuania',
|
||||
'lu' => 'Luxembourg',
|
||||
'mo' => 'Macao',
|
||||
'mk' => 'Macedonia',
|
||||
'mg' => 'Madagascar',
|
||||
'mw' => 'Malawi',
|
||||
'my' => 'Malaysia',
|
||||
'mv' => 'Maldives',
|
||||
'ml' => 'Mali',
|
||||
'mt' => 'Malta',
|
||||
'mh' => 'Marshall Islands',
|
||||
'mq' => 'Martinique',
|
||||
'mr' => 'Mauritania',
|
||||
'mu' => 'Mauritius',
|
||||
'yt' => 'Mayotte',
|
||||
'mx' => 'Mexico',
|
||||
'fm' => 'Micronesia, Federated States Of',
|
||||
'md' => 'Moldova',
|
||||
'mc' => 'Monaco',
|
||||
'mn' => 'Mongolia',
|
||||
'me' => 'Montenegro',
|
||||
'ms' => 'Montserrat',
|
||||
'ma' => 'Morocco',
|
||||
'mz' => 'Mozambique',
|
||||
'mm' => 'Myanmar',
|
||||
'na' => 'Namibia',
|
||||
'nr' => 'Nauru',
|
||||
'np' => 'Nepal',
|
||||
'nl' => 'Netherlands',
|
||||
'an' => 'Netherlands Antilles',
|
||||
'nc' => 'New Caledonia',
|
||||
'nz' => 'New Zealand',
|
||||
'ni' => 'Nicaragua',
|
||||
'ne' => 'Niger',
|
||||
'ng' => 'Nigeria',
|
||||
'nu' => 'Niue',
|
||||
'nf' => 'Norfolk Island',
|
||||
'mp' => 'Northern Mariana Islands',
|
||||
'no' => 'Norway',
|
||||
'om' => 'Oman',
|
||||
'pk' => 'Pakistan',
|
||||
'pw' => 'Palau',
|
||||
'ps' => 'Palestinian Territory, Occupied',
|
||||
'pa' => 'Panama',
|
||||
'pg' => 'Papua New Guinea',
|
||||
'py' => 'Paraguay',
|
||||
'pe' => 'Peru',
|
||||
'ph' => 'Philippines',
|
||||
'pn' => 'Pitcairn',
|
||||
'pl' => 'Poland',
|
||||
'pt' => 'Portugal',
|
||||
'pr' => 'Puerto Rico',
|
||||
'qa' => 'Qatar',
|
||||
're' => 'Reunion',
|
||||
'ro' => 'Romania',
|
||||
'ru' => 'Russian Federation',
|
||||
'rw' => 'Rwanda',
|
||||
'bl' => 'Saint Barthelemy',
|
||||
'sh' => 'Saint Helena',
|
||||
'kn' => 'Saint Kitts And Nevis',
|
||||
'lc' => 'Saint Lucia',
|
||||
'mf' => 'Saint Martin',
|
||||
'pm' => 'Saint Pierre And Miquelon',
|
||||
'vc' => 'Saint Vincent And Grenadines',
|
||||
'ws' => 'Samoa',
|
||||
'sm' => 'San Marino',
|
||||
'st' => 'Sao Tome And Principe',
|
||||
'sa' => 'Saudi Arabia',
|
||||
'sn' => 'Senegal',
|
||||
'rs' => 'Serbia',
|
||||
'sc' => 'Seychelles',
|
||||
'sl' => 'Sierra Leone',
|
||||
'sg' => 'Singapore',
|
||||
'sk' => 'Slovakia',
|
||||
'si' => 'Slovenia',
|
||||
'sb' => 'Solomon Islands',
|
||||
'so' => 'Somalia',
|
||||
'za' => 'South Africa',
|
||||
'gs' => 'South Georgia And Sandwich Isl.',
|
||||
'es' => 'Spain',
|
||||
'lk' => 'Sri Lanka',
|
||||
'sd' => 'Sudan',
|
||||
'sr' => 'Suriname',
|
||||
'sj' => 'Svalbard And Jan Mayen',
|
||||
'sz' => 'Swaziland',
|
||||
'se' => 'Sweden',
|
||||
'ch' => 'Switzerland',
|
||||
'sy' => 'Syrian Arab Republic',
|
||||
'tw' => 'Taiwan',
|
||||
'tj' => 'Tajikistan',
|
||||
'tz' => 'Tanzania',
|
||||
'th' => 'Thailand',
|
||||
'tl' => 'Timor-Leste',
|
||||
'tg' => 'Togo',
|
||||
'tk' => 'Tokelau',
|
||||
'to' => 'Tonga',
|
||||
'tt' => 'Trinidad And Tobago',
|
||||
'tn' => 'Tunisia',
|
||||
'tr' => 'Turkey',
|
||||
'tm' => 'Turkmenistan',
|
||||
'tc' => 'Turks And Caicos Islands',
|
||||
'tv' => 'Tuvalu',
|
||||
'ug' => 'Uganda',
|
||||
'ua' => 'Ukraine',
|
||||
'ae' => 'United Arab Emirates',
|
||||
'gb' => 'United Kingdom',
|
||||
'us' => 'United States',
|
||||
'um' => 'United States Outlying Islands',
|
||||
'uy' => 'Uruguay',
|
||||
'uz' => 'Uzbekistan',
|
||||
'vu' => 'Vanuatu',
|
||||
've' => 'Venezuela',
|
||||
'vn' => 'Viet Nam',
|
||||
'vg' => 'Virgin Islands, British',
|
||||
'vi' => 'Virgin Islands, U.S.',
|
||||
'wf' => 'Wallis And Futuna',
|
||||
'eh' => 'Western Sahara',
|
||||
'ye' => 'Yemen',
|
||||
'zm' => 'Zambia',
|
||||
'zw' => 'Zimbabwe',
|
||||
];
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ namespace phpOMS\Localization;
|
|||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
* Country names ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace phpOMS\Localization;
|
|||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
* Currency codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
|
|
@ -31,230 +31,117 @@ use phpOMS\Datatypes\Enum;
|
|||
class ISO4217CharEnum extends Enum
|
||||
{
|
||||
const C_ALL = 'ALL';
|
||||
|
||||
const C_AFN = 'AFN';
|
||||
|
||||
const C_ARS = 'ARS';
|
||||
|
||||
const C_AWG = 'AWG';
|
||||
|
||||
const C_AUD = 'AUD';
|
||||
|
||||
const C_AZN = 'AZN';
|
||||
|
||||
const C_BSD = 'BSD';
|
||||
|
||||
const C_BBD = 'BBD';
|
||||
|
||||
const C_BYR = 'BYR';
|
||||
|
||||
const C_BZD = 'BZD';
|
||||
|
||||
const C_BMD = 'BMD';
|
||||
|
||||
const C_BOB = 'BOB';
|
||||
|
||||
const C_BAM = 'BAM';
|
||||
|
||||
const C_BWP = 'BWP';
|
||||
|
||||
const C_BGN = 'BGN';
|
||||
|
||||
const C_BRL = 'BRL';
|
||||
|
||||
const C_BND = 'BND';
|
||||
|
||||
const C_KHR = 'KHR';
|
||||
|
||||
const C_CAD = 'CAD';
|
||||
|
||||
const C_KYD = 'KYD';
|
||||
|
||||
const C_CLP = 'CLP';
|
||||
|
||||
const C_CNY = 'CNY';
|
||||
|
||||
const C_COP = 'COP';
|
||||
|
||||
const C_CRC = 'CRC';
|
||||
|
||||
const C_HRK = 'HRK';
|
||||
|
||||
const C_CUP = 'CUP';
|
||||
|
||||
const C_CZK = 'CZK';
|
||||
|
||||
const C_DKK = 'DKK';
|
||||
|
||||
const C_DOP = 'DOP';
|
||||
|
||||
const C_XCD = 'XCD';
|
||||
|
||||
const C_EGP = 'EGP';
|
||||
|
||||
const C_SVC = 'SVC';
|
||||
|
||||
const C_EEK = 'EEK';
|
||||
|
||||
const C_EUR = 'EUR';
|
||||
|
||||
const C_FKP = 'FKP';
|
||||
|
||||
const C_FJD = 'FJD';
|
||||
|
||||
const C_GHC = 'GHC';
|
||||
|
||||
const C_GIP = 'GIP';
|
||||
|
||||
const C_GTQ = 'GTQ';
|
||||
|
||||
const C_GGP = 'GGP';
|
||||
|
||||
const C_GYD = 'GYD';
|
||||
|
||||
const C_HNL = 'HNL';
|
||||
|
||||
const C_HKD = 'HKD';
|
||||
|
||||
const C_HUF = 'HUF';
|
||||
|
||||
const C_ISK = 'ISK';
|
||||
|
||||
const C_INR = 'INR';
|
||||
|
||||
const C_IDR = 'IDR';
|
||||
|
||||
const C_IRR = 'IRR';
|
||||
|
||||
const C_IMP = 'IMP';
|
||||
|
||||
const C_ILS = 'ILS';
|
||||
|
||||
const C_JMD = 'JMD';
|
||||
|
||||
const C_JPY = 'JPY';
|
||||
|
||||
const C_JEP = 'JEP';
|
||||
|
||||
const C_KZT = 'KZT';
|
||||
|
||||
const C_KES = 'KES';
|
||||
|
||||
const C_KGS = 'KGS';
|
||||
|
||||
const C_LAK = 'LAK';
|
||||
|
||||
const C_LVL = 'LVL';
|
||||
|
||||
const C_LBP = 'LBP';
|
||||
|
||||
const C_LRD = 'LRD';
|
||||
|
||||
const C_LTL = 'LTL';
|
||||
|
||||
const C_MKD = 'MKD';
|
||||
|
||||
const C_MYR = 'MYR';
|
||||
|
||||
const C_MUR = 'MUR';
|
||||
|
||||
const C_MXN = 'MXN';
|
||||
|
||||
const C_MNT = 'MNT';
|
||||
|
||||
const C_MZN = 'MZN';
|
||||
|
||||
const C_NAD = 'NAD';
|
||||
|
||||
const C_NPR = 'NPR';
|
||||
|
||||
const C_ANG = 'ANG';
|
||||
|
||||
const C_NZD = 'NZD';
|
||||
|
||||
const C_NIO = 'NIO';
|
||||
|
||||
const C_NGN = 'NGN';
|
||||
|
||||
const C_KPW = 'KPW';
|
||||
|
||||
const C_NOK = 'NOK';
|
||||
|
||||
const C_OMR = 'OMR';
|
||||
|
||||
const C_PKR = 'PKR';
|
||||
|
||||
const C_PAB = 'PAB';
|
||||
|
||||
const C_PYG = 'PYG';
|
||||
|
||||
const C_PEN = 'PEN';
|
||||
|
||||
const C_PHP = 'PHP';
|
||||
|
||||
const C_PLN = 'PLN';
|
||||
|
||||
const C_QAR = 'QAR';
|
||||
|
||||
const C_RON = 'RON';
|
||||
|
||||
const C_RUB = 'RUB';
|
||||
|
||||
const C_SHP = 'SHP';
|
||||
|
||||
const C_SAR = 'SAR';
|
||||
|
||||
const C_RSD = 'RSD';
|
||||
|
||||
const C_SCR = 'SCR';
|
||||
|
||||
const C_SGD = 'SGD';
|
||||
|
||||
const C_SBD = 'SBD';
|
||||
|
||||
const C_SOS = 'SOS';
|
||||
|
||||
const C_ZAR = 'ZAR';
|
||||
|
||||
const C_KRW = 'KRW';
|
||||
|
||||
const C_LKR = 'LKR';
|
||||
|
||||
const C_SEK = 'SEK';
|
||||
|
||||
const C_CHF = 'CHF';
|
||||
|
||||
const C_SRD = 'SRD';
|
||||
|
||||
const C_SYP = 'SYP';
|
||||
|
||||
const C_TWD = 'TWD';
|
||||
|
||||
const C_THB = 'THB';
|
||||
|
||||
const C_TTD = 'TTD';
|
||||
|
||||
const C_TRY = 'TRY';
|
||||
|
||||
const C_TRL = 'TRL';
|
||||
|
||||
const C_TVD = 'TVD';
|
||||
|
||||
const C_UAH = 'UAH';
|
||||
|
||||
const C_GBP = 'GBP';
|
||||
|
||||
const C_USD = 'USD';
|
||||
|
||||
const C_UYU = 'UYU';
|
||||
|
||||
const C_UZS = 'UZS';
|
||||
|
||||
const C_VEF = 'VEF';
|
||||
|
||||
const C_VND = 'VND';
|
||||
|
||||
const C_YER = 'YER';
|
||||
|
||||
const C_ZWD = 'ZWD';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace phpOMS\Localization;
|
|||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
* Currency decimals ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace phpOMS\Localization;
|
|||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
* Currency names ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
|
|
@ -31,230 +31,117 @@ use phpOMS\Datatypes\Enum;
|
|||
class ISO4217Enum extends Enum
|
||||
{
|
||||
const C_ALL = 'Albania, Leke';
|
||||
|
||||
const C_AFN = 'Afghanistan, Afghanis';
|
||||
|
||||
const C_ARS = 'Argentina, Pesos';
|
||||
|
||||
const C_AWG = 'Aruba, Guilders';
|
||||
|
||||
const C_AUD = 'Australia, Dollars';
|
||||
|
||||
const C_AZN = 'Azerbaijan, New Manats';
|
||||
|
||||
const C_BSD = 'Bahamas, Dollars';
|
||||
|
||||
const C_BBD = 'Barbados, Dollars';
|
||||
|
||||
const C_BYR = 'Belarus, Rubles';
|
||||
|
||||
const C_BZD = 'Belize, Dollars';
|
||||
|
||||
const C_BMD = 'Bermuda, Dollars';
|
||||
|
||||
const C_BOB = 'Bolivia, Bolivianos';
|
||||
|
||||
const C_BAM = 'Bosnia and Herzegovina, Convertible Marka';
|
||||
|
||||
const C_BWP = 'Botswana, Pulas';
|
||||
|
||||
const C_BGN = 'Bulgaria, Leva';
|
||||
|
||||
const C_BRL = 'Brazil, Reais';
|
||||
|
||||
const C_BND = 'Brunei Darussalam, Dollars';
|
||||
|
||||
const C_KHR = 'Cambodia, Riels';
|
||||
|
||||
const C_CAD = 'Canada, Dollars';
|
||||
|
||||
const C_KYD = 'Cayman Islands, Dollars';
|
||||
|
||||
const C_CLP = 'Chile, Pesos';
|
||||
|
||||
const C_CNY = 'China, Yuan Renminbi';
|
||||
|
||||
const C_COP = 'Colombia, Pesos';
|
||||
|
||||
const C_CRC = 'Costa Rica, Colón';
|
||||
|
||||
const C_HRK = 'Croatia, Kuna';
|
||||
|
||||
const C_CUP = 'Cuba, Pesos';
|
||||
|
||||
const C_CZK = 'Czech Republic, Koruny';
|
||||
|
||||
const C_DKK = 'Denmark, Kroner';
|
||||
|
||||
const C_DOP = 'Dominican Republic, Pesos';
|
||||
|
||||
const C_XCD = 'East Caribbean, Dollars';
|
||||
|
||||
const C_EGP = 'Egypt, Pounds';
|
||||
|
||||
const C_SVC = 'El Salvador, Colones';
|
||||
|
||||
const C_EEK = 'Estonia, Krooni';
|
||||
|
||||
const C_EUR = 'Euro';
|
||||
|
||||
const C_FKP = 'Falkland Islands, Pounds';
|
||||
|
||||
const C_FJD = 'Fiji, Dollars';
|
||||
|
||||
const C_GHC = 'Ghana, Cedis';
|
||||
|
||||
const C_GIP = 'Gibraltar, Pounds';
|
||||
|
||||
const C_GTQ = 'Guatemala, Quetzales';
|
||||
|
||||
const C_GGP = 'Guernsey, Pounds';
|
||||
|
||||
const C_GYD = 'Guyana, Dollars';
|
||||
|
||||
const C_HNL = 'Honduras, Lempiras';
|
||||
|
||||
const C_HKD = 'Hong Kong, Dollars';
|
||||
|
||||
const C_HUF = 'Hungary, Forint';
|
||||
|
||||
const C_ISK = 'Iceland, Kronur';
|
||||
|
||||
const C_INR = 'India, Rupees';
|
||||
|
||||
const C_IDR = 'Indonesia, Rupiahs';
|
||||
|
||||
const C_IRR = 'Iran, Rials';
|
||||
|
||||
const C_IMP = 'Isle of Man, Pounds';
|
||||
|
||||
const C_ILS = 'Israel, New Shekels';
|
||||
|
||||
const C_JMD = 'Jamaica, Dollars';
|
||||
|
||||
const C_JPY = 'Japan, Yen';
|
||||
|
||||
const C_JEP = 'Jersey, Pounds';
|
||||
|
||||
const C_KZT = 'Kazakhstan, Tenge';
|
||||
|
||||
const C_KES = 'Kenyan Shilling';
|
||||
|
||||
const C_KGS = 'Kyrgyzstan, Soms';
|
||||
|
||||
const C_LAK = 'Laos, Kips';
|
||||
|
||||
const C_LVL = 'Latvia, Lati';
|
||||
|
||||
const C_LBP = 'Lebanon, Pounds';
|
||||
|
||||
const C_LRD = 'Liberia, Dollars';
|
||||
|
||||
const C_LTL = 'Lithuania, Litai';
|
||||
|
||||
const C_MKD = 'Macedonia, Denars';
|
||||
|
||||
const C_MYR = 'Malaysia, Ringgits';
|
||||
|
||||
const C_MUR = 'Mauritius, Rupees';
|
||||
|
||||
const C_MXN = 'Mexico, Pesos';
|
||||
|
||||
const C_MNT = 'Mongolia, Tugriks';
|
||||
|
||||
const C_MZN = 'Mozambique, Meticais';
|
||||
|
||||
const C_NAD = 'Namibia, Dollars';
|
||||
|
||||
const C_NPR = 'Nepal, Rupees';
|
||||
|
||||
const C_ANG = 'Netherlands Antilles, Guilders';
|
||||
|
||||
const C_NZD = 'New Zealand, Dollars';
|
||||
|
||||
const C_NIO = 'Nicaragua, Cordobas';
|
||||
|
||||
const C_NGN = 'Nigeria, Nairas';
|
||||
|
||||
const C_KPW = 'North Korea, Won';
|
||||
|
||||
const C_NOK = 'Norway, Krone';
|
||||
|
||||
const C_OMR = 'Oman, Rials';
|
||||
|
||||
const C_PKR = 'Pakistan, Rupees';
|
||||
|
||||
const C_PAB = 'Panama, Balboa';
|
||||
|
||||
const C_PYG = 'Paraguay, Guarani';
|
||||
|
||||
const C_PEN = 'Peru, Nuevos Soles';
|
||||
|
||||
const C_PHP = 'Philippines, Pesos';
|
||||
|
||||
const C_PLN = 'Poland, Zlotych';
|
||||
|
||||
const C_QAR = 'Qatar, Rials';
|
||||
|
||||
const C_RON = 'Romania, New Lei';
|
||||
|
||||
const C_RUB = 'Russia, Rubles';
|
||||
|
||||
const C_SHP = 'Saint Helena, Pounds';
|
||||
|
||||
const C_SAR = 'Saudi Arabia, Riyals';
|
||||
|
||||
const C_RSD = 'Serbia, Dinars';
|
||||
|
||||
const C_SCR = 'Seychelles, Rupees';
|
||||
|
||||
const C_SGD = 'Singapore, Dollars';
|
||||
|
||||
const C_SBD = 'Solomon Islands, Dollars';
|
||||
|
||||
const C_SOS = 'Somalia, Shillings';
|
||||
|
||||
const C_ZAR = 'South Africa, Rand';
|
||||
|
||||
const C_KRW = 'South Korea, Won';
|
||||
|
||||
const C_LKR = 'Sri Lanka, Rupees';
|
||||
|
||||
const C_SEK = 'Sweden, Kronor';
|
||||
|
||||
const C_CHF = 'Switzerland, Francs';
|
||||
|
||||
const C_SRD = 'Suriname, Dollars';
|
||||
|
||||
const C_SYP = 'Syria, Pounds';
|
||||
|
||||
const C_TWD = 'Taiwan, New Dollars';
|
||||
|
||||
const C_THB = 'Thailand, Baht';
|
||||
|
||||
const C_TTD = 'Trinidad and Tobago, Dollars';
|
||||
|
||||
const C_TRY = 'Turkey, Lira';
|
||||
|
||||
const C_TRL = 'Turkey, Liras';
|
||||
|
||||
const C_TVD = 'Tuvalu, Dollars';
|
||||
|
||||
const C_UAH = 'Ukraine, Hryvnia';
|
||||
|
||||
const C_GBP = 'United Kingdom, Pounds';
|
||||
|
||||
const C_USD = 'United States of America, Dollars';
|
||||
|
||||
const C_UYU = 'Uruguay, Pesos';
|
||||
|
||||
const C_UZS = 'Uzbekistan, Sums';
|
||||
|
||||
const C_VEF = 'Venezuela, Bolivares Fuertes';
|
||||
|
||||
const C_VND = 'Vietnam, Dong';
|
||||
|
||||
const C_YER = 'Yemen, Rials';
|
||||
|
||||
const C_ZWD = 'Zimbabwe, Zimbabwe Dollars';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,149 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Localization;
|
||||
|
||||
use phpOMS\Datatypes\EnumArray;
|
||||
|
||||
/**
|
||||
* Currency codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class ISO4217EnumArray extends EnumArray
|
||||
{
|
||||
protected static $constants = [
|
||||
'ALL' => ['Albania, Leke', '4c, 65, 6b'],
|
||||
'AFN' => ['Afghanistan, Afghanis', '60b'],
|
||||
'ARS' => ['Argentina, Pesos', '24'],
|
||||
'AWG' => ['Aruba, Guilders', '192'],
|
||||
'AUD' => ['Australia, Dollars', '24'],
|
||||
'AZN' => ['Azerbaijan, New Manats', '43c, 430, 43d'],
|
||||
'BSD' => ['Bahamas, Dollars', '24'],
|
||||
'BBD' => ['Barbados, Dollars', '24'],
|
||||
'BYR' => ['Belarus, Rubles', '70, 2e'],
|
||||
'BZD' => ['Belize, Dollars', '42, 5a, 24'],
|
||||
'BMD' => ['Bermuda, Dollars', '24'],
|
||||
'BOB' => ['Bolivia, Bolivianos', '24, 62'],
|
||||
'BAM' => ['Bosnia and Herzegovina, Convertible Marka', '4b, 4d'],
|
||||
'BWP' => ['Botswana, Pulas', '50'],
|
||||
'BGN' => ['Bulgaria, Leva', '43b, 432'],
|
||||
'BRL' => ['Brazil, Reais', '52, 24'],
|
||||
'BND' => ['Brunei Darussalam, Dollars', '24'],
|
||||
'KHR' => ['Cambodia, Riels', '17db'],
|
||||
'CAD' => ['Canada, Dollars', '24'],
|
||||
'KYD' => ['Cayman Islands, Dollars', '24'],
|
||||
'CLP' => ['Chile, Pesos', '24'],
|
||||
'CNY' => ['China, Yuan Renminbi', 'a5'],
|
||||
'COP' => ['Colombia, Pesos', '24'],
|
||||
'CRC' => ['Costa Rica, Colón', '20a1'],
|
||||
'HRK' => ['Croatia, Kuna', '6b, 6e'],
|
||||
'CUP' => ['Cuba, Pesos', '20b1'],
|
||||
'CZK' => ['Czech Republic, Koruny', '4b, 10d'],
|
||||
'DKK' => ['Denmark, Kroner', '6b, 72'],
|
||||
'DOP' => ['Dominican Republic, Pesos', '52, 44, 24'],
|
||||
'XCD' => ['East Caribbean, Dollars', '24'],
|
||||
'EGP' => ['Egypt, Pounds', 'a3'],
|
||||
'SVC' => ['El Salvador, Colones', '24'],
|
||||
'EEK' => ['Estonia, Krooni', '6b, 72'],
|
||||
'EUR' => ['Euro', '20ac'],
|
||||
'FKP' => ['Falkland Islands, Pounds', 'a3'],
|
||||
'FJD' => ['Fiji, Dollars', '24'],
|
||||
'GHC' => ['Ghana, Cedis', 'a2'],
|
||||
'GIP' => ['Gibraltar, Pounds', 'a3'],
|
||||
'GTQ' => ['Guatemala, Quetzales', '51'],
|
||||
'GGP' => ['Guernsey, Pounds', 'a3'],
|
||||
'GYD' => ['Guyana, Dollars', '24'],
|
||||
'HNL' => ['Honduras, Lempiras', '4c'],
|
||||
'HKD' => ['Hong Kong, Dollars', '24'],
|
||||
'HUF' => ['Hungary, Forint', '46, 74'],
|
||||
'ISK' => ['Iceland, Kronur', '6b, 72'],
|
||||
'INR' => ['India, Rupees', '20a8'],
|
||||
'IDR' => ['Indonesia, Rupiahs', '52, 70'],
|
||||
'IRR' => ['Iran, Rials', 'fdfc'],
|
||||
'IMP' => ['Isle of Man, Pounds', 'a3'],
|
||||
'ILS' => ['Israel, New Shekels', '20aa'],
|
||||
'JMD' => ['Jamaica, Dollars', '4a, 24'],
|
||||
'JPY' => ['Japan, Yen', 'a5'],
|
||||
'JEP' => ['Jersey, Pounds', 'a3'],
|
||||
'KZT' => ['Kazakhstan, Tenge', '43b, 432'],
|
||||
'KES' => ['Kenyan Shilling', '4b, 73, 68, 73'],
|
||||
'KGS' => ['Kyrgyzstan, Soms', '43b, 432'],
|
||||
'LAK' => ['Laos, Kips', '20ad'],
|
||||
'LVL' => ['Latvia, Lati', '4c, 73'],
|
||||
'LBP' => ['Lebanon, Pounds', 'a3'],
|
||||
'LRD' => ['Liberia, Dollars', '24'],
|
||||
'LTL' => ['Lithuania, Litai', '4c, 74'],
|
||||
'MKD' => ['Macedonia, Denars', '434, 435, 43d'],
|
||||
'MYR' => ['Malaysia, Ringgits', '52, 4d'],
|
||||
'MUR' => ['Mauritius, Rupees', '20a8'],
|
||||
'MXN' => ['Mexico, Pesos', '24'],
|
||||
'MNT' => ['Mongolia, Tugriks', '20ae'],
|
||||
'MZN' => ['Mozambique, Meticais', '4d, 54'],
|
||||
'NAD' => ['Namibia, Dollars', '24'],
|
||||
'NPR' => ['Nepal, Rupees', '20a8'],
|
||||
'ANG' => ['Netherlands Antilles, Guilders', '192'],
|
||||
'NZD' => ['New Zealand, Dollars', '24'],
|
||||
'NIO' => ['Nicaragua, Cordobas', '43, 24'],
|
||||
'NGN' => ['Nigeria, Nairas', '20a6'],
|
||||
'KPW' => ['North Korea, Won', '20a9'],
|
||||
'NOK' => ['Norway, Krone', '6b, 72'],
|
||||
'OMR' => ['Oman, Rials', 'fdfc'],
|
||||
'PKR' => ['Pakistan, Rupees', '20a8'],
|
||||
'PAB' => ['Panama, Balboa', '42, 2f, 2e'],
|
||||
'PYG' => ['Paraguay, Guarani', '47, 73'],
|
||||
'PEN' => ['Peru, Nuevos Soles', '53, 2f, 2e'],
|
||||
'PHP' => ['Philippines, Pesos', '50, 68, 70'],
|
||||
'PLN' => ['Poland, Zlotych', '7a, 142'],
|
||||
'QAR' => ['Qatar, Rials', 'fdfc'],
|
||||
'RON' => ['Romania, New Lei', '6c, 65, 69'],
|
||||
'RUB' => ['Russia, Rubles', '440, 443, 431'],
|
||||
'SHP' => ['Saint Helena, Pounds', 'a3'],
|
||||
'SAR' => ['Saudi Arabia, Riyals', 'fdfc'],
|
||||
'RSD' => ['Serbia, Dinars', '414, 438, 43d, 2e'],
|
||||
'SCR' => ['Seychelles, Rupees', '20a8'],
|
||||
'SGD' => ['Singapore, Dollars', '24'],
|
||||
'SBD' => ['Solomon Islands, Dollars', '24'],
|
||||
'SOS' => ['Somalia, Shillings', '53'],
|
||||
'ZAR' => ['South Africa, Rand', '52'],
|
||||
'KRW' => ['South Korea, Won', '20a9'],
|
||||
'LKR' => ['Sri Lanka, Rupees', '20a8'],
|
||||
'SEK' => ['Sweden, Kronor', '6b, 72'],
|
||||
'CHF' => ['Switzerland, Francs', '43, 48, 46'],
|
||||
'SRD' => ['Suriname, Dollars', '24'],
|
||||
'SYP' => ['Syria, Pounds', 'a3'],
|
||||
'TWD' => ['Taiwan, New Dollars', '4e, 54, 24'],
|
||||
'THB' => ['Thailand, Baht', 'e3f'],
|
||||
'TTD' => ['Trinidad and Tobago, Dollars', '54, 54, 24'],
|
||||
'TRY' => ['Turkey, Lira', '54, 4c'],
|
||||
'TRL' => ['Turkey, Liras', '20a4'],
|
||||
'TVD' => ['Tuvalu, Dollars', '24'],
|
||||
'UAH' => ['Ukraine, Hryvnia', '20b4'],
|
||||
'GBP' => ['United Kingdom, Pounds', 'a3'],
|
||||
'USD' => ['United States of America, Dollars', '24'],
|
||||
'UYU' => ['Uruguay, Pesos', '24, 55'],
|
||||
'UZS' => ['Uzbekistan, Sums', '43b, 432'],
|
||||
'VEF' => ['Venezuela, Bolivares Fuertes', '42, 73'],
|
||||
'VND' => ['Vietnam, Dong', '20ab'],
|
||||
'YER' => ['Yemen, Rials', 'fdfc'],
|
||||
'ZWD' => ['Zimbabwe, Zimbabwe Dollars', '5a, 24'],
|
||||
];
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ namespace phpOMS\Localization;
|
|||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Country codes ISO list.
|
||||
* Currency codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace phpOMS\Localization;
|
|||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Language codes ISO list.
|
||||
* Language name ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
|
|
@ -31,370 +31,187 @@ use phpOMS\Datatypes\Enum;
|
|||
class ISO639Enum extends Enum
|
||||
{
|
||||
const _AA = 'Afar';
|
||||
|
||||
const _AB = 'Abkhaz';
|
||||
|
||||
const _AE = 'Avestan';
|
||||
|
||||
const _AF = 'Afrikaans';
|
||||
|
||||
const _AK = 'Akan';
|
||||
|
||||
const _AM = 'Amharic';
|
||||
|
||||
const _AN = 'Aragonese';
|
||||
|
||||
const _AR = 'Arabic';
|
||||
|
||||
const _AS = 'Assamese';
|
||||
|
||||
const _AV = 'Avaric';
|
||||
|
||||
const _AY = 'Aymara';
|
||||
|
||||
const _AZ = 'Azerbaijani';
|
||||
|
||||
const _BA = 'Bashkir';
|
||||
|
||||
const _BE = 'Belarusian';
|
||||
|
||||
const _BG = 'Bulgarian';
|
||||
|
||||
const _BH = 'Bihari';
|
||||
|
||||
const _BI = 'Bislama';
|
||||
|
||||
const _BM = 'Bambara';
|
||||
|
||||
const _BN = 'Bengali';
|
||||
|
||||
const _BO = 'Tibetan Standard, Tibetan, Central';
|
||||
|
||||
const _BR = 'Breton';
|
||||
|
||||
const _BS = 'Bosnian';
|
||||
|
||||
const _CA = 'Catalan; Valencian';
|
||||
|
||||
const _CE = 'Chechen';
|
||||
|
||||
const _CH = 'Chamorro';
|
||||
|
||||
const _CO = 'Corsican';
|
||||
|
||||
const _CR = 'Cree';
|
||||
|
||||
const _CS = 'Czech';
|
||||
|
||||
const _CU = 'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic';
|
||||
|
||||
const _CV = 'Chuvash';
|
||||
|
||||
const _CY = 'Welsh';
|
||||
|
||||
const _DA = 'Danish';
|
||||
|
||||
const _DE = 'German';
|
||||
|
||||
const _DV = 'Divehi; Dhivehi; Maldivian;';
|
||||
|
||||
const _DZ = 'Dzongkha';
|
||||
|
||||
const _EE = 'Ewe';
|
||||
|
||||
const _EL = 'Greek, Modern';
|
||||
|
||||
const _EN = 'English';
|
||||
|
||||
const _EO = 'Esperanto';
|
||||
|
||||
const _ES = 'Spanish; Castilian';
|
||||
|
||||
const _ET = 'Estonian';
|
||||
|
||||
const _EU = 'Basque';
|
||||
|
||||
const _FA = 'Persian';
|
||||
|
||||
const _FF = 'Fula; Fulah; Pulaar; Pular';
|
||||
|
||||
const _FI = 'Finnish';
|
||||
|
||||
const _FJ = 'Fijian';
|
||||
|
||||
const _FO = 'Faroese';
|
||||
|
||||
const _FR = 'French';
|
||||
|
||||
const _FY = 'Western Frisian';
|
||||
|
||||
const _GA = 'Irish';
|
||||
|
||||
const _GD = 'Scottish Gaelic; Gaelic';
|
||||
|
||||
const _GL = 'Galician';
|
||||
|
||||
const _GN = 'GuaranÃ';
|
||||
|
||||
const _GU = 'Gujarati';
|
||||
|
||||
const _GV = 'Manx';
|
||||
|
||||
const _HA = 'Hausa';
|
||||
|
||||
const _HE = 'Hebrew (modern)';
|
||||
|
||||
const _HI = 'Hindi';
|
||||
|
||||
const _HO = 'Hiri Motu';
|
||||
|
||||
const _HR = 'Croatian';
|
||||
|
||||
const _HT = 'Haitian; Haitian Creole';
|
||||
|
||||
const _HU = 'Hungarian';
|
||||
|
||||
const _HY = 'Armenian';
|
||||
|
||||
const _HZ = 'Herero';
|
||||
|
||||
const _IA = 'Interlingua';
|
||||
|
||||
const _ID = 'Indonesian';
|
||||
|
||||
const _IE = 'Interlingue';
|
||||
|
||||
const _IG = 'Igbo';
|
||||
|
||||
const _II = 'Nuosu';
|
||||
|
||||
const _IK = 'Inupiaq';
|
||||
|
||||
const _IO = 'Ido';
|
||||
|
||||
const _IS = 'Icelandic';
|
||||
|
||||
const _IT = 'Italian';
|
||||
|
||||
const _IU = 'Inuktitut';
|
||||
|
||||
const _JA = 'Japanese (ja)';
|
||||
|
||||
const _JV = 'Javanese (jv)';
|
||||
|
||||
const _KA = 'Georgian';
|
||||
|
||||
const _KG = 'Kongo';
|
||||
|
||||
const _KI = 'Kikuyu, Gikuyu';
|
||||
|
||||
const _KJ = 'Kwanyama, Kuanyama';
|
||||
|
||||
const _KK = 'Kazakh';
|
||||
|
||||
const _KL = 'Kalaallisut, Greenlandic';
|
||||
|
||||
const _KM = 'Khmer';
|
||||
|
||||
const _KN = 'Kannada';
|
||||
|
||||
const _KO = 'Korean';
|
||||
|
||||
const _KR = 'Kanuri';
|
||||
|
||||
const _KS = 'Kashmiri';
|
||||
|
||||
const _KU = 'Kurdish';
|
||||
|
||||
const _KV = 'Komi';
|
||||
|
||||
const _KW = 'Cornish';
|
||||
|
||||
const _KY = 'Kirghiz, Kyrgyz';
|
||||
|
||||
const _LA = 'Latin';
|
||||
|
||||
const _LB = 'Luxembourgish, Letzeburgesch';
|
||||
|
||||
const _LG = 'Luganda';
|
||||
|
||||
const _LI = 'Limburgish, Limburgan, Limburger';
|
||||
|
||||
const _LN = 'Lingala';
|
||||
|
||||
const _LO = 'Lao';
|
||||
|
||||
const _LT = 'Lithuanian';
|
||||
|
||||
const _LU = 'Luba-Katanga';
|
||||
|
||||
const _LV = 'Latvian';
|
||||
|
||||
const _MG = 'Malagasy';
|
||||
|
||||
const _MH = 'Marshallese';
|
||||
|
||||
const _MI = 'Maori';
|
||||
|
||||
const _MK = 'Macedonian';
|
||||
|
||||
const _ML = 'Malayalam';
|
||||
|
||||
const _MN = 'Mongolian';
|
||||
|
||||
const _MR = 'Marathi (Mara?hi)';
|
||||
|
||||
const _MS = 'Malay';
|
||||
|
||||
const _MT = 'Maltese';
|
||||
|
||||
const _MY = 'Burmese';
|
||||
|
||||
const _NA = 'Nauru';
|
||||
|
||||
const _NB = 'Norwegian Bokmål';
|
||||
|
||||
const _ND = 'North Ndebele';
|
||||
|
||||
const _NE = 'Nepali';
|
||||
|
||||
const _NG = 'Ndonga';
|
||||
|
||||
const _NL = 'Dutch';
|
||||
|
||||
const _NN = 'Norwegian Nynorsk';
|
||||
|
||||
const _NO = 'Norwegian';
|
||||
|
||||
const _NR = 'South Ndebele';
|
||||
|
||||
const _NV = 'Navajo, Navaho';
|
||||
|
||||
const _NY = 'Chichewa; Chewa; Nyanja';
|
||||
|
||||
const _OC = 'Occitan';
|
||||
|
||||
const _OJ = 'Ojibwe, Ojibwa';
|
||||
|
||||
const _OM = 'Oromo';
|
||||
|
||||
const _OR = 'Oriya';
|
||||
|
||||
const _OS = 'Ossetian, Ossetic';
|
||||
|
||||
const _PA = 'Panjabi, Punjabi';
|
||||
|
||||
const _PI = 'Pali';
|
||||
|
||||
const _PL = 'Polish';
|
||||
|
||||
const _PS = 'Pashto, Pushto';
|
||||
|
||||
const _PT = 'Portuguese';
|
||||
|
||||
const _QU = 'Quechua';
|
||||
|
||||
const _RM = 'Romansh';
|
||||
|
||||
const _RN = 'Kirundi';
|
||||
|
||||
const _RO = 'Romanian, Moldavian, Moldovan';
|
||||
|
||||
const _RU = 'Russian';
|
||||
|
||||
const _RW = 'Kinyarwanda';
|
||||
|
||||
const _SA = 'Sanskrit (Sa?sk?ta)';
|
||||
|
||||
const _SC = 'Sardinian';
|
||||
|
||||
const _SD = 'Sindhi';
|
||||
|
||||
const _SE = 'Northern Sami';
|
||||
|
||||
const _SG = 'Sango';
|
||||
|
||||
const _SI = 'Sinhala, Sinhalese';
|
||||
|
||||
const _SK = 'Slovak';
|
||||
|
||||
const _SL = 'Slovene';
|
||||
|
||||
const _SM = 'Samoan';
|
||||
|
||||
const _SN = 'Shona';
|
||||
|
||||
const _SO = 'Somali';
|
||||
|
||||
const _SQ = 'Albanian';
|
||||
|
||||
const _SR = 'Serbian';
|
||||
|
||||
const _SS = 'Swati';
|
||||
|
||||
const _ST = 'Southern Sotho';
|
||||
|
||||
const _SU = 'Sundanese';
|
||||
|
||||
const _SV = 'Swedish';
|
||||
|
||||
const _SW = 'Swahili';
|
||||
|
||||
const _TA = 'Tamil';
|
||||
|
||||
const _TE = 'Telugu';
|
||||
|
||||
const _TG = 'Tajik';
|
||||
|
||||
const _TH = 'Thai';
|
||||
|
||||
const _TI = 'Tigrinya';
|
||||
|
||||
const _TK = 'Turkmen';
|
||||
|
||||
const _TL = 'Tagalog';
|
||||
|
||||
const _TN = 'Tswana';
|
||||
|
||||
const _TO = 'Tonga (Tonga Islands)';
|
||||
|
||||
const _TR = 'Turkish';
|
||||
|
||||
const _TS = 'Tsonga';
|
||||
|
||||
const _TT = 'Tatar';
|
||||
|
||||
const _TW = 'Twi';
|
||||
|
||||
const _TY = 'Tahitian';
|
||||
|
||||
const _UG = 'Uighur, Uyghur';
|
||||
|
||||
const _UK = 'Ukrainian';
|
||||
|
||||
const _UR = 'Urdu';
|
||||
|
||||
const _UZ = 'Uzbek';
|
||||
|
||||
const _VE = 'Venda';
|
||||
|
||||
const _VI = 'Vietnamese';
|
||||
|
||||
const _VO = 'Volapük';
|
||||
|
||||
const _WA = 'Walloon';
|
||||
|
||||
const _WO = 'Wolof';
|
||||
|
||||
const _XH = 'Xhosa';
|
||||
|
||||
const _YI = 'Yiddish';
|
||||
|
||||
const _YO = 'Yoruba';
|
||||
|
||||
const _ZA = 'Zhuang, Chuang';
|
||||
|
||||
const _ZH = 'Chinese';
|
||||
|
||||
const _ZU = 'Zulu';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,219 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Localization;
|
||||
|
||||
use phpOMS\Datatypes\EnumArray;
|
||||
|
||||
/**
|
||||
* Language codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class ISO639EnumArray extends EnumArray
|
||||
{
|
||||
protected static $constants = [
|
||||
'aa' => 'Afar',
|
||||
'ab' => 'Abkhaz',
|
||||
'ae' => 'Avestan',
|
||||
'af' => 'Afrikaans',
|
||||
'ak' => 'Akan',
|
||||
'am' => 'Amharic',
|
||||
'an' => 'Aragonese',
|
||||
'ar' => 'Arabic',
|
||||
'as' => 'Assamese',
|
||||
'av' => 'Avaric',
|
||||
'ay' => 'Aymara',
|
||||
'az' => 'Azerbaijani',
|
||||
'ba' => 'Bashkir',
|
||||
'be' => 'Belarusian',
|
||||
'bg' => 'Bulgarian',
|
||||
'bh' => 'Bihari',
|
||||
'bi' => 'Bislama',
|
||||
'bm' => 'Bambara',
|
||||
'bn' => 'Bengali',
|
||||
'bo' => 'Tibetan Standard, Tibetan, Central',
|
||||
'br' => 'Breton',
|
||||
'bs' => 'Bosnian',
|
||||
'ca' => 'Catalan; Valencian',
|
||||
'ce' => 'Chechen',
|
||||
'ch' => 'Chamorro',
|
||||
'co' => 'Corsican',
|
||||
'cr' => 'Cree',
|
||||
'cs' => 'Czech',
|
||||
'cu' => 'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic',
|
||||
'cv' => 'Chuvash',
|
||||
'cy' => 'Welsh',
|
||||
'da' => 'Danish',
|
||||
'de' => 'German',
|
||||
'dv' => 'Divehi; Dhivehi; Maldivian;',
|
||||
'dz' => 'Dzongkha',
|
||||
'ee' => 'Ewe',
|
||||
'el' => 'Greek, Modern',
|
||||
'en' => 'English',
|
||||
'eo' => 'Esperanto',
|
||||
'es' => 'Spanish; Castilian',
|
||||
'et' => 'Estonian',
|
||||
'eu' => 'Basque',
|
||||
'fa' => 'Persian',
|
||||
'ff' => 'Fula; Fulah; Pulaar; Pular',
|
||||
'fi' => 'Finnish',
|
||||
'fj' => 'Fijian',
|
||||
'fo' => 'Faroese',
|
||||
'fr' => 'French',
|
||||
'fy' => 'Western Frisian',
|
||||
'ga' => 'Irish',
|
||||
'gd' => 'Scottish Gaelic; Gaelic',
|
||||
'gl' => 'Galician',
|
||||
'gn' => 'GuaranÃ',
|
||||
'gu' => 'Gujarati',
|
||||
'gv' => 'Manx',
|
||||
'ha' => 'Hausa',
|
||||
'he' => 'Hebrew (modern)',
|
||||
'hi' => 'Hindi',
|
||||
'ho' => 'Hiri Motu',
|
||||
'hr' => 'Croatian',
|
||||
'ht' => 'Haitian; Haitian Creole',
|
||||
'hu' => 'Hungarian',
|
||||
'hy' => 'Armenian',
|
||||
'hz' => 'Herero',
|
||||
'ia' => 'Interlingua',
|
||||
'id' => 'Indonesian',
|
||||
'ie' => 'Interlingue',
|
||||
'ig' => 'Igbo',
|
||||
'ii' => 'Nuosu',
|
||||
'ik' => 'Inupiaq',
|
||||
'io' => 'Ido',
|
||||
'is' => 'Icelandic',
|
||||
'it' => 'Italian',
|
||||
'iu' => 'Inuktitut',
|
||||
'ja' => 'Japanese (ja)',
|
||||
'jv' => 'Javanese (jv)',
|
||||
'ka' => 'Georgian',
|
||||
'kg' => 'Kongo',
|
||||
'ki' => 'Kikuyu, Gikuyu',
|
||||
'kj' => 'Kwanyama, Kuanyama',
|
||||
'kk' => 'Kazakh',
|
||||
'kl' => 'Kalaallisut, Greenlandic',
|
||||
'km' => 'Khmer',
|
||||
'kn' => 'Kannada',
|
||||
'ko' => 'Korean',
|
||||
'kr' => 'Kanuri',
|
||||
'ks' => 'Kashmiri',
|
||||
'ku' => 'Kurdish',
|
||||
'kv' => 'Komi',
|
||||
'kw' => 'Cornish',
|
||||
'ky' => 'Kirghiz, Kyrgyz',
|
||||
'la' => 'Latin',
|
||||
'lb' => 'Luxembourgish, Letzeburgesch',
|
||||
'lg' => 'Luganda',
|
||||
'li' => 'Limburgish, Limburgan, Limburger',
|
||||
'ln' => 'Lingala',
|
||||
'lo' => 'Lao',
|
||||
'lt' => 'Lithuanian',
|
||||
'lu' => 'Luba-Katanga',
|
||||
'lv' => 'Latvian',
|
||||
'mg' => 'Malagasy',
|
||||
'mh' => 'Marshallese',
|
||||
'mi' => 'Maori',
|
||||
'mk' => 'Macedonian',
|
||||
'ml' => 'Malayalam',
|
||||
'mn' => 'Mongolian',
|
||||
'mr' => 'Marathi (Mara?hi)',
|
||||
'ms' => 'Malay',
|
||||
'mt' => 'Maltese',
|
||||
'my' => 'Burmese',
|
||||
'na' => 'Nauru',
|
||||
'nb' => 'Norwegian Bokmål',
|
||||
'nd' => 'North Ndebele',
|
||||
'ne' => 'Nepali',
|
||||
'ng' => 'Ndonga',
|
||||
'nl' => 'Dutch',
|
||||
'nn' => 'Norwegian Nynorsk',
|
||||
'no' => 'Norwegian',
|
||||
'nr' => 'South Ndebele',
|
||||
'nv' => 'Navajo, Navaho',
|
||||
'ny' => 'Chichewa; Chewa; Nyanja',
|
||||
'oc' => 'Occitan',
|
||||
'oj' => 'Ojibwe, Ojibwa',
|
||||
'om' => 'Oromo',
|
||||
'or' => 'Oriya',
|
||||
'os' => 'Ossetian, Ossetic',
|
||||
'pa' => 'Panjabi, Punjabi',
|
||||
'pi' => 'Pali',
|
||||
'pl' => 'Polish',
|
||||
'ps' => 'Pashto, Pushto',
|
||||
'pt' => 'Portuguese',
|
||||
'qu' => 'Quechua',
|
||||
'rm' => 'Romansh',
|
||||
'rn' => 'Kirundi',
|
||||
'ro' => 'Romanian, Moldavian, Moldovan',
|
||||
'ru' => 'Russian',
|
||||
'rw' => 'Kinyarwanda',
|
||||
'sa' => 'Sanskrit (Sa?sk?ta)',
|
||||
'sc' => 'Sardinian',
|
||||
'sd' => 'Sindhi',
|
||||
'se' => 'Northern Sami',
|
||||
'sg' => 'Sango',
|
||||
'si' => 'Sinhala, Sinhalese',
|
||||
'sk' => 'Slovak',
|
||||
'sl' => 'Slovene',
|
||||
'sm' => 'Samoan',
|
||||
'sn' => 'Shona',
|
||||
'so' => 'Somali',
|
||||
'sq' => 'Albanian',
|
||||
'sr' => 'Serbian',
|
||||
'ss' => 'Swati',
|
||||
'st' => 'Southern Sotho',
|
||||
'su' => 'Sundanese',
|
||||
'sv' => 'Swedish',
|
||||
'sw' => 'Swahili',
|
||||
'ta' => 'Tamil',
|
||||
'te' => 'Telugu',
|
||||
'tg' => 'Tajik',
|
||||
'th' => 'Thai',
|
||||
'ti' => 'Tigrinya',
|
||||
'tk' => 'Turkmen',
|
||||
'tl' => 'Tagalog',
|
||||
'tn' => 'Tswana',
|
||||
'to' => 'Tonga (Tonga Islands)',
|
||||
'tr' => 'Turkish',
|
||||
'ts' => 'Tsonga',
|
||||
'tt' => 'Tatar',
|
||||
'tw' => 'Twi',
|
||||
'ty' => 'Tahitian',
|
||||
'ug' => 'Uighur, Uyghur',
|
||||
'uk' => 'Ukrainian',
|
||||
'ur' => 'Urdu',
|
||||
'uz' => 'Uzbek',
|
||||
've' => 'Venda',
|
||||
'vi' => 'Vietnamese',
|
||||
'vo' => 'Volapük',
|
||||
'wa' => 'Walloon',
|
||||
'wo' => 'Wolof',
|
||||
'xh' => 'Xhosa',
|
||||
'yi' => 'Yiddish',
|
||||
'yo' => 'Yoruba',
|
||||
'za' => 'Zhuang, Chuang',
|
||||
'zh' => 'Chinese',
|
||||
'zu' => 'Zulu',
|
||||
];
|
||||
}
|
||||
217
Localization/ISO639x2Enum.php
Normal file
217
Localization/ISO639x2Enum.php
Normal file
|
|
@ -0,0 +1,217 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Localization;
|
||||
|
||||
use phpOMS\Datatypes\Enum;
|
||||
|
||||
/**
|
||||
* Language codes ISO list.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Localization
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class ISO639x2Enum extends Enum
|
||||
{
|
||||
const _AB = 'abk';
|
||||
const _AA = 'aar';
|
||||
const _AF = 'afr';
|
||||
const _AK = 'aka';
|
||||
const _SQ = 'sqi';
|
||||
const _AM = 'amh';
|
||||
const _AR = 'ara';
|
||||
const _AN = 'arg';
|
||||
const _HY = 'hye';
|
||||
const _AS = 'asm';
|
||||
const _AV = 'ava';
|
||||
const _AE = 'ave';
|
||||
const _AY = 'aru';
|
||||
const _AZ = 'aze';
|
||||
const _BM = 'bam';
|
||||
const _BA = 'bak';
|
||||
const _EU = 'eus';
|
||||
const _BE = 'bel';
|
||||
const _BN = 'ben';
|
||||
const _BH = 'bih';
|
||||
const _BI = 'bis';
|
||||
const _BS = 'bos';
|
||||
const _BR = 'bre';
|
||||
const _BG = 'bul';
|
||||
const _MY = 'mya';
|
||||
const _CA = 'cat';
|
||||
const _CH = 'cha';
|
||||
const _CE = 'che';
|
||||
const _NY = 'nya';
|
||||
const _ZH = 'zho';
|
||||
const _CV = 'chv';
|
||||
const _KW = 'cor';
|
||||
const _CO = 'cos';
|
||||
const _CR = 'cre';
|
||||
const _HR = 'hrv';
|
||||
const _CS = 'ces';
|
||||
const _DA = 'dan';
|
||||
const _DV = 'div';
|
||||
const _NL = 'nld';
|
||||
const _DZ = 'dzo';
|
||||
const _EN = 'eng';
|
||||
const _EO = 'epo';
|
||||
const _ET = 'est';
|
||||
const _EE = 'ewe';
|
||||
const _FO = 'fao';
|
||||
const _FJ = 'fij';
|
||||
const _FI = 'fin';
|
||||
const _FR = 'fra';
|
||||
const _FF = 'ful';
|
||||
const _GL = 'glg';
|
||||
const _KA = 'kat';
|
||||
const _DE = 'deu';
|
||||
const _EL = 'ell';
|
||||
const _GN = 'grn';
|
||||
const _GU = 'guj';
|
||||
const _HT = 'hat';
|
||||
const _HA = 'hau';
|
||||
const _HE = 'heb';
|
||||
const _HZ = 'her';
|
||||
const _HI = 'hin';
|
||||
const _HO = 'hmo';
|
||||
const _HU = 'hun';
|
||||
const _IA = 'ina';
|
||||
const _ID = 'ind';
|
||||
const _IE = 'ile';
|
||||
const _GA = 'gle';
|
||||
const _IG = 'ibo';
|
||||
const _IK = 'ipk';
|
||||
const _IO = 'ido';
|
||||
const _IS = 'isl';
|
||||
const _IT = 'ita';
|
||||
const _IU = 'iku';
|
||||
const _JA = 'jpn';
|
||||
const _JV = 'jav';
|
||||
const _KL = 'kal';
|
||||
const _KN = 'kan';
|
||||
const _KR = 'kau';
|
||||
const _KS = 'kas';
|
||||
const _KK = 'kaz';
|
||||
const _KM = 'khm';
|
||||
const _KI = 'kik';
|
||||
const _RW = 'kin';
|
||||
const _KY = 'kir';
|
||||
const _KV = 'kom';
|
||||
const _KG = 'kon';
|
||||
const _KO = 'kor';
|
||||
const _KU = 'kur';
|
||||
const _KJ = 'kua';
|
||||
const _LA = 'lat';
|
||||
const _LB = 'ltz';
|
||||
const _LG = 'lug';
|
||||
const _LI = 'lim';
|
||||
const _LN = 'lin';
|
||||
const _LO = 'lao';
|
||||
const _LT = 'lit';
|
||||
const _LU = 'lub';
|
||||
const _LV = 'lav';
|
||||
const _GV = 'glv';
|
||||
const _MK = 'mkd';
|
||||
const _MG = 'mlg';
|
||||
const _MS = 'msa';
|
||||
const _ML = 'mal';
|
||||
const _MT = 'mlt';
|
||||
const _MI = 'mri';
|
||||
const _MR = 'mar';
|
||||
const _MH = 'mah';
|
||||
const _MN = 'mon';
|
||||
const _NA = 'nau';
|
||||
const _NV = 'nav';
|
||||
const _ND = 'nde';
|
||||
const _NE = 'nep';
|
||||
const _NG = 'ndo';
|
||||
const _NB = 'nob';
|
||||
const _NN = 'nno';
|
||||
const _NO = 'nor';
|
||||
const _II = 'iii';
|
||||
const _NR = 'nbl';
|
||||
const _OC = 'oci';
|
||||
const _OJ = 'oji';
|
||||
const _CU = 'chu';
|
||||
const _OM = 'orm';
|
||||
const _OR = 'ori';
|
||||
const _OS = 'oss';
|
||||
const _PA = 'pan';
|
||||
const _PI = 'pli';
|
||||
const _FA = 'fas';
|
||||
const _PL = 'pol';
|
||||
const _PS = 'pus';
|
||||
const _PT = 'por';
|
||||
const _QU = 'que';
|
||||
const _RM = 'roh';
|
||||
const _RN = 'run';
|
||||
const _RO = 'ron';
|
||||
const _RU = 'rus';
|
||||
const _SA = 'san';
|
||||
const _SC = 'srd';
|
||||
const _SD = 'snd';
|
||||
const _SE = 'sme';
|
||||
const _SM = 'smo';
|
||||
const _SG = 'sag';
|
||||
const _SR = 'srp';
|
||||
const _GD = 'gla';
|
||||
const _SN = 'sna';
|
||||
const _SI = 'sin';
|
||||
const _SK = 'slk';
|
||||
const _SL = 'slv';
|
||||
const _SO = 'som';
|
||||
const _ST = 'sot';
|
||||
const _ES = 'spa';
|
||||
const _SU = 'sun';
|
||||
const _SW = 'swa';
|
||||
const _SS = 'ssw';
|
||||
const _SV = 'swe';
|
||||
const _TA = 'tam';
|
||||
const _TE = 'tel';
|
||||
const _TG = 'tgk';
|
||||
const _TH = 'tha';
|
||||
const _TI = 'tir';
|
||||
const _BO = 'bod';
|
||||
const _TK = 'tuk';
|
||||
const _TL = 'tgl';
|
||||
const _TN = 'tsn';
|
||||
const _TO = 'ton';
|
||||
const _TR = 'tur';
|
||||
const _TS = 'tso';
|
||||
const _TT = 'tat';
|
||||
const _TW = 'twi';
|
||||
const _TY = 'tah';
|
||||
const _UG = 'uig';
|
||||
const _UK = 'ukr';
|
||||
const _UR = 'urd';
|
||||
const _UZ = 'uzb';
|
||||
const _VE = 'ven';
|
||||
const _VI = 'vie';
|
||||
const _VO = 'vol';
|
||||
const _WA = 'wln';
|
||||
const _CY = 'cym';
|
||||
const _WO = 'wol';
|
||||
const _FY = 'fry';
|
||||
const _XH = 'xho';
|
||||
const _YI = 'yid';
|
||||
const _YO = 'yor';
|
||||
const _ZA = 'zha';
|
||||
const _ZU = 'zul';
|
||||
}
|
||||
|
|
@ -88,6 +88,46 @@ class Localization
|
|||
*/
|
||||
private $datetime = 'Y-m-d H:i:s';
|
||||
|
||||
/**
|
||||
* Weight.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $weight = [];
|
||||
|
||||
/**
|
||||
* Speed.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $speed = [];
|
||||
|
||||
/**
|
||||
* Length.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $length = [];
|
||||
|
||||
/**
|
||||
* Area.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $area = [];
|
||||
|
||||
/**
|
||||
* Volume.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $volume = [];
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class Request extends RequestAbstract
|
|||
*/
|
||||
public function init($uri = null)
|
||||
{
|
||||
if ($uri === null) {
|
||||
if (!isset($uri)) {
|
||||
$this->initCurrentRequest();
|
||||
} else {
|
||||
$this->initPseudoRequest($uri);
|
||||
|
|
|
|||
|
|
@ -54,15 +54,21 @@ class Router
|
|||
*
|
||||
* @param string $path Route file path
|
||||
*
|
||||
* @return void
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function importFromFile(string $path)
|
||||
public function importFromFile(string $path) : bool
|
||||
{
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
$this->routes += include $path;
|
||||
if(file_exists($path)) {
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
$this->routes += include $path;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -79,6 +85,10 @@ class Router
|
|||
*/
|
||||
public function add(string $route, $destination, string $verb = RouteVerb::GET)
|
||||
{
|
||||
if(!isset($this->routes[$route])) {
|
||||
$this->routes[$route] = [];
|
||||
}
|
||||
|
||||
$this->routes[$route][] = [
|
||||
'dest' => $destination,
|
||||
'verb' => $verb,
|
||||
|
|
|
|||
87
Utils/Converter/Ip.php
Normal file
87
Utils/Converter/Ip.php
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Utils\Converter;
|
||||
|
||||
/**
|
||||
* Ip converter.
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Utils\Converter
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Ip
|
||||
{
|
||||
const IP_TABLE_PATH = __DIR__ . '/../../Localization/Default/Ip/ipGeoLocation.csv';
|
||||
const IP_TABLE_ITERATIONS = 100;
|
||||
|
||||
private function __construct() {}
|
||||
|
||||
public static function ip2Float(string $ip) : float
|
||||
{
|
||||
$split = explode('.', $ip);
|
||||
return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3];
|
||||
}
|
||||
|
||||
public static function ip2Country(string $ip) : string
|
||||
{
|
||||
$fh = fopen(self::IP_TABLE_PATH, 'r');
|
||||
|
||||
fseek($fh, 0, SEEK_END);
|
||||
$end = ftell($fh);
|
||||
fseek($fh, 0);
|
||||
$start = 0;
|
||||
$current = $start;
|
||||
|
||||
$ip = self::ip2Float($ip);
|
||||
$country = '';
|
||||
$counter = 0;
|
||||
|
||||
while($counter < self::IP_TABLE_ITERATIONS) {
|
||||
$line = fgets($fh, 150);
|
||||
if($current !== 0) {
|
||||
$line = fgets($fh, 150);
|
||||
}
|
||||
|
||||
$split = explode(',', $line);
|
||||
|
||||
if($ip >= $split[0] && $ip <= $split[1]) {
|
||||
$country = $split[2];
|
||||
break;
|
||||
}
|
||||
|
||||
if($ip > $split[1]) {
|
||||
$larger = true;
|
||||
$start = $current;
|
||||
fseek($fh, ($end - $current) / 2, SEEK_CUR);
|
||||
} else {
|
||||
$larger = false;
|
||||
$end = $current;
|
||||
fseek($fh, ($start - $current) / 2, SEEK_CUR);
|
||||
}
|
||||
|
||||
$counter++;
|
||||
$current = ftell($fh);
|
||||
}
|
||||
|
||||
fclose($fh);
|
||||
|
||||
return $country;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user