From 71bb333aa43438fa47189820b230b46ddaf711a0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 30 Aug 2020 20:13:11 +0200 Subject: [PATCH] autofixes --- Account/Account.php | 2 +- Account/AccountStatus.php | 3 + Account/AccountType.php | 1 + Account/Group.php | 3 +- Account/GroupStatus.php | 2 + Account/PermissionOwner.php | 1 + Account/PermissionType.php | 5 + Algorithm/PathFinding/HeuristicType.php | 6 + Algorithm/PathFinding/MovementType.php | 3 + Algorithm/Sort/SortOrder.php | 1 + Asset/AssetType.php | 2 + Auth/LoginReturnType.php | 10 + Config/OptionsInterface.php | 1 - Config/OptionsTrait.php | 1 - Contract/ArrayableInterface.php | 1 - Contract/RenderableInterface.php | 1 - DataStorage/Cache/CacheStatus.php | 3 + DataStorage/Cache/CacheType.php | 3 + .../Cache/Connection/CacheValueType.php | 7 + .../Cache/Connection/ConnectionInterface.php | 1 - DataStorage/Cookie/CookieJar.php | 1 + DataStorage/DataMapperInterface.php | 1 - .../DataStorageConnectionInterface.php | 1 - DataStorage/DataStoragePoolInterface.php | 1 - DataStorage/Database/DataMapperAbstract.php | 3 +- DataStorage/Database/DatabaseStatus.php | 5 + DataStorage/Database/DatabaseType.php | 4 + DataStorage/Database/Query/JoinType.php | 11 + DataStorage/Database/Query/QueryType.php | 6 + DataStorage/Database/RelationType.php | 6 + DataStorage/Database/Schema/QueryType.php | 5 + DataStorage/Session/SessionInterface.php | 1 - Localization/ISO3166CharEnum.php | 248 +++++ Localization/ISO3166NameEnum.php | 249 +++++ Localization/ISO3166NumEnum.php | 248 +++++ Localization/ISO3166TwoEnum.php | 249 +++++ Localization/ISO4217CharEnum.php | 113 ++ Localization/ISO4217DecimalEnum.php | 177 ++++ Localization/ISO4217Enum.php | 113 ++ Localization/ISO4217NumEnum.php | 177 ++++ Localization/ISO4217SubUnitEnum.php | 153 +++ Localization/ISO4217SymbolEnum.php | 108 ++ Localization/ISO639Enum.php | 183 ++++ Localization/ISO639x1Enum.php | 170 +++ Localization/ISO639x2Enum.php | 183 ++++ Localization/Money.php | 2 +- Localization/PhoneEnum.php | 228 ++++ Log/FileLogger.php | 4 +- Log/LogLevel.php | 7 + Log/LoggerInterface.php | 1 - Math/Number/NumberType.php | 8 + .../Numerics/Interpolation/DerivativeType.php | 1 + .../Interpolation/LinearInterpolation.php | 2 +- Math/Statistic/Average.php | 10 + Message/Http/BrowserType.php | 11 + Message/Http/OSType.php | 23 + Message/Http/RequestMethod.php | 5 + Message/Http/RequestStatus.php | 54 + Message/Http/RequestStatusCode.php | 54 + Message/Mail/DispositionType.php | 3 + Message/Mail/EmailAbstract.php | 2 - Message/Mail/EncodingType.php | 4 + Message/Mail/EncryptionType.php | 1 + Message/Mail/HeaderContext.php | 2 + Message/Mail/ICALMethodType.php | 7 + Message/Mail/Mail.php | 3 + Message/Mail/SubmitType.php | 3 + Message/NotificationLevel.php | 4 + Message/ResponseAbstract.php | 2 +- Message/Socket/PacketType.php | 10 + Message/Socket/SocketResponse.php | 2 +- Message/UploadedFileInterface.php | 1 - Model/Message/DomAction.php | 8 + Model/Message/FormValidation.php | 2 +- Model/Message/Notify.php | 2 +- Model/Message/NotifyType.php | 4 + Model/Message/Redirect.php | 2 +- Model/Message/Reload.php | 2 +- Module/ConsoleInterface.php | 1 - Module/ModuleStatus.php | 2 + Module/NullModule.php | 4 +- Module/SocketInterface.php | 1 - Router/RouteVerb.php | 4 + Socket/Client/ClientConnection.php | 5 + Socket/SocketInterface.php | 1 - Stdlib/Base/AddressType.php | 6 + Stdlib/Base/PhoneType.php | 3 + Stdlib/Map/KeyType.php | 1 + Stdlib/Map/OrderType.php | 1 + Stdlib/Queue/PriorityMode.php | 3 + System/CharsetType.php | 2 + System/File/ContentPutMode.php | 3 + System/File/DirectoryInterface.php | 2 +- System/File/ExtensionType.php | 12 + System/File/FileInterface.php | 1 - System/File/FileUtils.php | 11 + System/File/Ftp/Directory.php | 2 +- System/File/Ftp/File.php | 1 + System/File/Local/Directory.php | 2 +- System/File/Local/File.php | 2 +- System/MimeType.php | 990 ++++++++++++++++++ System/SystemType.php | 3 + Uri/Argument.php | 2 +- Uri/HttpUri.php | 2 +- Uri/UriInterface.php | 1 - Uri/UriScheme.php | 14 + Utils/Barcode/OrientationType.php | 1 + Utils/Converter/AngleType.php | 9 + Utils/Converter/AreaType.php | 12 + Utils/Converter/EnergyPowerType.php | 8 + Utils/Converter/FileSizeType.php | 9 + Utils/Converter/LengthType.php | 21 + Utils/Converter/PressureType.php | 12 + Utils/Converter/SpeedType.php | 33 + Utils/Converter/TemperatureType.php | 7 + Utils/Converter/TimeType.php | 8 + Utils/Converter/VolumeType.php | 37 + Utils/Converter/WeightType.php | 13 + Utils/IO/ExchangeInterface.php | 2 +- Utils/IO/Json/JsonInterface.php | 1 - Utils/IO/Pdf/PdfInterface.php | 1 - Utils/IO/Spreadsheet/SpreadsheetInterface.php | 1 - Utils/RnG/DistributionType.php | 1 + Validation/Finance/IbanEnum.php | 81 ++ Validation/Finance/IbanErrorType.php | 4 + Validation/ValidatorInterface.php | 1 - tests/Account/AccountManagerTest.php | 1 + .../Database/DataMapperAbstractTest.php | 1 + tests/Dispatcher/DispatcherTest.php | 4 +- tests/Localization/ISO8601EnumArrayTest.php | 1 - tests/Math/Matrix/MatrixTest.php | 2 + tests/Message/Http/OSTypeTest.php | 1 - tests/Model/Html/FormElementGeneratorTest.php | 2 +- tests/Module/ModuleAbstractTest.php | 3 + tests/Module/ModuleManagerTest.php | 5 +- tests/Stdlib/Base/EnumDemo.php | 1 + tests/Stdlib/Base/HeapTest.php | 2 +- tests/System/File/Ftp/FileTest.php | 1 - tests/System/File/Local/FileTest.php | 1 - tests/System/File/Local/LocalStorageTest.php | 1 - tests/Utils/Parser/Php/ArrayParserTest.php | 1 + tests/Utils/TaskSchedule/CronTest.php | 1 + tests/Utils/TestUtilsClass.php | 3 + 143 files changed, 4269 insertions(+), 53 deletions(-) diff --git a/Account/Account.php b/Account/Account.php index c173d65a5..59b68db4b 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -30,7 +30,7 @@ use phpOMS\Validation\Network\Email; * @link https://orange-management.org * @since 1.0.0 */ -class Account implements ArrayableInterface, \JsonSerializable +class Account implements \JsonSerializable, ArrayableInterface { /** * Id. diff --git a/Account/AccountStatus.php b/Account/AccountStatus.php index 017d3519c..ef7517bdc 100644 --- a/Account/AccountStatus.php +++ b/Account/AccountStatus.php @@ -27,7 +27,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class AccountStatus extends Enum { public const ACTIVE = 1; + public const INACTIVE = 2; + public const TIMEOUT = 3; + public const BANNED = 4; } diff --git a/Account/AccountType.php b/Account/AccountType.php index 35c6bfd86..f72000151 100644 --- a/Account/AccountType.php +++ b/Account/AccountType.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class AccountType extends Enum { public const USER = 0; + public const GROUP = 1; } diff --git a/Account/Group.php b/Account/Group.php index a580f4637..e51e0e086 100644 --- a/Account/Group.php +++ b/Account/Group.php @@ -25,7 +25,7 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue; * @link https://orange-management.org * @since 1.0.0 */ -class Group implements ArrayableInterface, \JsonSerializable +class Group implements \JsonSerializable, ArrayableInterface { /** * Group id. @@ -206,6 +206,7 @@ class Group implements ArrayableInterface, \JsonSerializable * * @since 1.0.0 */ + /** * {@inheritdoc} */ diff --git a/Account/GroupStatus.php b/Account/GroupStatus.php index bb3f67fc8..02b6ed0e2 100644 --- a/Account/GroupStatus.php +++ b/Account/GroupStatus.php @@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class GroupStatus extends Enum { public const ACTIVE = 1; + public const INACTIVE = 2; + public const HIDDEN = 4; } diff --git a/Account/PermissionOwner.php b/Account/PermissionOwner.php index 441b3acac..8a3b5d924 100644 --- a/Account/PermissionOwner.php +++ b/Account/PermissionOwner.php @@ -29,5 +29,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionOwner extends Enum { public const GROUP = 1; + public const ACCOUNT = 2; } diff --git a/Account/PermissionType.php b/Account/PermissionType.php index 7642c5c53..8445eee9e 100644 --- a/Account/PermissionType.php +++ b/Account/PermissionType.php @@ -27,9 +27,14 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionType extends Enum { public const NONE = 1; // No permission + public const READ = 2; // Is able to read models/data + public const CREATE = 4; // Is able to create models/data + public const MODIFY = 8; // Is able to modify models/data + public const DELETE = 16; // Is able to delete models/data + public const PERMISSION = 32; // Is able to change permissions } diff --git a/Algorithm/PathFinding/HeuristicType.php b/Algorithm/PathFinding/HeuristicType.php index 18c471602..a5c057fe9 100644 --- a/Algorithm/PathFinding/HeuristicType.php +++ b/Algorithm/PathFinding/HeuristicType.php @@ -27,10 +27,16 @@ use phpOMS\Stdlib\Base\Enum; abstract class HeuristicType extends Enum { public const MANHATTAN = 1; + public const EUCLIDEAN = 2; + public const OCTILE = 4; + public const CHEBYSHEV = 8; + public const MINKOWSKI = 16; + public const CANBERRA = 32; + public const BRAY_CURTIS = 64; } diff --git a/Algorithm/PathFinding/MovementType.php b/Algorithm/PathFinding/MovementType.php index 16ebd4b51..8c99db730 100644 --- a/Algorithm/PathFinding/MovementType.php +++ b/Algorithm/PathFinding/MovementType.php @@ -27,7 +27,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class MovementType extends Enum { public const DIAGONAL = 1; + public const STRAIGHT = 2; + public const DIAGONAL_ONE_OBSTACLE = 4; + public const DIAGONAL_NO_OBSTACLE = 8; } diff --git a/Algorithm/Sort/SortOrder.php b/Algorithm/Sort/SortOrder.php index 0549485fa..faa6b534c 100644 --- a/Algorithm/Sort/SortOrder.php +++ b/Algorithm/Sort/SortOrder.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class SortOrder extends Enum { public const ASC = 1; + public const DESC = 2; } diff --git a/Asset/AssetType.php b/Asset/AssetType.php index 88d083d31..e9ade75f8 100644 --- a/Asset/AssetType.php +++ b/Asset/AssetType.php @@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class AssetType extends Enum { public const CSS = 0; + public const JS = 1; + public const JSLATE = 2; } diff --git a/Auth/LoginReturnType.php b/Auth/LoginReturnType.php index b2f63a7ef..c416df87f 100644 --- a/Auth/LoginReturnType.php +++ b/Auth/LoginReturnType.php @@ -29,14 +29,24 @@ use phpOMS\Stdlib\Base\Enum; abstract class LoginReturnType extends Enum { public const OK = 0; /* Everything is ok and the user got authed */ + public const FAILURE = -1; /* Authentication resulted in a unexpected failure */ + public const WRONG_PASSWORD = -2; /* Authentication with wrong password */ + public const WRONG_USERNAME = -3; /* Authentication with unknown user */ + public const WRONG_PERMISSION = -4; /* User doesn't have permission to authenticate */ + public const NOT_ACTIVATED = -5; /* The user is not activated yet */ + public const WRONG_INPUT_EXCEEDED = -6; /* Too many wrong logins recently */ + public const TIMEOUTED = -7; /* User received a timeout and can not log in until a certain date */ + public const BANNED = -8; /* User is banned */ + public const INACTIVE = -9; /* User is inactive */ + public const EMPTY_PASSWORD = -10; /* Empty password in database */ } diff --git a/Config/OptionsInterface.php b/Config/OptionsInterface.php index 415c957ae..4df3a804b 100644 --- a/Config/OptionsInterface.php +++ b/Config/OptionsInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Config; */ interface OptionsInterface { - /** * Is this key set. * diff --git a/Config/OptionsTrait.php b/Config/OptionsTrait.php index 64e8d69df..12a7c9d43 100644 --- a/Config/OptionsTrait.php +++ b/Config/OptionsTrait.php @@ -26,7 +26,6 @@ namespace phpOMS\Config; */ trait OptionsTrait { - /** * Options. * diff --git a/Contract/ArrayableInterface.php b/Contract/ArrayableInterface.php index 9403eb825..445c09325 100644 --- a/Contract/ArrayableInterface.php +++ b/Contract/ArrayableInterface.php @@ -26,7 +26,6 @@ namespace phpOMS\Contract; */ interface ArrayableInterface { - /** * Get the instance as an array. * diff --git a/Contract/RenderableInterface.php b/Contract/RenderableInterface.php index 413187a07..b01cbd629 100644 --- a/Contract/RenderableInterface.php +++ b/Contract/RenderableInterface.php @@ -27,7 +27,6 @@ namespace phpOMS\Contract; */ interface RenderableInterface { - /** * Get the evaluated contents of the object. * diff --git a/DataStorage/Cache/CacheStatus.php b/DataStorage/Cache/CacheStatus.php index 2472d17f2..2b5a92336 100644 --- a/DataStorage/Cache/CacheStatus.php +++ b/DataStorage/Cache/CacheStatus.php @@ -29,7 +29,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class CacheStatus extends Enum { public const OK = 0; + public const FAILURE = 1; + public const READONLY = 2; + public const CLOSED = 3; } diff --git a/DataStorage/Cache/CacheType.php b/DataStorage/Cache/CacheType.php index 2e1436493..cb6a380fc 100644 --- a/DataStorage/Cache/CacheType.php +++ b/DataStorage/Cache/CacheType.php @@ -29,7 +29,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class CacheType extends Enum { public const FILE = 'file'; + public const MEMCACHED = 'mem'; + public const REDIS = 'redis'; + public const UNDEFINED = 'na'; } diff --git a/DataStorage/Cache/Connection/CacheValueType.php b/DataStorage/Cache/Connection/CacheValueType.php index 10e91156a..ef2c0d2df 100644 --- a/DataStorage/Cache/Connection/CacheValueType.php +++ b/DataStorage/Cache/Connection/CacheValueType.php @@ -29,11 +29,18 @@ use phpOMS\Stdlib\Base\Enum; abstract class CacheValueType extends Enum { public const _INT = 0; /* Data is integer */ + public const _STRING = 1; /* Data is string */ + public const _ARRAY = 2; /* Data is array */ + public const _SERIALIZABLE = 3; /* Data implements \Serializable */ + public const _FLOAT = 4; /* Data is float */ + public const _BOOL = 5; /* Data is bool */ + public const _JSONSERIALIZABLE = 6; /* Data implements \JsonSerializable */ + public const _NULL = 7; /* Data is null */ } diff --git a/DataStorage/Cache/Connection/ConnectionInterface.php b/DataStorage/Cache/Connection/ConnectionInterface.php index 6898da88c..cc115ba6a 100644 --- a/DataStorage/Cache/Connection/ConnectionInterface.php +++ b/DataStorage/Cache/Connection/ConnectionInterface.php @@ -40,7 +40,6 @@ use phpOMS\DataStorage\DataStorageConnectionInterface; */ interface ConnectionInterface extends DataStorageConnectionInterface { - /** * Updating or adding cache data. * diff --git a/DataStorage/Cookie/CookieJar.php b/DataStorage/Cookie/CookieJar.php index fc8ce93b7..c0e9e5e63 100644 --- a/DataStorage/Cookie/CookieJar.php +++ b/DataStorage/Cookie/CookieJar.php @@ -33,6 +33,7 @@ final class CookieJar * @since 1.0.0 */ private static bool $isLocked = false; + /** * Cookie values. * diff --git a/DataStorage/DataMapperInterface.php b/DataStorage/DataMapperInterface.php index cfb079e86..a60660a56 100644 --- a/DataStorage/DataMapperInterface.php +++ b/DataStorage/DataMapperInterface.php @@ -26,7 +26,6 @@ namespace phpOMS\DataStorage; */ interface DataMapperInterface { - /** * Create data. * diff --git a/DataStorage/DataStorageConnectionInterface.php b/DataStorage/DataStorageConnectionInterface.php index c4f02b772..57b6b04cc 100644 --- a/DataStorage/DataStorageConnectionInterface.php +++ b/DataStorage/DataStorageConnectionInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\DataStorage; */ interface DataStorageConnectionInterface { - /** * Connect to datastorage. * diff --git a/DataStorage/DataStoragePoolInterface.php b/DataStorage/DataStoragePoolInterface.php index 41036cc18..de5b22cce 100644 --- a/DataStorage/DataStoragePoolInterface.php +++ b/DataStorage/DataStoragePoolInterface.php @@ -26,7 +26,6 @@ namespace phpOMS\DataStorage; */ interface DataStoragePoolInterface { - /** * Add connection. * diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index 6f3a333d3..4d4c33259 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -1859,7 +1859,7 @@ class DataMapperAbstract implements DataMapperInterface * Create the delete functionality for arrays (deleteArray, deleteArrayModel). */ - /** + /** * Populate data. * * @param array $result Result set @@ -1925,7 +1925,6 @@ class DataMapperAbstract implements DataMapperInterface return $obj; } - /** * Populate data. * diff --git a/DataStorage/Database/DatabaseStatus.php b/DataStorage/Database/DatabaseStatus.php index 9ecc1f41c..7e3bb596d 100644 --- a/DataStorage/Database/DatabaseStatus.php +++ b/DataStorage/Database/DatabaseStatus.php @@ -29,9 +29,14 @@ use phpOMS\Stdlib\Base\Enum; abstract class DatabaseStatus extends Enum { public const OK = 0; /* Database connection successful */ + public const MISSING_DATABASE = 1; /* Couldn't find database */ + public const MISSING_TABLE = 2; /* One of the core tables couldn't be found */ + public const FAILURE = 3; /* Unknown failure */ + public const READONLY = 4; /* Database connection is in readonly (but ok) */ + public const CLOSED = 5; /* Database connection closed */ } diff --git a/DataStorage/Database/DatabaseType.php b/DataStorage/Database/DatabaseType.php index 46bc6107a..5685e6d16 100644 --- a/DataStorage/Database/DatabaseType.php +++ b/DataStorage/Database/DatabaseType.php @@ -29,8 +29,12 @@ use phpOMS\Stdlib\Base\Enum; abstract class DatabaseType extends Enum { public const MYSQL = 'mysql'; /* MySQL */ + public const SQLITE = 'sqlite'; /* SQLITE */ + public const PGSQL = 'pgsql'; /* PostgreSQL */ + public const SQLSRV = 'mssql'; /* Microsoft SQL Server */ + public const UNDEFINED = 'undefined'; } diff --git a/DataStorage/Database/Query/JoinType.php b/DataStorage/Database/Query/JoinType.php index 233f08da6..9170d7b95 100644 --- a/DataStorage/Database/Query/JoinType.php +++ b/DataStorage/Database/Query/JoinType.php @@ -27,15 +27,26 @@ use phpOMS\Stdlib\Base\Enum; abstract class JoinType extends Enum { public const JOIN = 'JOIN'; + public const LEFT_JOIN = 'LEFT JOIN'; + public const LEFT_OUTER_JOIN = 'LEFT OUTER JOIN'; + public const LEFT_INNER_JOIN = 'LEFT INNER JOIN'; + public const RIGHT_JOIN = 'RIGHT JOIN'; + public const RIGHT_OUTER_JOIN = 'RIGHT OUTER JOIN'; + public const RIGHT_INNER_JOIN = 'RIGHT INNER JOIN'; + public const OUTER_JOIN = 'OUTER JOIN'; + public const INNER_JOIN = 'INNER JOIN'; + public const CROSS_JOIN = 'CROSS JOIN'; + public const FULL_JOIN = 'FULL JOIN'; + public const FULL_OUTER_JOIN = 'FULL OUTER JOIN'; } diff --git a/DataStorage/Database/Query/QueryType.php b/DataStorage/Database/Query/QueryType.php index 2ffbfadab..319e97522 100644 --- a/DataStorage/Database/Query/QueryType.php +++ b/DataStorage/Database/Query/QueryType.php @@ -27,10 +27,16 @@ use phpOMS\Stdlib\Base\Enum; abstract class QueryType extends Enum { public const SELECT = 0; + public const INSERT = 1; + public const UPDATE = 2; + public const DELETE = 3; + public const RANDOM = 4; + public const RAW = 5; + public const NONE = 6; } diff --git a/DataStorage/Database/RelationType.php b/DataStorage/Database/RelationType.php index 9c475cd0c..7c540d8e7 100644 --- a/DataStorage/Database/RelationType.php +++ b/DataStorage/Database/RelationType.php @@ -29,10 +29,16 @@ use phpOMS\Stdlib\Base\Enum; abstract class RelationType extends Enum { public const NONE = 1; + public const NEWEST = 2; + public const BELONGS_TO = 4; + public const OWNS_ONE = 8; + public const HAS_MANY = 16; + public const ALL = 32; + public const REFERENCE = 64; } diff --git a/DataStorage/Database/Schema/QueryType.php b/DataStorage/Database/Schema/QueryType.php index 05b331272..c5394efa6 100644 --- a/DataStorage/Database/Schema/QueryType.php +++ b/DataStorage/Database/Schema/QueryType.php @@ -29,9 +29,14 @@ use phpOMS\DataStorage\Database\Query\QueryType as DefaultQueryType; abstract class QueryType extends DefaultQueryType { public const DROP_DATABASE = 128; + public const ALTER = 129; + public const TABLES = 130; + public const FIELDS = 131; + public const CREATE_TABLE = 132; + public const DROP_TABLE = 133; } diff --git a/DataStorage/Session/SessionInterface.php b/DataStorage/Session/SessionInterface.php index 8559d4e82..b342a304b 100644 --- a/DataStorage/Session/SessionInterface.php +++ b/DataStorage/Session/SessionInterface.php @@ -26,7 +26,6 @@ namespace phpOMS\DataStorage\Session; */ interface SessionInterface { - /** * Get session variable by key. * diff --git a/Localization/ISO3166CharEnum.php b/Localization/ISO3166CharEnum.php index 2ec3b1c88..53ce503c0 100644 --- a/Localization/ISO3166CharEnum.php +++ b/Localization/ISO3166CharEnum.php @@ -27,252 +27,500 @@ use phpOMS\Stdlib\Base\Enum; class ISO3166CharEnum extends Enum { public const _AFG = 'AFG'; + public const _ALA = 'ALA'; + public const _ALB = 'ALB'; + public const _DZA = 'DZA'; + public const _ASM = 'ASM'; + public const _AND = 'AND'; + public const _AGO = 'AGO'; + public const _AIA = 'AIA'; + public const _ATA = 'ATA'; + public const _ATG = 'ATG'; + public const _ARG = 'ARG'; + public const _ARM = 'ARM'; + public const _ABW = 'ABW'; + public const _AUS = 'AUS'; + public const _AUT = 'AUT'; + public const _AZE = 'AZE'; + public const _BHS = 'BHS'; + public const _BHR = 'BHR'; + public const _BGD = 'BGD'; + public const _BRB = 'BRB'; + public const _BLR = 'BLR'; + public const _BEL = 'BEL'; + public const _BLZ = 'BLZ'; + public const _BEN = 'BEN'; + public const _BMU = 'BMU'; + public const _BTN = 'BTN'; + public const _BOL = 'BOL'; + public const _BES = 'BES'; + public const _BIH = 'BIH'; + public const _BWA = 'BWA'; + public const _BVT = 'BVT'; + public const _BRA = 'BRA'; + public const _IOT = 'IOT'; + public const _BRN = 'BRN'; + public const _BGR = 'BGR'; + public const _BFA = 'BFA'; + public const _BDI = 'BDI'; + public const _CPV = 'CPV'; + public const _KHM = 'KHM'; + public const _CMR = 'CMR'; + public const _CAN = 'CAN'; + public const _CYM = 'CYM'; + public const _CAF = 'CAF'; + public const _TCD = 'TCD'; + public const _CHL = 'CHL'; + public const _CHN = 'CHN'; + public const _CXR = 'CXR'; + public const _CCK = 'CCK'; + public const _COL = 'COL'; + public const _COM = 'COM'; + public const _COG = 'COG'; + public const _COD = 'COD'; + public const _COK = 'COK'; + public const _CRI = 'CRI'; + public const _CIV = 'CIV'; + public const _HRV = 'HRV'; + public const _CUB = 'CUB'; + public const _CUW = 'CUW'; + public const _CYP = 'CYP'; + public const _CZE = 'CZE'; + public const _DNK = 'DNK'; + public const _DJI = 'DJI'; + public const _DMA = 'DMA'; + public const _DOM = 'DOM'; + public const _ECU = 'ECU'; + public const _EGY = 'EGY'; + public const _SLV = 'SLV'; + public const _GNQ = 'GNQ'; + public const _ERI = 'ERI'; + public const _EST = 'EST'; + public const _ETH = 'ETH'; + public const _FLK = 'FLK'; + public const _FRO = 'FRO'; + public const _FJI = 'FJI'; + public const _FIN = 'FIN'; + public const _FRA = 'FRA'; + public const _GUF = 'GUF'; + public const _PYF = 'PYF'; + public const _ATF = 'ATF'; + public const _GAB = 'GAB'; + public const _GMB = 'GMB'; + public const _GEO = 'GEO'; + public const _DEU = 'DEU'; + public const _GHA = 'GHA'; + public const _GIB = 'GIB'; + public const _GRC = 'GRC'; + public const _GRL = 'GRL'; + public const _GRD = 'GRD'; + public const _GLP = 'GLP'; + public const _GUM = 'GUM'; + public const _GTM = 'GTM'; + public const _GGY = 'GGY'; + public const _GIN = 'GIN'; + public const _GNB = 'GNB'; + public const _GUY = 'GUY'; + public const _HTI = 'HTI'; + public const _HMD = 'HMD'; + public const _VAT = 'VAT'; + public const _HND = 'HND'; + public const _HKG = 'HKG'; + public const _HUN = 'HUN'; + public const _ISL = 'ISL'; + public const _IND = 'IND'; + public const _IDN = 'IDN'; + public const _IRN = 'IRN'; + public const _IRQ = 'IRQ'; + public const _IRL = 'IRL'; + public const _IMN = 'IMN'; + public const _ISR = 'ISR'; + public const _ITA = 'ITA'; + public const _JAM = 'JAM'; + public const _JPN = 'JPN'; + public const _JEY = 'JEY'; + public const _JOR = 'JOR'; + public const _KAZ = 'KAZ'; + public const _KEN = 'KEN'; + public const _KIR = 'KIR'; + public const _PRK = 'PRK'; + public const _KOR = 'KOR'; + public const _KWT = 'KWT'; + public const _KGZ = 'KGZ'; + public const _LAO = 'LAO'; + public const _LVA = 'LVA'; + public const _LBN = 'LBN'; + public const _LSO = 'LSO'; + public const _LBR = 'LBR'; + public const _LBY = 'LBY'; + public const _LIE = 'LIE'; + public const _LTU = 'LTU'; + public const _LUX = 'LUX'; + public const _MAC = 'MAC'; + public const _MKD = 'MKD'; + public const _MDG = 'MDG'; + public const _MWI = 'MWI'; + public const _MYS = 'MYS'; + public const _MDV = 'MDV'; + public const _MLI = 'MLI'; + public const _MLT = 'MLT'; + public const _MHL = 'MHL'; + public const _MTQ = 'MTQ'; + public const _MRT = 'MRT'; + public const _MUS = 'MUS'; + public const _MYT = 'MYT'; + public const _MEX = 'MEX'; + public const _FSM = 'FSM'; + public const _MDA = 'MDA'; + public const _MCO = 'MCO'; + public const _MNG = 'MNG'; + public const _MNE = 'MNE'; + public const _MSR = 'MSR'; + public const _MAR = 'MAR'; + public const _MOZ = 'MOZ'; + public const _MMR = 'MMR'; + public const _NAM = 'NAM'; + public const _NRU = 'NRU'; + public const _NPL = 'NPL'; + public const _NLD = 'NLD'; + public const _NCL = 'NCL'; + public const _NZL = 'NZL'; + public const _NIC = 'NIC'; + public const _NER = 'NER'; + public const _NGA = 'NGA'; + public const _NIU = 'NIU'; + public const _NFK = 'NFK'; + public const _MNP = 'MNP'; + public const _NOR = 'NOR'; + public const _OMN = 'OMN'; + public const _PAK = 'PAK'; + public const _PLW = 'PLW'; + public const _PSE = 'PSE'; + public const _PAN = 'PAN'; + public const _PNG = 'PNG'; + public const _PRY = 'PRY'; + public const _PER = 'PER'; + public const _PHL = 'PHL'; + public const _PCN = 'PCN'; + public const _POL = 'POL'; + public const _PRT = 'PRT'; + public const _PRI = 'PRI'; + public const _QAT = 'QAT'; + public const _REU = 'REU'; + public const _ROU = 'ROU'; + public const _RUS = 'RUS'; + public const _RWA = 'RWA'; + public const _BLM = 'BLM'; + public const _SHN = 'SHN'; + public const _KNA = 'KNA'; + public const _LCA = 'LCA'; + public const _MAF = 'MAF'; + public const _SPM = 'SPM'; + public const _VCT = 'VCT'; + public const _WSM = 'WSM'; + public const _SMR = 'SMR'; + public const _STP = 'STP'; + public const _SAU = 'SAU'; + public const _SEN = 'SEN'; + public const _SRB = 'SRB'; + public const _SYC = 'SYC'; + public const _SLE = 'SLE'; + public const _SGP = 'SGP'; + public const _SXM = 'SXM'; + public const _SVK = 'SVK'; + public const _SVN = 'SVN'; + public const _SLB = 'SLB'; + public const _SOM = 'SOM'; + public const _ZAF = 'ZAF'; + public const _SGS = 'SGS'; + public const _SSD = 'SSD'; + public const _ESP = 'ESP'; + public const _LKA = 'LKA'; + public const _SDN = 'SDN'; + public const _SUR = 'SUR'; + public const _SJM = 'SJM'; + public const _SWZ = 'SWZ'; + public const _SWE = 'SWE'; + public const _CHE = 'CHE'; + public const _SYR = 'SYR'; + public const _TWN = 'TWN'; + public const _TJK = 'TJK'; + public const _TZA = 'TZA'; + public const _THA = 'THA'; + public const _TLS = 'TLS'; + public const _TGO = 'TGO'; + public const _TKL = 'TKL'; + public const _TON = 'TON'; + public const _TTO = 'TTO'; + public const _TUN = 'TUN'; + public const _TUR = 'TUR'; + public const _TKM = 'TKM'; + public const _TCA = 'TCA'; + public const _TUV = 'TUV'; + public const _UGA = 'UGA'; + public const _UKR = 'UKR'; + public const _ARE = 'ARE'; + public const _GBR = 'GBR'; + public const _USA = 'USA'; + public const _UMI = 'UMI'; + public const _URY = 'URY'; + public const _UZB = 'UZB'; + public const _VUT = 'VUT'; + public const _VEN = 'VEN'; + public const _VNM = 'VNM'; + public const _VGB = 'VGB'; + public const _VIR = 'VIR'; + public const _WLF = 'WLF'; + public const _ESH = 'ESH'; + public const _YEM = 'YEM'; + public const _ZMB = 'ZMB'; + public const _ZWE = 'ZWE'; } diff --git a/Localization/ISO3166NameEnum.php b/Localization/ISO3166NameEnum.php index 8224e7432..a13499b6f 100644 --- a/Localization/ISO3166NameEnum.php +++ b/Localization/ISO3166NameEnum.php @@ -27,253 +27,502 @@ use phpOMS\Stdlib\Base\Enum; class ISO3166NameEnum extends Enum { public const _AFG = 'Afghanistan'; + public const _ALA = 'Åland Islands'; + public const _ALB = 'Albania'; + public const _DZA = 'Algeria'; + public const _ASM = 'American Samoa'; + public const _AND = 'Andorra'; + public const _AGO = 'Angola'; + public const _AIA = 'Anguilla'; + public const _ATA = 'Antarctica'; + public const _ATG = 'Antigua and Barbuda'; + public const _ARG = 'Argentina'; + public const _ARM = 'Armenia'; + public const _ABW = 'Aruba'; + public const _AUS = 'Australia'; + public const _AUT = 'Austria'; + public const _AZE = 'Azerbaijan'; + public const _BHS = 'Bahamas'; + public const _BHR = 'Bahrain'; + public const _BGD = 'Bangladesh'; + public const _BRB = 'Barbados'; + public const _BLR = 'Belarus'; + public const _BEL = 'Belgium'; + public const _BLZ = 'Belize'; + public const _BEN = 'Benin'; + public const _BMU = 'Bermuda'; + public const _BTN = 'Bhutan'; + public const _BOL = 'Bolivia (Plurinational State of)'; + public const _BES = 'Bonaire, Sint Eustatius and Saba'; + public const _BIH = 'Bosnia and Herzegovina'; + public const _BWA = 'Botswana'; + public const _BVT = 'Bouvet Island'; + public const _BRA = 'Brazil'; + public const _IOT = 'British Indian Ocean Territory'; + public const _BRN = 'Brunei Darussalam'; + public const _BGR = 'Bulgaria'; + public const _BFA = 'Burkina Faso'; + public const _BDI = 'Burundi'; + public const _CPV = 'Cabo Verde'; + public const _KHM = 'Cambodia'; + public const _CMR = 'Cameroon'; + public const _CAN = 'Canada'; + public const _CYM = 'Cayman Islands'; + public const _CAF = 'Central African Republic'; + public const _TCD = 'Chad'; + public const _CHL = 'Chile'; + public const _CHN = 'China'; + public const _CXR = 'Christmas Island'; + public const _CCK = 'Cocos (Keeling) Islands'; + public const _COL = 'Colombia'; + public const _COM = 'Comoros'; + public const _COG = 'Congo'; + public const _COD = 'Congo (Democratic Republic of the)'; + public const _COK = 'Cook Islands'; + public const _CRI = 'Costa Rica'; + public const _CIV = 'Côte d\'Ivoire'; + public const _HRV = 'Croatia'; + public const _CUB = 'Cuba'; + public const _CUW = 'Curaçao'; + public const _CYP = 'Cyprus'; + public const _CZE = 'Czech Republic'; + public const _DNK = 'Denmark'; + public const _DJI = 'Djibouti'; + public const _DMA = 'Dominica'; + public const _DOM = 'Dominican Republic'; + public const _ECU = 'Ecuador'; + public const _EGY = 'Egypt'; + public const _SLV = 'El Salvador'; + public const _GNQ = 'Equatorial Guinea'; + public const _ERI = 'Eritrea'; + public const _EST = 'Estonia'; + public const _ETH = 'Ethiopia'; + public const _FLK = 'Falkland Islands (Malvinas)'; + public const _FRO = 'Faroe Islands'; + public const _FJI = 'Fiji'; + public const _FIN = 'Finland'; + public const _FRA = 'France'; + public const _GUF = 'French Guiana'; + public const _PYF = 'French Polynesia'; + public const _ATF = 'French Southern Territories'; + public const _GAB = 'Gabon'; + public const _GMB = 'Gambia'; + public const _GEO = 'Georgia'; + public const _DEU = 'Germany'; + public const _GHA = 'Ghana'; + public const _GIB = 'Gibraltar'; + public const _GRC = 'Greece'; + public const _GRL = 'Greenland'; + public const _GRD = 'Grenada'; + public const _GLP = 'Guadeloupe'; + public const _GUM = 'Guam'; + public const _GTM = 'Guatemala'; + public const _GGY = 'Guernsey'; + public const _GIN = 'Guinea'; + public const _GNB = 'Guinea-Bissau'; + public const _GUY = 'Guyana'; + public const _HTI = 'Haiti'; + public const _HMD = 'Heard Island and McDonald Islands'; + public const _VAT = 'Holy See'; + public const _HND = 'Honduras'; + public const _HKG = 'Hong Kong'; + public const _HUN = 'Hungary'; + public const _ISL = 'Iceland'; + public const _IND = 'India'; + public const _IDN = 'Indonesia'; + public const _IRN = 'Iran (Islamic Republic of)'; + public const _IRQ = 'Iraq'; + public const _IRL = 'Ireland'; + public const _IMN = 'Isle of Man'; + public const _ISR = 'Israel'; + public const _ITA = 'Italy'; + public const _JAM = 'Jamaica'; + public const _JPN = 'Japan'; + public const _JEY = 'Jersey'; + public const _JOR = 'Jordan'; + public const _KAZ = 'Kazakhstan'; + public const _KEN = 'Kenya'; + public const _KIR = 'Kiribati'; + public const _PRK = 'Korea (Democratic People\'s Republic of)'; + public const _KOR = 'Korea (Republic of)'; + public const _KWT = 'Kuwait'; + public const _KGZ = 'Kyrgyzstan'; + public const _LAO = 'Lao People\'s Democratic Republic'; + public const _LVA = 'Latvia'; + public const _LBN = 'Lebanon'; + public const _LSO = 'Lesotho'; + public const _LBR = 'Liberia'; + public const _LBY = 'Libya'; + public const _LIE = 'Liechtenstein'; + public const _LTU = 'Lithuania'; + public const _LUX = 'Luxembourg'; + public const _MAC = 'Macao'; + public const _MKD = 'Macedonia (the former Yugoslav Republic of)'; + public const _MDG = 'Madagascar'; + public const _MWI = 'Malawi'; + public const _MYS = 'Malaysia'; + public const _MDV = 'Maldives'; + public const _MLI = 'Mali'; + public const _MLT = 'Malta'; + public const _MHL = 'Marshall Islands'; + public const _MTQ = 'Martinique'; + public const _MRT = 'Mauritania'; + public const _MUS = 'Mauritius'; + public const _MYT = 'Mayotte'; + public const _MEX = 'Mexico'; + public const _FSM = 'Micronesia (Federated States of)'; + public const _MDA = 'Moldova (Republic of)'; + public const _MCO = 'Monaco'; + public const _MNG = 'Mongolia'; + public const _MNE = 'Montenegro'; + public const _MSR = 'Montserrat'; + public const _MAR = 'Morocco'; + public const _MOZ = 'Mozambique'; + public const _MMR = 'Myanmar'; + public const _NAM = 'Namibia'; + public const _NRU = 'Nauru'; + public const _NPL = 'Nepal'; + public const _NLD = 'Netherlands'; + public const _NCL = 'New Caledonia'; + public const _NZL = 'New Zealand'; + public const _NIC = 'Nicaragua'; + public const _NER = 'Niger'; + public const _NGA = 'Nigeria'; + public const _NIU = 'Niue'; + public const _NFK = 'Norfolk Island'; + public const _MNP = 'Northern Mariana Islands'; + public const _NOR = 'Norway'; + public const _OMN = 'Oman'; + public const _PAK = 'Pakistan'; + public const _PLW = 'Palau'; + public const _PSE = 'Palestine, State of'; + public const _PAN = 'Panama'; + public const _PNG = 'Papua New Guinea'; + public const _PRY = 'Paraguay'; + public const _PER = 'Peru'; + public const _PHL = 'Philippines'; + public const _PCN = 'Pitcairn'; + public const _POL = 'Poland'; + public const _PRT = 'Portugal'; + public const _PRI = 'Puerto Rico'; + public const _QAT = 'Qatar'; + public const _REU = 'Réunion'; + public const _ROU = 'Romania'; + public const _RUS = 'Russian Federation'; + public const _RWA = 'Rwanda'; + public const _BLM = 'Saint Barthélemy'; + public const _SHN = 'Saint Helena, Ascension and Tristan da Cunha'; + public const _KNA = 'Saint Kitts and Nevis'; + public const _LCA = 'Saint Lucia'; + public const _MAF = 'Saint Martin (French part)'; + public const _SPM = 'Saint Pierre and Miquelon'; + public const _VCT = 'Saint Vincent and the Grenadines'; + public const _WSM = 'Samoa'; + public const _SMR = 'San Marino'; + public const _STP = 'Sao Tome and Principe'; + public const _SAU = 'Saudi Arabia'; + public const _SEN = 'Senegal'; + public const _SRB = 'Serbia'; + public const _SYC = 'Seychelles'; + public const _SLE = 'Sierra Leone'; + public const _SGP = 'Singapore'; + public const _SXM = 'Sint Maarten (Dutch part)'; + public const _SVK = 'Slovakia'; + public const _SVN = 'Slovenia'; + public const _SLB = 'Solomon Islands'; + public const _SOM = 'Somalia'; + public const _ZAF = 'South Africa'; + public const _SGS = 'South Georgia and the South Sandwich Islands'; + public const _SSD = 'South Sudan'; + public const _ESP = 'Spain'; + public const _LKA = 'Sri Lanka'; + public const _SDN = 'Sudan'; + public const _SUR = 'Suriname'; + public const _SJM = 'Svalbard and Jan Mayen'; + public const _SWZ = 'Swaziland'; + public const _SWE = 'Sweden'; + public const _CHE = 'Switzerland'; + public const _SYR = 'Syrian Arab Republic'; + public const _TWN = 'Taiwan, Province of China[a]'; + public const _TJK = 'Tajikistan'; + public const _TZA = 'Tanzania, United Republic of'; + public const _THA = 'Thailand'; + public const _TLS = 'Timor-Leste'; + public const _TGO = 'Togo'; + public const _TKL = 'Tokelau'; + public const _TON = 'Tonga'; + public const _TTO = 'Trinidad and Tobago'; + public const _TUN = 'Tunisia'; + public const _TUR = 'Turkey'; + public const _TKM = 'Turkmenistan'; + public const _TCA = 'Turks and Caicos Islands'; + public const _TUV = 'Tuvalu'; + public const _UGA = 'Uganda'; + public const _UKR = 'Ukraine'; + public const _ARE = 'United Arab Emirates'; + public const _GBR = 'United Kingdom of Great Britain and Northern Ireland'; + public const _USA = 'United States of America'; + public const _UMI = 'United States Minor Outlying Islands'; + public const _URY = 'Uruguay'; + public const _UZB = 'Uzbekistan'; + public const _VUT = 'Vanuatu'; + public const _VEN = 'Venezuela (Bolivarian Republic of)'; + public const _VNM = 'Viet Nam'; + public const _VGB = 'Virgin Islands (British)'; + public const _VIR = 'Virgin Islands (U.S.)'; + public const _WLF = 'Wallis and Futuna'; + public const _ESH = 'Western Sahara'; + public const _YEM = 'Yemen'; + public const _ZMB = 'Zambia'; + public const _ZWE = 'Zimbabwe'; + public const _XKK = 'Kosovo'; } diff --git a/Localization/ISO3166NumEnum.php b/Localization/ISO3166NumEnum.php index d4fcaf216..3a0d7bb68 100644 --- a/Localization/ISO3166NumEnum.php +++ b/Localization/ISO3166NumEnum.php @@ -27,252 +27,500 @@ use phpOMS\Stdlib\Base\Enum; class ISO3166NumEnum extends Enum { public const _AFG = '004'; + public const _ALA = '248'; + public const _ALB = '008'; + public const _DZA = '012'; + public const _ASM = '016'; + public const _AND = '020'; + public const _AGO = '024'; + public const _AIA = '660'; + public const _ATA = '010'; + public const _ATG = '028'; + public const _ARG = '032'; + public const _ARM = '051'; + public const _ABW = '533'; + public const _AUS = '036'; + public const _AUT = '040'; + public const _AZE = '031'; + public const _BHS = '044'; + public const _BHR = '048'; + public const _BGD = '050'; + public const _BRB = '052'; + public const _BLR = '112'; + public const _BEL = '056'; + public const _BLZ = '084'; + public const _BEN = '204'; + public const _BMU = '060'; + public const _BTN = '064'; + public const _BOL = '068'; + public const _BES = '535'; + public const _BIH = '070'; + public const _BWA = '072'; + public const _BVT = '074'; + public const _BRA = '076'; + public const _IOT = '086'; + public const _BRN = '096'; + public const _BGR = '100'; + public const _BFA = '854'; + public const _BDI = '108'; + public const _CPV = '132'; + public const _KHM = '116'; + public const _CMR = '120'; + public const _CAN = '124'; + public const _CYM = '136'; + public const _CAF = '140'; + public const _TCD = '148'; + public const _CHL = '152'; + public const _CHN = '156'; + public const _CXR = '162'; + public const _CCK = '166'; + public const _COL = '170'; + public const _COM = '174'; + public const _COG = '178'; + public const _COD = '180'; + public const _COK = '184'; + public const _CRI = '188'; + public const _CIV = '384'; + public const _HRV = '191'; + public const _CUB = '192'; + public const _CUW = '531'; + public const _CYP = '196'; + public const _CZE = '203'; + public const _DNK = '208'; + public const _DJI = '262'; + public const _DMA = '212'; + public const _DOM = '214'; + public const _ECU = '218'; + public const _EGY = '818'; + public const _SLV = '222'; + public const _GNQ = '226'; + public const _ERI = '232'; + public const _EST = '233'; + public const _ETH = '231'; + public const _FLK = '238'; + public const _FRO = '234'; + public const _FJI = '242'; + public const _FIN = '246'; + public const _FRA = '250'; + public const _GUF = '254'; + public const _PYF = '258'; + public const _ATF = '260'; + public const _GAB = '266'; + public const _GMB = '270'; + public const _GEO = '268'; + public const _DEU = '276'; + public const _GHA = '288'; + public const _GIB = '292'; + public const _GRC = '300'; + public const _GRL = '304'; + public const _GRD = '308'; + public const _GLP = '312'; + public const _GUM = '316'; + public const _GTM = '320'; + public const _GGY = '831'; + public const _GIN = '324'; + public const _GNB = '624'; + public const _GUY = '328'; + public const _HTI = '332'; + public const _HMD = '334'; + public const _VAT = '336'; + public const _HND = '340'; + public const _HKG = '344'; + public const _HUN = '348'; + public const _ISL = '352'; + public const _IND = '356'; + public const _IDN = '360'; + public const _IRN = '364'; + public const _IRQ = '368'; + public const _IRL = '372'; + public const _IMN = '833'; + public const _ISR = '376'; + public const _ITA = '380'; + public const _JAM = '388'; + public const _JPN = '392'; + public const _JEY = '832'; + public const _JOR = '400'; + public const _KAZ = '398'; + public const _KEN = '404'; + public const _KIR = '296'; + public const _PRK = '408'; + public const _KOR = '410'; + public const _KWT = '414'; + public const _KGZ = '417'; + public const _LAO = '418'; + public const _LVA = '428'; + public const _LBN = '422'; + public const _LSO = '426'; + public const _LBR = '430'; + public const _LBY = '434'; + public const _LIE = '438'; + public const _LTU = '440'; + public const _LUX = '442'; + public const _MAC = '446'; + public const _MKD = '807'; + public const _MDG = '450'; + public const _MWI = '454'; + public const _MYS = '458'; + public const _MDV = '462'; + public const _MLI = '466'; + public const _MLT = '470'; + public const _MHL = '584'; + public const _MTQ = '474'; + public const _MRT = '478'; + public const _MUS = '480'; + public const _MYT = '175'; + public const _MEX = '484'; + public const _FSM = '583'; + public const _MDA = '498'; + public const _MCO = '492'; + public const _MNG = '496'; + public const _MNE = '499'; + public const _MSR = '500'; + public const _MAR = '504'; + public const _MOZ = '508'; + public const _MMR = '104'; + public const _NAM = '516'; + public const _NRU = '520'; + public const _NPL = '524'; + public const _NLD = '528'; + public const _NCL = '540'; + public const _NZL = '554'; + public const _NIC = '558'; + public const _NER = '562'; + public const _NGA = '566'; + public const _NIU = '570'; + public const _NFK = '574'; + public const _MNP = '580'; + public const _NOR = '578'; + public const _OMN = '512'; + public const _PAK = '586'; + public const _PLW = '585'; + public const _PSE = '275'; + public const _PAN = '591'; + public const _PNG = '598'; + public const _PRY = '600'; + public const _PER = '604'; + public const _PHL = '608'; + public const _PCN = '612'; + public const _POL = '616'; + public const _PRT = '620'; + public const _PRI = '630'; + public const _QAT = '634'; + public const _REU = '638'; + public const _ROU = '642'; + public const _RUS = '643'; + public const _RWA = '646'; + public const _BLM = '652'; + public const _SHN = '654'; + public const _KNA = '659'; + public const _LCA = '662'; + public const _MAF = '663'; + public const _SPM = '666'; + public const _VCT = '670'; + public const _WSM = '882'; + public const _SMR = '674'; + public const _STP = '678'; + public const _SAU = '682'; + public const _SEN = '686'; + public const _SRB = '688'; + public const _SYC = '690'; + public const _SLE = '694'; + public const _SGP = '702'; + public const _SXM = '534'; + public const _SVK = '703'; + public const _SVN = '705'; + public const _SLB = '090'; + public const _SOM = '706'; + public const _ZAF = '710'; + public const _SGS = '239'; + public const _SSD = '728'; + public const _ESP = '724'; + public const _LKA = '144'; + public const _SDN = '729'; + public const _SUR = '740'; + public const _SJM = '744'; + public const _SWZ = '748'; + public const _SWE = '752'; + public const _CHE = '756'; + public const _SYR = '760'; + public const _TWN = '158'; + public const _TJK = '762'; + public const _TZA = '834'; + public const _THA = '764'; + public const _TLS = '626'; + public const _TGO = '768'; + public const _TKL = '772'; + public const _TON = '776'; + public const _TTO = '780'; + public const _TUN = '788'; + public const _TUR = '792'; + public const _TKM = '795'; + public const _TCA = '796'; + public const _TUV = '798'; + public const _UGA = '800'; + public const _UKR = '804'; + public const _ARE = '784'; + public const _GBR = '826'; + public const _USA = '840'; + public const _UMI = '581'; + public const _URY = '858'; + public const _UZB = '860'; + public const _VUT = '548'; + public const _VEN = '862'; + public const _VNM = '704'; + public const _VGB = '092'; + public const _VIR = '850'; + public const _WLF = '876'; + public const _ESH = '732'; + public const _YEM = '887'; + public const _ZMB = '894'; + public const _ZWE = '716'; } diff --git a/Localization/ISO3166TwoEnum.php b/Localization/ISO3166TwoEnum.php index 02e111f75..3d80a05f7 100644 --- a/Localization/ISO3166TwoEnum.php +++ b/Localization/ISO3166TwoEnum.php @@ -27,253 +27,502 @@ use phpOMS\Stdlib\Base\Enum; class ISO3166TwoEnum extends Enum { public const _AFG = 'AF'; + public const _ALA = 'AX'; + public const _ALB = 'AL'; + public const _DZA = 'DZ'; + public const _ASM = 'AS'; + public const _AND = 'AD'; + public const _AGO = 'AO'; + public const _AIA = 'AI'; + public const _ATA = 'AQ'; + public const _ATG = 'AG'; + public const _ARG = 'AR'; + public const _ARM = 'AM'; + public const _ABW = 'AW'; + public const _AUS = 'AU'; + public const _AUT = 'AT'; + public const _AZE = 'AZ'; + public const _BHS = 'BS'; + public const _BHR = 'BH'; + public const _BGD = 'BD'; + public const _BRB = 'BB'; + public const _BLR = 'BY'; + public const _BEL = 'BE'; + public const _BLZ = 'BZ'; + public const _BEN = 'BJ'; + public const _BMU = 'BM'; + public const _BTN = 'BT'; + public const _BOL = 'BO'; + public const _BES = 'BQ'; + public const _BIH = 'BA'; + public const _BWA = 'BW'; + public const _BVT = 'BV'; + public const _BRA = 'BR'; + public const _IOT = 'IO'; + public const _BRN = 'BN'; + public const _BGR = 'BG'; + public const _BFA = 'BF'; + public const _BDI = 'BI'; + public const _CPV = 'CV'; + public const _KHM = 'KH'; + public const _CMR = 'CM'; + public const _CAN = 'CA'; + public const _CYM = 'KY'; + public const _CAF = 'CF'; + public const _TCD = 'TD'; + public const _CHL = 'CL'; + public const _CHN = 'CN'; + public const _CXR = 'CX'; + public const _CCK = 'CC'; + public const _COL = 'CO'; + public const _COM = 'KM'; + public const _COG = 'CG'; + public const _COD = 'CD'; + public const _COK = 'CK'; + public const _CRI = 'CR'; + public const _CIV = 'CI'; + public const _HRV = 'HR'; + public const _CUB = 'CU'; + public const _CUW = 'CW'; + public const _CYP = 'CY'; + public const _CZE = 'CZ'; + public const _DNK = 'DK'; + public const _DJI = 'DJ'; + public const _DMA = 'DM'; + public const _DOM = 'DO'; + public const _ECU = 'EC'; + public const _EGY = 'EG'; + public const _SLV = 'SV'; + public const _GNQ = 'GQ'; + public const _ERI = 'ER'; + public const _EST = 'EE'; + public const _ETH = 'ET'; + public const _FLK = 'FK'; + public const _FRO = 'FO'; + public const _FJI = 'FJ'; + public const _FIN = 'FI'; + public const _FRA = 'FR'; + public const _GUF = 'GF'; + public const _PYF = 'PF'; + public const _ATF = 'TF'; + public const _GAB = 'GA'; + public const _GMB = 'GM'; + public const _GEO = 'GE'; + public const _DEU = 'DE'; + public const _GHA = 'GH'; + public const _GIB = 'GI'; + public const _GRC = 'GR'; + public const _GRL = 'GL'; + public const _GRD = 'GD'; + public const _GLP = 'GP'; + public const _GUM = 'GU'; + public const _GTM = 'GT'; + public const _GGY = 'GG'; + public const _GIN = 'GN'; + public const _GNB = 'GW'; + public const _GUY = 'GY'; + public const _HTI = 'HT'; + public const _HMD = 'HM'; + public const _VAT = 'VA'; + public const _HND = 'HN'; + public const _HKG = 'HK'; + public const _HUN = 'HU'; + public const _ISL = 'IS'; + public const _IND = 'IN'; + public const _IDN = 'ID'; + public const _IRN = 'IR'; + public const _IRQ = 'IQ'; + public const _IRL = 'IE'; + public const _IMN = 'IM'; + public const _ISR = 'IL'; + public const _ITA = 'IT'; + public const _JAM = 'JM'; + public const _JPN = 'JP'; + public const _JEY = 'JE'; + public const _JOR = 'JO'; + public const _KAZ = 'KZ'; + public const _KEN = 'KE'; + public const _KIR = 'KI'; + public const _PRK = 'KP'; + public const _KOR = 'KR'; + public const _KWT = 'KW'; + public const _KGZ = 'KG'; + public const _LAO = 'LA'; + public const _LVA = 'LV'; + public const _LBN = 'LB'; + public const _LSO = 'LS'; + public const _LBR = 'LR'; + public const _LBY = 'LY'; + public const _LIE = 'LI'; + public const _LTU = 'LT'; + public const _LUX = 'LU'; + public const _MAC = 'MO'; + public const _MKD = 'MK'; + public const _MDG = 'MG'; + public const _MWI = 'MW'; + public const _MYS = 'MY'; + public const _MDV = 'MV'; + public const _MLI = 'ML'; + public const _MLT = 'MT'; + public const _MHL = 'MH'; + public const _MTQ = 'MQ'; + public const _MRT = 'MR'; + public const _MUS = 'MU'; + public const _MYT = 'YT'; + public const _MEX = 'MX'; + public const _FSM = 'FM'; + public const _MDA = 'MD'; + public const _MCO = 'MC'; + public const _MNG = 'MN'; + public const _MNE = 'ME'; + public const _MSR = 'MS'; + public const _MAR = 'MA'; + public const _MOZ = 'MZ'; + public const _MMR = 'MM'; + public const _NAM = 'NA'; + public const _NRU = 'NR'; + public const _NPL = 'NP'; + public const _NLD = 'NL'; + public const _NCL = 'NC'; + public const _NZL = 'NZ'; + public const _NIC = 'NI'; + public const _NER = 'NE'; + public const _NGA = 'NG'; + public const _NIU = 'NU'; + public const _NFK = 'NF'; + public const _MNP = 'MP'; + public const _NOR = 'NO'; + public const _OMN = 'OM'; + public const _PAK = 'PK'; + public const _PLW = 'PW'; + public const _PSE = 'PS'; + public const _PAN = 'PA'; + public const _PNG = 'PG'; + public const _PRY = 'PY'; + public const _PER = 'PE'; + public const _PHL = 'PH'; + public const _PCN = 'PN'; + public const _POL = 'PL'; + public const _PRT = 'PT'; + public const _PRI = 'PR'; + public const _QAT = 'QA'; + public const _REU = 'RE'; + public const _ROU = 'RO'; + public const _RUS = 'RU'; + public const _RWA = 'RW'; + public const _BLM = 'BL'; + public const _SHN = 'SH'; + public const _KNA = 'KN'; + public const _LCA = 'LC'; + public const _MAF = 'MF'; + public const _SPM = 'PM'; + public const _VCT = 'VC'; + public const _WSM = 'WS'; + public const _SMR = 'SM'; + public const _STP = 'ST'; + public const _SAU = 'SA'; + public const _SEN = 'SN'; + public const _SRB = 'RS'; + public const _SYC = 'SC'; + public const _SLE = 'SL'; + public const _SGP = 'SG'; + public const _SXM = 'SX'; + public const _SVK = 'SK'; + public const _SVN = 'SI'; + public const _SLB = 'SB'; + public const _SOM = 'SO'; + public const _ZAF = 'ZA'; + public const _SGS = 'GS'; + public const _SSD = 'SS'; + public const _ESP = 'ES'; + public const _LKA = 'LK'; + public const _SDN = 'SD'; + public const _SUR = 'SR'; + public const _SJM = 'SJ'; + public const _SWZ = 'SZ'; + public const _SWE = 'SE'; + public const _CHE = 'CH'; + public const _SYR = 'SY'; + public const _TWN = 'TW'; + public const _TJK = 'TJ'; + public const _TZA = 'TZ'; + public const _THA = 'TH'; + public const _TLS = 'TL'; + public const _TGO = 'TG'; + public const _TKL = 'TK'; + public const _TON = 'TO'; + public const _TTO = 'TT'; + public const _TUN = 'TN'; + public const _TUR = 'TR'; + public const _TKM = 'TM'; + public const _TCA = 'TC'; + public const _TUV = 'TV'; + public const _UGA = 'UG'; + public const _UKR = 'UA'; + public const _ARE = 'AE'; + public const _GBR = 'GB'; + public const _USA = 'US'; + public const _UMI = 'UM'; + public const _URY = 'UY'; + public const _UZB = 'UZ'; + public const _VUT = 'VU'; + public const _VEN = 'VE'; + public const _VNM = 'VN'; + public const _VGB = 'VG'; + public const _VIR = 'VI'; + public const _WLF = 'WF'; + public const _ESH = 'EH'; + public const _YEM = 'YE'; + public const _ZMB = 'ZM'; + public const _ZWE = 'ZW'; + public const _XKK = 'XK'; } diff --git a/Localization/ISO4217CharEnum.php b/Localization/ISO4217CharEnum.php index adb964928..d5801b4de 100644 --- a/Localization/ISO4217CharEnum.php +++ b/Localization/ISO4217CharEnum.php @@ -27,117 +27,230 @@ use phpOMS\Stdlib\Base\Enum; class ISO4217CharEnum extends Enum { public const _ALL = 'ALL'; + public const _AFN = 'AFN'; + public const _ARS = 'ARS'; + public const _AWG = 'AWG'; + public const _AUD = 'AUD'; + public const _AZN = 'AZN'; + public const _BSD = 'BSD'; + public const _BBD = 'BBD'; + public const _BYR = 'BYR'; + public const _BZD = 'BZD'; + public const _BMD = 'BMD'; + public const _BOB = 'BOB'; + public const _BAM = 'BAM'; + public const _BWP = 'BWP'; + public const _BGN = 'BGN'; + public const _BRL = 'BRL'; + public const _BND = 'BND'; + public const _KHR = 'KHR'; + public const _CAD = 'CAD'; + public const _KYD = 'KYD'; + public const _CLP = 'CLP'; + public const _CNY = 'CNY'; + public const _COP = 'COP'; + public const _CRC = 'CRC'; + public const _HRK = 'HRK'; + public const _CUP = 'CUP'; + public const _CZK = 'CZK'; + public const _DKK = 'DKK'; + public const _DOP = 'DOP'; + public const _XCD = 'XCD'; + public const _EGP = 'EGP'; + public const _SVC = 'SVC'; + public const _EEK = 'EEK'; + public const _EUR = 'EUR'; + public const _FKP = 'FKP'; + public const _FJD = 'FJD'; + public const _GHC = 'GHC'; + public const _GIP = 'GIP'; + public const _GTQ = 'GTQ'; + public const _GGP = 'GGP'; + public const _GYD = 'GYD'; + public const _HNL = 'HNL'; + public const _HKD = 'HKD'; + public const _HUF = 'HUF'; + public const _ISK = 'ISK'; + public const _INR = 'INR'; + public const _IDR = 'IDR'; + public const _IRR = 'IRR'; + public const _IMP = 'IMP'; + public const _ILS = 'ILS'; + public const _JMD = 'JMD'; + public const _JPY = 'JPY'; + public const _JEP = 'JEP'; + public const _KZT = 'KZT'; + public const _KES = 'KES'; + public const _KGS = 'KGS'; + public const _LAK = 'LAK'; + public const _LVL = 'LVL'; + public const _LBP = 'LBP'; + public const _LRD = 'LRD'; + public const _LTL = 'LTL'; + public const _MKD = 'MKD'; + public const _MYR = 'MYR'; + public const _MUR = 'MUR'; + public const _MXN = 'MXN'; + public const _MNT = 'MNT'; + public const _MZN = 'MZN'; + public const _NAD = 'NAD'; + public const _NPR = 'NPR'; + public const _ANG = 'ANG'; + public const _NZD = 'NZD'; + public const _NIO = 'NIO'; + public const _NGN = 'NGN'; + public const _KPW = 'KPW'; + public const _NOK = 'NOK'; + public const _OMR = 'OMR'; + public const _PKR = 'PKR'; + public const _PAB = 'PAB'; + public const _PYG = 'PYG'; + public const _PEN = 'PEN'; + public const _PHP = 'PHP'; + public const _PLN = 'PLN'; + public const _QAR = 'QAR'; + public const _RON = 'RON'; + public const _RUB = 'RUB'; + public const _SHP = 'SHP'; + public const _SAR = 'SAR'; + public const _RSD = 'RSD'; + public const _SCR = 'SCR'; + public const _SGD = 'SGD'; + public const _SBD = 'SBD'; + public const _SOS = 'SOS'; + public const _ZAR = 'ZAR'; + public const _KRW = 'KRW'; + public const _LKR = 'LKR'; + public const _SEK = 'SEK'; + public const _CHF = 'CHF'; + public const _SRD = 'SRD'; + public const _SYP = 'SYP'; + public const _TWD = 'TWD'; + public const _THB = 'THB'; + public const _TTD = 'TTD'; + public const _TRY = 'TRY'; + public const _TRL = 'TRL'; + public const _TVD = 'TVD'; + public const _UAH = 'UAH'; + public const _GBP = 'GBP'; + public const _USD = 'USD'; + public const _UYU = 'UYU'; + public const _UZS = 'UZS'; + public const _VEF = 'VEF'; + public const _VND = 'VND'; + public const _YER = 'YER'; + public const _ZWD = 'ZWD'; } diff --git a/Localization/ISO4217DecimalEnum.php b/Localization/ISO4217DecimalEnum.php index 7c16a53b5..9031d051e 100644 --- a/Localization/ISO4217DecimalEnum.php +++ b/Localization/ISO4217DecimalEnum.php @@ -27,181 +27,358 @@ use phpOMS\Stdlib\Base\Enum; class ISO4217DecimalEnum extends Enum { public const _AED = 2; + public const _AFN = 2; + public const _ALL = 2; + public const _AMD = 2; + public const _ANG = 2; + public const _AOA = 2; + public const _ARS = 2; + public const _AUD = 2; + public const _AWG = 2; + public const _AZN = 2; + public const _BAM = 2; + public const _BBD = 2; + public const _BDT = 2; + public const _BGN = 2; + public const _BHD = 3; + public const _BIF = 0; + public const _BMD = 2; + public const _BND = 2; + public const _BOB = 2; + public const _BOV = 2; + public const _BRL = 2; + public const _BSD = 2; + public const _BTN = 2; + public const _BWP = 2; + public const _BYR = 0; + public const _BZD = 2; + public const _CAD = 2; + public const _CDF = 2; + public const _CHE = 2; + public const _CHF = 2; + public const _CHW = 2; + public const _CLF = 4; + public const _CLP = 0; + public const _CNY = 2; + public const _COP = 2; + public const _COU = 2; + public const _CRC = 2; + public const _CUC = 2; + public const _CUP = 2; + public const _CVE = 0; + public const _CZK = 2; + public const _DJF = 0; + public const _DKK = 2; + public const _DOP = 2; + public const _DZD = 2; + public const _EGP = 2; + public const _ERN = 2; + public const _ETB = 2; + public const _EUR = 2; + public const _FJD = 2; + public const _FKP = 2; + public const _GBP = 2; + public const _GEL = 2; + public const _GHS = 2; + public const _GIP = 2; + public const _GMD = 2; + public const _GNF = 0; + public const _GTQ = 2; + public const _GYD = 2; + public const _HKD = 2; + public const _HNL = 2; + public const _HRK = 2; + public const _HTG = 2; + public const _HUF = 2; + public const _IDR = 2; + public const _ILS = 2; + public const _INR = 2; + public const _IQD = 3; + public const _IRR = 2; + public const _ISK = 0; + public const _JMD = 2; + public const _JOD = 3; + public const _JPY = 0; + public const _KES = 2; + public const _KGS = 2; + public const _KHR = 2; + public const _KMF = 0; + public const _KPW = 2; + public const _KRW = 0; + public const _KWD = 3; + public const _KYD = 2; + public const _KZT = 2; + public const _LAK = 2; + public const _LBP = 2; + public const _LKR = 2; + public const _LRD = 2; + public const _LSL = 2; + public const _LYD = 3; + public const _MAD = 2; + public const _MDL = 2; + public const _MGA = 1; + public const _MKD = 2; + public const _MMK = 2; + public const _MNT = 2; + public const _MOP = 2; + public const _MRO = 1; + public const _MUR = 2; + public const _MVR = 2; + public const _MWK = 2; + public const _MXN = 2; + public const _MXV = 2; + public const _MYR = 2; + public const _MZN = 2; + public const _NAD = 2; + public const _NGN = 2; + public const _NIO = 2; + public const _NOK = 2; + public const _NPR = 2; + public const _NZD = 2; + public const _OMR = 3; + public const _PAB = 2; + public const _PEN = 2; + public const _PGK = 2; + public const _PHP = 2; + public const _PKR = 2; + public const _PLN = 2; + public const _PYG = 0; + public const _QAR = 2; + public const _RON = 2; + public const _RSD = 2; + public const _RUB = 2; + public const _RWF = 0; + public const _SAR = 2; + public const _SBD = 2; + public const _SCR = 2; + public const _SDG = 2; + public const _SEK = 2; + public const _SGD = 2; + public const _SHP = 2; + public const _SLL = 2; + public const _SOS = 2; + public const _SRD = 2; + public const _SSP = 2; + public const _STD = 2; + public const _SYP = 2; + public const _SZL = 2; + public const _THB = 2; + public const _TJS = 2; + public const _TMT = 2; + public const _TND = 3; + public const _TOP = 2; + public const _TRY = 2; + public const _TTD = 2; + public const _TWD = 2; + public const _TZS = 2; + public const _UAH = 2; + public const _UGX = 0; + public const _USD = 2; + public const _USN = 2; + public const _USS = 2; + public const _UYI = 0; + public const _UYU = 2; + public const _UZS = 2; + public const _VEF = 2; + public const _VND = 0; + public const _VUV = 0; + public const _WST = 2; + public const _XAF = 0; + public const _XAG = -1; + public const _XAU = -1; + public const _XBA = -1; + public const _XBB = -1; + public const _XBC = -1; + public const _XBD = -1; + public const _XCD = 2; + public const _XDR = -1; + public const _XFU = -1; + public const _XOF = 0; + public const _XPD = -1; + public const _XPF = 0; + public const _XPT = -1; + public const _XSU = -1; + public const _XTS = -1; + public const _XUA = -1; + public const _XXX = -1; + public const _YER = 2; + public const _ZAR = 2; + public const _ZMW = 2; } diff --git a/Localization/ISO4217Enum.php b/Localization/ISO4217Enum.php index ad690a206..5b1e5d0ff 100644 --- a/Localization/ISO4217Enum.php +++ b/Localization/ISO4217Enum.php @@ -27,117 +27,230 @@ use phpOMS\Stdlib\Base\Enum; class ISO4217Enum extends Enum { public const _ALL = 'Albania, Leke'; + public const _AFN = 'Afghanistan, Afghanis'; + public const _ARS = 'Argentina, Pesos'; + public const _AWG = 'Aruba, Guilders'; + public const _AUD = 'Australia, Dollars'; + public const _AZN = 'Azerbaijan, New Manats'; + public const _BSD = 'Bahamas, Dollars'; + public const _BBD = 'Barbados, Dollars'; + public const _BYR = 'Belarus, Rubles'; + public const _BZD = 'Belize, Dollars'; + public const _BMD = 'Bermuda, Dollars'; + public const _BOB = 'Bolivia, Bolivianos'; + public const _BAM = 'Bosnia and Herzegovina, Convertible Marka'; + public const _BWP = 'Botswana, Pulas'; + public const _BGN = 'Bulgaria, Leva'; + public const _BRL = 'Brazil, Reais'; + public const _BND = 'Brunei Darussalam, Dollars'; + public const _KHR = 'Cambodia, Riels'; + public const _CAD = 'Canada, Dollars'; + public const _KYD = 'Cayman Islands, Dollars'; + public const _CLP = 'Chile, Pesos'; + public const _CNY = 'China, Yuan Renminbi'; + public const _COP = 'Colombia, Pesos'; + public const _CRC = 'Costa Rica, Colón'; + public const _HRK = 'Croatia, Kuna'; + public const _CUP = 'Cuba, Pesos'; + public const _CZK = 'Czech Republic, Koruny'; + public const _DKK = 'Denmark, Kroner'; + public const _DOP = 'Dominican Republic, Pesos'; + public const _XCD = 'East Caribbean, Dollars'; + public const _EGP = 'Egypt, Pounds'; + public const _SVC = 'El Salvador, Colones'; + public const _EEK = 'Estonia, Krooni'; + public const _EUR = 'Euro'; + public const _FKP = 'Falkland Islands, Pounds'; + public const _FJD = 'Fiji, Dollars'; + public const _GHC = 'Ghana, Cedis'; + public const _GIP = 'Gibraltar, Pounds'; + public const _GTQ = 'Guatemala, Quetzales'; + public const _GGP = 'Guernsey, Pounds'; + public const _GYD = 'Guyana, Dollars'; + public const _HNL = 'Honduras, Lempiras'; + public const _HKD = 'Hong Kong, Dollars'; + public const _HUF = 'Hungary, Forint'; + public const _ISK = 'Iceland, Kronur'; + public const _INR = 'India, Rupees'; + public const _IDR = 'Indonesia, Rupiahs'; + public const _IRR = 'Iran, Rials'; + public const _IMP = 'Isle of Man, Pounds'; + public const _ILS = 'Israel, New Shekels'; + public const _JMD = 'Jamaica, Dollars'; + public const _JPY = 'Japan, Yen'; + public const _JEP = 'Jersey, Pounds'; + public const _KZT = 'Kazakhstan, Tenge'; + public const _KES = 'Kenyan Shilling'; + public const _KGS = 'Kyrgyzstan, Soms'; + public const _LAK = 'Laos, Kips'; + public const _LVL = 'Latvia, Lati'; + public const _LBP = 'Lebanon, Pounds'; + public const _LRD = 'Liberia, Dollars'; + public const _LTL = 'Lithuania, Litai'; + public const _MKD = 'Macedonia, Denars'; + public const _MYR = 'Malaysia, Ringgits'; + public const _MUR = 'Mauritius, Rupees'; + public const _MXN = 'Mexico, Pesos'; + public const _MNT = 'Mongolia, Tugriks'; + public const _MZN = 'Mozambique, Meticais'; + public const _NAD = 'Namibia, Dollars'; + public const _NPR = 'Nepal, Rupees'; + public const _ANG = 'Netherlands Antilles, Guilders'; + public const _NZD = 'New Zealand, Dollars'; + public const _NIO = 'Nicaragua, Cordobas'; + public const _NGN = 'Nigeria, Nairas'; + public const _KPW = 'North Korea, Won'; + public const _NOK = 'Norway, Krone'; + public const _OMR = 'Oman, Rials'; + public const _PKR = 'Pakistan, Rupees'; + public const _PAB = 'Panama, Balboa'; + public const _PYG = 'Paraguay, Guarani'; + public const _PEN = 'Peru, Nuevos Soles'; + public const _PHP = 'Philippines, Pesos'; + public const _PLN = 'Poland, Zlotych'; + public const _QAR = 'Qatar, Rials'; + public const _RON = 'Romania, New Lei'; + public const _RUB = 'Russia, Rubles'; + public const _SHP = 'Saint Helena, Pounds'; + public const _SAR = 'Saudi Arabia, Riyals'; + public const _RSD = 'Serbia, Dinars'; + public const _SCR = 'Seychelles, Rupees'; + public const _SGD = 'Singapore, Dollars'; + public const _SBD = 'Solomon Islands, Dollars'; + public const _SOS = 'Somalia, Shillings'; + public const _ZAR = 'South Africa, Rand'; + public const _KRW = 'South Korea, Won'; + public const _LKR = 'Sri Lanka, Rupees'; + public const _SEK = 'Sweden, Kronor'; + public const _CHF = 'Switzerland, Francs'; + public const _SRD = 'Suriname, Dollars'; + public const _SYP = 'Syria, Pounds'; + public const _TWD = 'Taiwan, New Dollars'; + public const _THB = 'Thailand, Baht'; + public const _TTD = 'Trinidad and Tobago, Dollars'; + public const _TRY = 'Turkey, Lira'; + public const _TRL = 'Turkey, Liras'; + public const _TVD = 'Tuvalu, Dollars'; + public const _UAH = 'Ukraine, Hryvnia'; + public const _GBP = 'United Kingdom, Pounds'; + public const _USD = 'United States of America, Dollars'; + public const _UYU = 'Uruguay, Pesos'; + public const _UZS = 'Uzbekistan, Sums'; + public const _VEF = 'Venezuela, Bolivares Fuertes'; + public const _VND = 'Vietnam, Dong'; + public const _YER = 'Yemen, Rials'; + public const _ZWD = 'Zimbabwe, Zimbabwe Dollars'; } diff --git a/Localization/ISO4217NumEnum.php b/Localization/ISO4217NumEnum.php index 1d282b9ee..34cc568df 100644 --- a/Localization/ISO4217NumEnum.php +++ b/Localization/ISO4217NumEnum.php @@ -27,181 +27,358 @@ use phpOMS\Stdlib\Base\Enum; class ISO4217NumEnum extends Enum { public const _AED = '784'; + public const _AFN = '971'; + public const _ALL = '008'; + public const _AMD = '051'; + public const _ANG = '532'; + public const _AOA = '973'; + public const _ARS = '032'; + public const _AUD = '036'; + public const _AWG = '533'; + public const _AZN = '944'; + public const _BAM = '977'; + public const _BBD = '052'; + public const _BDT = '050'; + public const _BGN = '975'; + public const _BHD = '048'; + public const _BIF = '108'; + public const _BMD = '060'; + public const _BND = '096'; + public const _BOB = '068'; + public const _BOV = '984'; + public const _BRL = '986'; + public const _BSD = '044'; + public const _BTN = '064'; + public const _BWP = '072'; + public const _BYR = '974'; + public const _BZD = '084'; + public const _CAD = '124'; + public const _CDF = '976'; + public const _CHE = '947'; + public const _CHF = '756'; + public const _CHW = '948'; + public const _CLF = '990'; + public const _CLP = '152'; + public const _CNY = '156'; + public const _COP = '170'; + public const _COU = '970'; + public const _CRC = '188'; + public const _CUC = '931'; + public const _CUP = '192'; + public const _CVE = '132'; + public const _CZK = '203'; + public const _DJF = '262'; + public const _DKK = '208'; + public const _DOP = '214'; + public const _DZD = '012'; + public const _EGP = '818'; + public const _ERN = '232'; + public const _ETB = '230'; + public const _EUR = '978'; + public const _FJD = '242'; + public const _FKP = '238'; + public const _GBP = '826'; + public const _GEL = '981'; + public const _GHS = '936'; + public const _GIP = '292'; + public const _GMD = '270'; + public const _GNF = '324'; + public const _GTQ = '320'; + public const _GYD = '328'; + public const _HKD = '344'; + public const _HNL = '340'; + public const _HRK = '191'; + public const _HTG = '332'; + public const _HUF = '348'; + public const _IDR = '360'; + public const _ILS = '376'; + public const _INR = '356'; + public const _IQD = '368'; + public const _IRR = '364'; + public const _ISK = '352'; + public const _JMD = '388'; + public const _JOD = '400'; + public const _JPY = '392'; + public const _KES = '404'; + public const _KGS = '417'; + public const _KHR = '116'; + public const _KMF = '174'; + public const _KPW = '408'; + public const _KRW = '410'; + public const _KWD = '414'; + public const _KYD = '136'; + public const _KZT = '398'; + public const _LAK = '418'; + public const _LBP = '422'; + public const _LKR = '144'; + public const _LRD = '430'; + public const _LSL = '426'; + public const _LYD = '434'; + public const _MAD = '504'; + public const _MDL = '498'; + public const _MGA = '969'; + public const _MKD = '807'; + public const _MMK = '104'; + public const _MNT = '496'; + public const _MOP = '446'; + public const _MRO = '478'; + public const _MUR = '480'; + public const _MVR = '462'; + public const _MWK = '454'; + public const _MXN = '484'; + public const _MXV = '979'; + public const _MYR = '458'; + public const _MZN = '943'; + public const _NAD = '516'; + public const _NGN = '566'; + public const _NIO = '558'; + public const _NOK = '578'; + public const _NPR = '524'; + public const _NZD = '554'; + public const _OMR = '512'; + public const _PAB = '590'; + public const _PEN = '604'; + public const _PGK = '598'; + public const _PHP = '608'; + public const _PKR = '586'; + public const _PLN = '985'; + public const _PYG = '600'; + public const _QAR = '634'; + public const _RON = '946'; + public const _RSD = '941'; + public const _RUB = '643'; + public const _RWF = '646'; + public const _SAR = '682'; + public const _SBD = '090'; + public const _SCR = '690'; + public const _SDG = '938'; + public const _SEK = '752'; + public const _SGD = '702'; + public const _SHP = '654'; + public const _SLL = '694'; + public const _SOS = '706'; + public const _SRD = '968'; + public const _SSP = '728'; + public const _STD = '678'; + public const _SYP = '760'; + public const _SZL = '748'; + public const _THB = '764'; + public const _TJS = '972'; + public const _TMT = '934'; + public const _TND = '788'; + public const _TOP = '776'; + public const _TRY = '949'; + public const _TTD = '780'; + public const _TWD = '901'; + public const _TZS = '834'; + public const _UAH = '980'; + public const _UGX = '800'; + public const _USD = '840'; + public const _USN = '997'; + public const _USS = '998'; + public const _UYI = '940'; + public const _UYU = '858'; + public const _UZS = '860'; + public const _VEF = '937'; + public const _VND = '704'; + public const _VUV = '548'; + public const _WST = '882'; + public const _XAF = '950'; + public const _XAG = '961'; + public const _XAU = '959'; + public const _XBA = '955'; + public const _XBB = '956'; + public const _XBC = '957'; + public const _XBD = '958'; + public const _XCD = '951'; + public const _XDR = '960'; + public const _XFU = 'Nil'; + public const _XOF = '952'; + public const _XPD = '964'; + public const _XPF = '953'; + public const _XPT = '962'; + public const _XSU = '994'; + public const _XTS = '963'; + public const _XUA = '965'; + public const _XXX = '999'; + public const _YER = '886'; + public const _ZAR = '710'; + public const _ZMW = '967'; } diff --git a/Localization/ISO4217SubUnitEnum.php b/Localization/ISO4217SubUnitEnum.php index 33940dc95..2810e7f83 100644 --- a/Localization/ISO4217SubUnitEnum.php +++ b/Localization/ISO4217SubUnitEnum.php @@ -27,157 +27,310 @@ use phpOMS\Stdlib\Base\Enum; class ISO4217SubUnitEnum extends Enum { public const _AED = 100; + public const _AFN = 100; + public const _ALL = 100; + public const _AMD = 100; + public const _ANG = 100; + public const _ARS = 100; + public const _AUD = 100; + public const _AWG = 100; + public const _BAM = 100; + public const _BBD = 100; + public const _BDT = 100; + public const _BGN = 100; + public const _BHD = 1000; + public const _BIF = 100; + public const _BMD = 100; + public const _BND = 100; + public const _BOB = 100; + public const _BRL = 100; + public const _BSD = 100; + public const _BTN = 100; + public const _BWP = 100; + public const _BYR = 100; + public const _BZD = 100; + public const _CAD = 100; + public const _CDF = 100; + public const _CHF = 100; + public const _CLP = 100; + public const _CNY = 100; + public const _COP = 100; + public const _CUC = 100; + public const _CUP = 100; + public const _CVE = 100; + public const _CZK = 100; + public const _DJF = 100; + public const _DKK = 100; + public const _DOP = 100; + public const _DZD = 100; + public const _EGP = 100; + public const _ERN = 100; + public const _EUR = 100; + public const _FJD = 100; + public const _FKP = 100; + public const _GBP = 100; + public const _GEL = 100; + public const _GHS = 100; + public const _GMD = 100; + public const _GNF = 100; + public const _GTQ = 100; + public const _GYD = 100; + public const _HKD = 100; + public const _HNL = 100; + public const _HRK = 100; + public const _HTG = 100; + public const _HUF = 100; + public const _IDR = 100; + public const _ILS = 100; + public const _INR = 100; + public const _IQD = 1000; + public const _IRR = 100; + public const _ISK = 100; + public const _JMD = 100; + public const _JOD = 100; + public const _JPY = 100; + public const _KES = 100; + public const _KGS = 100; + public const _KHR = 100; + public const _KMF = 100; + public const _KPW = 100; + public const _KRW = 100; + public const _KWD = 1000; + public const _KYD = 100; + public const _KZT = 100; + public const _LAK = 100; + public const _LBP = 100; + public const _LKR = 100; + public const _LRD = 100; + public const _LSL = 100; + public const _LTL = 100; + public const _LVL = 100; + public const _LYD = 1000; + public const _MAD = 100; + public const _MDL = 100; + public const _MGA = 5; + public const _MKD = 100; + public const _MMK = 100; + public const _MNT = 100; + public const _MOP = 100; + public const _MRO = 5; + public const _MUR = 100; + public const _MVR = 100; + public const _MWK = 100; + public const _MXN = 100; + public const _MYR = 100; + public const _MZN = 100; + public const _NAD = 100; + public const _NGN = 100; + public const _NIO = 100; + public const _NOK = 100; + public const _NPR = 100; + public const _NZD = 100; + public const _OMR = 1000; + public const _PAB = 100; + public const _PEN = 100; + public const _PGK = 100; + public const _PHP = 100; + public const _PKR = 100; + public const _PLN = 100; + public const _PYG = 100; + public const _QAR = 100; + public const _RON = 100; + public const _RSD = 100; + public const _RUB = 100; + public const _RWF = 100; + public const _SAR = 100; + public const _SBD = 100; + public const _SCR = 100; + public const _SDG = 100; + public const _SEK = 100; + public const _SGD = 100; + public const _SHP = 100; + public const _SLL = 100; + public const _SOS = 100; + public const _SRD = 100; + public const _SSP = 100; + public const _STD = 100; + public const _SVC = 100; + public const _SYP = 100; + public const _SZL = 100; + public const _THB = 100; + public const _TJS = 100; + public const _TMT = 100; + public const _TND = 1000; + public const _TOP = 100; + public const _TRY = 100; + public const _TTD = 100; + public const _TWD = 100; + public const _TZS = 100; + public const _UAH = 100; + public const _UGX = 100; + public const _USD = 100; + public const _UYU = 100; + public const _UZS = 100; + public const _VEF = 100; + public const _VND = 10; + public const _VUV = 0; + public const _WST = 100; + public const _XAF = 100; + public const _XCD = 100; + public const _XOF = 100; + public const _XPF = 100; + public const _YER = 100; + public const _ZAR = 100; + public const _ZMK = 100; + public const _ZWL = 100; } diff --git a/Localization/ISO4217SymbolEnum.php b/Localization/ISO4217SymbolEnum.php index 3b19bec42..a85b538d5 100644 --- a/Localization/ISO4217SymbolEnum.php +++ b/Localization/ISO4217SymbolEnum.php @@ -27,112 +27,220 @@ use phpOMS\Stdlib\Base\Enum; class ISO4217SymbolEnum extends Enum { public const _ALL = 'Lek'; + public const _AFN = '؋'; + public const _ARS = '$'; + public const _AWG = 'ƒ'; + public const _AUD = '$'; + public const _AZN = 'ман'; + public const _BSD = '$'; + public const _BBD = '$'; + public const _BYR = 'p.'; + public const _BZD = 'BZ$'; + public const _BMD = '$'; + public const _BOB = '$b'; + public const _BAM = 'KM'; + public const _BWP = 'P'; + public const _BGN = 'лв'; + public const _BRL = 'R$'; + public const _BND = '$'; + public const _KHR = '៛'; + public const _CAD = '$'; + public const _KYD = '$'; + public const _CLP = '$'; + public const _CNY = '¥'; + public const _COP = '$'; + public const _CRC = '₡'; + public const _HRK = 'kn'; + public const _CUP = '₱'; + public const _CZK = 'Kč'; + public const _DKK = 'kr'; + public const _DOP = 'RD$'; + public const _XCD = '$'; + public const _EGP = '£'; + public const _SVC = '$'; + public const _EUR = '€'; + public const _FKP = '£'; + public const _FJD = '$'; + public const _GHS = '¢'; + public const _GIP = '£'; + public const _GTQ = 'Q'; + public const _GGP = '£'; + public const _GYD = '$'; + public const _HNL = 'L'; + public const _HKD = '$'; + public const _HUF = 'Ft'; + public const _ISK = 'kr'; + public const _INR = 'INR'; + public const _IDR = 'Rp'; + public const _IRR = '﷼'; + public const _IMP = '£'; + public const _ILS = '₪'; + public const _JMD = 'J$'; + public const _JPY = '¥'; + public const _JEP = '£'; + public const _KZT = 'лв'; + public const _KPW = '₩'; + public const _KRW = '₩'; + public const _KGS = 'лв'; + public const _LAK = '₭'; + public const _LBP = '£'; + public const _LRD = '$'; + public const _MKD = 'ден'; + public const _MYR = 'RM'; + public const _MUR = '₨'; + public const _MXN = '$'; + public const _MNT = '₮'; + public const _MZN = 'MT'; + public const _NAD = '$'; + public const _NPR = '₨'; + public const _ANG = 'ƒ'; + public const _NZD = '$'; + public const _NIO = 'C$'; + public const _NGN = '₦'; + public const _NOK = 'kr'; + public const _OMR = '﷼'; + public const _PKR = '₨'; + public const _PAB = 'B/.'; + public const _PYG = 'Gs'; + public const _PEN = 'S/.'; + public const _PHP = '₱'; + public const _PLN = 'zł'; + public const _QAR = '﷼'; + public const _RON = 'lei'; + public const _RUB = 'руб'; + public const _SHP = '£'; + public const _SAR = '﷼'; + public const _RSD = 'Дин.'; + public const _SCR = '₨'; + public const _SGD = '$'; + public const _SBD = '$'; + public const _SOS = 'S'; + public const _ZAR = 'R'; + public const _LKR = '₨'; + public const _SEK = 'kr'; + public const _CHF = 'CHF'; + public const _SRD = '$'; + public const _SYP = '£'; + public const _TWD = 'NT$'; + public const _THB = '฿'; + public const _TTD = 'TT$'; + public const _TRY = 'TRY'; + public const _TVD = '$'; + public const _UAH = '₴'; + public const _GBP = '£'; + public const _USD = '$'; + public const _UYU = '$U'; + public const _UZS = 'лв'; + public const _VEF = 'Bs'; + public const _VND = '₫'; + public const _YER = '﷼'; + public const _ZWD = 'Z$'; } diff --git a/Localization/ISO639Enum.php b/Localization/ISO639Enum.php index 374c333d1..370343a89 100644 --- a/Localization/ISO639Enum.php +++ b/Localization/ISO639Enum.php @@ -27,187 +27,370 @@ use phpOMS\Stdlib\Base\Enum; class ISO639Enum extends Enum { public const _AA = 'Afar'; + public const _AB = 'Abkhaz'; + public const _AE = 'Avestan'; + public const _AF = 'Afrikaans'; + public const _AK = 'Akan'; + public const _AM = 'Amharic'; + public const _AN = 'Aragonese'; + public const _AR = 'Arabic'; + public const _AS = 'Assamese'; + public const _AV = 'Avaric'; + public const _AY = 'Aymara'; + public const _AZ = 'Azerbaijani'; + public const _BA = 'Bashkir'; + public const _BE = 'Belarusian'; + public const _BG = 'Bulgarian'; + public const _BH = 'Bihari'; + public const _BI = 'Bislama'; + public const _BM = 'Bambara'; + public const _BN = 'Bengali'; + public const _BO = 'Tibetan Standard, Tibetan, Central'; + public const _BR = 'Breton'; + public const _BS = 'Bosnian'; + public const _CA = 'Catalan; Valencian'; + public const _CE = 'Chechen'; + public const _CH = 'Chamorro'; + public const _CO = 'Corsican'; + public const _CR = 'Cree'; + public const _CS = 'Czech'; + public const _CU = 'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic'; + public const _CV = 'Chuvash'; + public const _CY = 'Welsh'; + public const _DA = 'Danish'; + public const _DE = 'German'; + public const _DV = 'Divehi; Dhivehi; Maldivian;'; + public const _DZ = 'Dzongkha'; + public const _EE = 'Ewe'; + public const _EL = 'Greek, Modern'; + public const _EN = 'English'; + public const _EO = 'Esperanto'; + public const _ES = 'Spanish; Castilian'; + public const _ET = 'Estonian'; + public const _EU = 'Basque'; + public const _FA = 'Persian'; + public const _FF = 'Fula; Fulah; Pulaar; Pular'; + public const _FI = 'Finnish'; + public const _FJ = 'Fijian'; + public const _FO = 'Faroese'; + public const _FR = 'French'; + public const _FY = 'Western Frisian'; + public const _GA = 'Irish'; + public const _GD = 'Scottish Gaelic; Gaelic'; + public const _GL = 'Galician'; + public const _GN = 'Guaraní'; + public const _GU = 'Gujarati'; + public const _GV = 'Manx'; + public const _HA = 'Hausa'; + public const _HE = 'Hebrew (modern)'; + public const _HI = 'Hindi'; + public const _HO = 'Hiri Motu'; + public const _HR = 'Croatian'; + public const _HT = 'Haitian; Haitian Creole'; + public const _HU = 'Hungarian'; + public const _HY = 'Armenian'; + public const _HZ = 'Herero'; + public const _IA = 'Interlingua'; + public const _ID = 'Indonesian'; + public const _IE = 'Interlingue'; + public const _IG = 'Igbo'; + public const _II = 'Nuosu'; + public const _IK = 'Inupiaq'; + public const _IO = 'Ido'; + public const _IS = 'Icelandic'; + public const _IT = 'Italian'; + public const _IU = 'Inuktitut'; + public const _JA = 'Japanese (ja)'; + public const _JV = 'Javanese (jv)'; + public const _KA = 'Georgian'; + public const _KG = 'Kongo'; + public const _KI = 'Kikuyu, Gikuyu'; + public const _KJ = 'Kwanyama, Kuanyama'; + public const _KK = 'Kazakh'; + public const _KL = 'Kalaallisut, Greenlandic'; + public const _KM = 'Khmer'; + public const _KN = 'Kannada'; + public const _KO = 'Korean'; + public const _KR = 'Kanuri'; + public const _KS = 'Kashmiri'; + public const _KU = 'Kurdish'; + public const _KV = 'Komi'; + public const _KW = 'Cornish'; + public const _KY = 'Kirghiz, Kyrgyz'; + public const _LA = 'Latin'; + public const _LB = 'Luxembourgish, Letzeburgesch'; + public const _LG = 'Luganda'; + public const _LI = 'Limburgish, Limburgan, Limburger'; + public const _LN = 'Lingala'; + public const _LO = 'Lao'; + public const _LT = 'Lithuanian'; + public const _LU = 'Luba-Katanga'; + public const _LV = 'Latvian'; + public const _MG = 'Malagasy'; + public const _MH = 'Marshallese'; + public const _MI = 'Maori'; + public const _MK = 'Macedonian'; + public const _ML = 'Malayalam'; + public const _MN = 'Mongolian'; + public const _MR = 'Marathi (Mara?hi)'; + public const _MS = 'Malay'; + public const _MT = 'Maltese'; + public const _MY = 'Burmese'; + public const _NA = 'Nauru'; + public const _NB = 'Norwegian BokmÃ¥l'; + public const _ND = 'North Ndebele'; + public const _NE = 'Nepali'; + public const _NG = 'Ndonga'; + public const _NL = 'Dutch'; + public const _NN = 'Norwegian Nynorsk'; + public const _NO = 'Norwegian'; + public const _NR = 'South Ndebele'; + public const _NV = 'Navajo, Navaho'; + public const _NY = 'Chichewa; Chewa; Nyanja'; + public const _OC = 'Occitan'; + public const _OJ = 'Ojibwe, Ojibwa'; + public const _OM = 'Oromo'; + public const _OR = 'Oriya'; + public const _OS = 'Ossetian, Ossetic'; + public const _PA = 'Panjabi, Punjabi'; + public const _PI = 'Pali'; + public const _PL = 'Polish'; + public const _PS = 'Pashto, Pushto'; + public const _PT = 'Portuguese'; + public const _QU = 'Quechua'; + public const _RM = 'Romansh'; + public const _RN = 'Kirundi'; + public const _RO = 'Romanian, Moldavian, Moldovan'; + public const _RU = 'Russian'; + public const _RW = 'Kinyarwanda'; + public const _SA = 'Sanskrit (Sa?sk?ta)'; + public const _SC = 'Sardinian'; + public const _SD = 'Sindhi'; + public const _SE = 'Northern Sami'; + public const _SG = 'Sango'; + public const _SI = 'Sinhala, Sinhalese'; + public const _SK = 'Slovak'; + public const _SL = 'Slovene'; + public const _SM = 'Samoan'; + public const _SN = 'Shona'; + public const _SO = 'Somali'; + public const _SQ = 'Albanian'; + public const _SR = 'Serbian'; + public const _SS = 'Swati'; + public const _ST = 'Southern Sotho'; + public const _SU = 'Sundanese'; + public const _SV = 'Swedish'; + public const _SW = 'Swahili'; + public const _TA = 'Tamil'; + public const _TE = 'Telugu'; + public const _TG = 'Tajik'; + public const _TH = 'Thai'; + public const _TI = 'Tigrinya'; + public const _TK = 'Turkmen'; + public const _TL = 'Tagalog'; + public const _TN = 'Tswana'; + public const _TO = 'Tonga (Tonga Islands)'; + public const _TR = 'Turkish'; + public const _TS = 'Tsonga'; + public const _TT = 'Tatar'; + public const _TW = 'Twi'; + public const _TY = 'Tahitian'; + public const _UG = 'Uighur, Uyghur'; + public const _UK = 'Ukrainian'; + public const _UR = 'Urdu'; + public const _UZ = 'Uzbek'; + public const _VE = 'Venda'; + public const _VI = 'Vietnamese'; + public const _VO = 'Volapük'; + public const _WA = 'Walloon'; + public const _WO = 'Wolof'; + public const _XH = 'Xhosa'; + public const _YI = 'Yiddish'; + public const _YO = 'Yoruba'; + public const _ZA = 'Zhuang, Chuang'; + public const _ZH = 'Chinese'; + public const _ZU = 'Zulu'; } diff --git a/Localization/ISO639x1Enum.php b/Localization/ISO639x1Enum.php index ed7791a5e..255f9304a 100644 --- a/Localization/ISO639x1Enum.php +++ b/Localization/ISO639x1Enum.php @@ -27,174 +27,344 @@ use phpOMS\Stdlib\Base\Enum; class ISO639x1Enum extends Enum { public const _AA = 'aa'; + public const _AB = 'ab'; + public const _AF = 'af'; + public const _AK = 'ak'; + public const _SQ = 'sq'; + public const _AM = 'am'; + public const _AR = 'ar'; + public const _AN = 'an'; + public const _HY = 'hy'; + public const _AS = 'as'; + public const _AV = 'av'; + public const _AE = 'ae'; + public const _AY = 'ay'; + public const _AZ = 'az'; + public const _BM = 'bm'; + public const _BA = 'ba'; + public const _EU = 'eu'; + public const _BE = 'be'; + public const _BN = 'bn'; + public const _BH = 'bh'; + public const _BI = 'bi'; + public const _BS = 'bs'; + public const _BR = 'br'; + public const _BG = 'bg'; + public const _MY = 'my'; + public const _CA = 'ca'; + public const _CH = 'ch'; + public const _CE = 'ce'; + public const _NY = 'ny'; + public const _CV = 'cv'; + public const _KW = 'kw'; + public const _CO = 'co'; + public const _CR = 'cr'; + public const _HR = 'hr'; + public const _CS = 'cs'; + public const _DA = 'da'; + public const _DV = 'dv'; + public const _NL = 'nl'; + public const _DZ = 'dz'; + public const _EN = 'en'; + public const _EO = 'eo'; + public const _ET = 'et'; + public const _EE = 'ee'; + public const _FO = 'fo'; + public const _FJ = 'fj'; + public const _FI = 'fi'; + public const _FR = 'fr'; + public const _FF = 'ff'; + public const _GL = 'gl'; + public const _KA = 'ka'; + public const _DE = 'de'; + public const _EL = 'el'; + public const _GN = 'gn'; + public const _GU = 'gu'; + public const _HT = 'ht'; + public const _HA = 'ha'; + public const _HE = 'he'; + public const _HZ = 'hz'; + public const _HI = 'hi'; + public const _HO = 'ho'; + public const _HU = 'hu'; + public const _IA = 'ia'; + public const _ID = 'id'; + public const _IE = 'ie'; + public const _GA = 'ga'; + public const _IG = 'ig'; + public const _IK = 'ik'; + public const _IO = 'io'; + public const _IS = 'is'; + public const _IT = 'it'; + public const _IU = 'iu'; + public const _JV = 'jv'; + public const _KL = 'kl'; + public const _KN = 'kn'; + public const _KR = 'kr'; + public const _KK = 'kk'; + public const _KM = 'km'; + public const _KI = 'ki'; + public const _RW = 'rw'; + public const _KY = 'ky'; + public const _KV = 'kv'; + public const _KG = 'kg'; + public const _KJ = 'kj'; + public const _LA = 'la'; + public const _LB = 'lb'; + public const _LG = 'lg'; + public const _LI = 'li'; + public const _LN = 'ln'; + public const _LO = 'lo'; + public const _LT = 'lt'; + public const _LV = 'lv'; + public const _GV = 'gv'; + public const _MK = 'mk'; + public const _MG = 'mg'; + public const _ML = 'ml'; + public const _MT = 'mt'; + public const _MI = 'mi'; + public const _MR = 'mr'; + public const _MH = 'mh'; + public const _MN = 'mn'; + public const _NA = 'na'; + public const _NV = 'nv'; + public const _ND = 'nd'; + public const _NE = 'ne'; + public const _NG = 'ng'; + public const _NB = 'nb'; + public const _NN = 'nn'; + public const _NO = 'no'; + public const _II = 'ii'; + public const _NR = 'nr'; + public const _OC = 'oc'; + public const _OJ = 'oj'; + public const _CU = 'cu'; + public const _OM = 'om'; + public const _OR = 'or'; + public const _OS = 'os'; + public const _PI = 'pi'; + public const _FA = 'fa'; + public const _PL = 'pl'; + public const _PS = 'ps'; + public const _PT = 'pt'; + public const _QU = 'qu'; + public const _RM = 'rm'; + public const _RN = 'rn'; + public const _RO = 'ro'; + public const _RU = 'ru'; + public const _SA = 'sa'; + public const _SC = 'sc'; + public const _SE = 'se'; + public const _SM = 'sm'; + public const _SG = 'sg'; + public const _SR = 'sr'; + public const _GD = 'gd'; + public const _SN = 'sn'; + public const _SI = 'si'; + public const _SK = 'sk'; + public const _SL = 'sl'; + public const _SO = 'so'; + public const _ST = 'st'; + public const _ES = 'es'; + public const _SU = 'su'; + public const _SW = 'sw'; + public const _SS = 'ss'; + public const _SV = 'sv'; + public const _TA = 'ta'; + public const _TE = 'te'; + public const _TH = 'th'; + public const _TI = 'ti'; + public const _BO = 'bo'; + public const _TK = 'tk'; + public const _TL = 'tl'; + public const _TN = 'tn'; + public const _TO = 'to'; + public const _TR = 'tr'; + public const _TS = 'ts'; + public const _TW = 'tw'; + public const _TY = 'ty'; + public const _UK = 'uk'; + public const _UR = 'ur'; + public const _VE = 've'; + public const _VI = 'vi'; + public const _VO = 'vo'; + public const _WA = 'wa'; + public const _CY = 'cy'; + public const _WO = 'wo'; + public const _FY = 'fy'; + public const _XH = 'xh'; + public const _YI = 'yi'; + public const _YO = 'yo'; + public const _ZA = 'za'; + public const _ZU = 'zu'; } diff --git a/Localization/ISO639x2Enum.php b/Localization/ISO639x2Enum.php index 7cad1219f..50f6f560c 100644 --- a/Localization/ISO639x2Enum.php +++ b/Localization/ISO639x2Enum.php @@ -27,187 +27,370 @@ use phpOMS\Stdlib\Base\Enum; class ISO639x2Enum extends Enum { public const _AB = 'abk'; + public const _AA = 'aar'; + public const _AF = 'afr'; + public const _AK = 'aka'; + public const _SQ = 'sqi'; + public const _AM = 'amh'; + public const _AR = 'ara'; + public const _AN = 'arg'; + public const _HY = 'hye'; + public const _AS = 'asm'; + public const _AV = 'ava'; + public const _AE = 'ave'; + public const _AY = 'aru'; + public const _AZ = 'aze'; + public const _BM = 'bam'; + public const _BA = 'bak'; + public const _EU = 'eus'; + public const _BE = 'bel'; + public const _BN = 'ben'; + public const _BH = 'bih'; + public const _BI = 'bis'; + public const _BS = 'bos'; + public const _BR = 'bre'; + public const _BG = 'bul'; + public const _MY = 'mya'; + public const _CA = 'cat'; + public const _CH = 'cha'; + public const _CE = 'che'; + public const _NY = 'nya'; + public const _ZH = 'zho'; + public const _CV = 'chv'; + public const _KW = 'cor'; + public const _CO = 'cos'; + public const _CR = 'cre'; + public const _HR = 'hrv'; + public const _CS = 'ces'; + public const _DA = 'dan'; + public const _DV = 'div'; + public const _NL = 'nld'; + public const _DZ = 'dzo'; + public const _EN = 'eng'; + public const _EO = 'epo'; + public const _ET = 'est'; + public const _EE = 'ewe'; + public const _FO = 'fao'; + public const _FJ = 'fij'; + public const _FI = 'fin'; + public const _FR = 'fra'; + public const _FF = 'ful'; + public const _GL = 'glg'; + public const _KA = 'kat'; + public const _DE = 'deu'; + public const _EL = 'ell'; + public const _GN = 'grn'; + public const _GU = 'guj'; + public const _HT = 'hat'; + public const _HA = 'hau'; + public const _HE = 'heb'; + public const _HZ = 'her'; + public const _HI = 'hin'; + public const _HO = 'hmo'; + public const _HU = 'hun'; + public const _IA = 'ina'; + public const _ID = 'ind'; + public const _IE = 'ile'; + public const _GA = 'gle'; + public const _IG = 'ibo'; + public const _IK = 'ipk'; + public const _IO = 'ido'; + public const _IS = 'isl'; + public const _IT = 'ita'; + public const _IU = 'iku'; + public const _JA = 'jpn'; + public const _JV = 'jav'; + public const _KL = 'kal'; + public const _KN = 'kan'; + public const _KR = 'kau'; + public const _KS = 'kas'; + public const _KK = 'kaz'; + public const _KM = 'khm'; + public const _KI = 'kik'; + public const _RW = 'kin'; + public const _KY = 'kir'; + public const _KV = 'kom'; + public const _KG = 'kon'; + public const _KO = 'kor'; + public const _KU = 'kur'; + public const _KJ = 'kua'; + public const _LA = 'lat'; + public const _LB = 'ltz'; + public const _LG = 'lug'; + public const _LI = 'lim'; + public const _LN = 'lin'; + public const _LO = 'lao'; + public const _LT = 'lit'; + public const _LU = 'lub'; + public const _LV = 'lav'; + public const _GV = 'glv'; + public const _MK = 'mkd'; + public const _MG = 'mlg'; + public const _MS = 'msa'; + public const _ML = 'mal'; + public const _MT = 'mlt'; + public const _MI = 'mri'; + public const _MR = 'mar'; + public const _MH = 'mah'; + public const _MN = 'mon'; + public const _NA = 'nau'; + public const _NV = 'nav'; + public const _ND = 'nde'; + public const _NE = 'nep'; + public const _NG = 'ndo'; + public const _NB = 'nob'; + public const _NN = 'nno'; + public const _NO = 'nor'; + public const _II = 'iii'; + public const _NR = 'nbl'; + public const _OC = 'oci'; + public const _OJ = 'oji'; + public const _CU = 'chu'; + public const _OM = 'orm'; + public const _OR = 'ori'; + public const _OS = 'oss'; + public const _PA = 'pan'; + public const _PI = 'pli'; + public const _FA = 'fas'; + public const _PL = 'pol'; + public const _PS = 'pus'; + public const _PT = 'por'; + public const _QU = 'que'; + public const _RM = 'roh'; + public const _RN = 'run'; + public const _RO = 'ron'; + public const _RU = 'rus'; + public const _SA = 'san'; + public const _SC = 'srd'; + public const _SD = 'snd'; + public const _SE = 'sme'; + public const _SM = 'smo'; + public const _SG = 'sag'; + public const _SR = 'srp'; + public const _GD = 'gla'; + public const _SN = 'sna'; + public const _SI = 'sin'; + public const _SK = 'slk'; + public const _SL = 'slv'; + public const _SO = 'som'; + public const _ST = 'sot'; + public const _ES = 'spa'; + public const _SU = 'sun'; + public const _SW = 'swa'; + public const _SS = 'ssw'; + public const _SV = 'swe'; + public const _TA = 'tam'; + public const _TE = 'tel'; + public const _TG = 'tgk'; + public const _TH = 'tha'; + public const _TI = 'tir'; + public const _BO = 'bod'; + public const _TK = 'tuk'; + public const _TL = 'tgl'; + public const _TN = 'tsn'; + public const _TO = 'ton'; + public const _TR = 'tur'; + public const _TS = 'tso'; + public const _TT = 'tat'; + public const _TW = 'twi'; + public const _TY = 'tah'; + public const _UG = 'uig'; + public const _UK = 'ukr'; + public const _UR = 'urd'; + public const _UZ = 'uzb'; + public const _VE = 'ven'; + public const _VI = 'vie'; + public const _VO = 'vol'; + public const _WA = 'wln'; + public const _CY = 'cym'; + public const _WO = 'wol'; + public const _FY = 'fry'; + public const _XH = 'xho'; + public const _YI = 'yid'; + public const _YO = 'yor'; + public const _ZA = 'zha'; + public const _ZU = 'zul'; } diff --git a/Localization/Money.php b/Localization/Money.php index 3321d3750..aadcd4428 100644 --- a/Localization/Money.php +++ b/Localization/Money.php @@ -105,7 +105,7 @@ final class Money implements \Serializable * * @since 1.0.0 */ - public static function toInt(string $value, string $thousands = ',', string $decimal = '.') : int + public static function toInt(string $value, string $thousands = ',', string $decimal = '.') : int { $split = \explode($decimal, $value); diff --git a/Localization/PhoneEnum.php b/Localization/PhoneEnum.php index 2864c7787..cd21fad8e 100644 --- a/Localization/PhoneEnum.php +++ b/Localization/PhoneEnum.php @@ -27,232 +27,460 @@ use phpOMS\Stdlib\Base\Enum; class PhoneEnum extends Enum { public const _AF = 93; + public const _AL = 355; + public const _DZ = 213; + public const _AS = 1684; + public const _AD = 376; + public const _AO = 244; + public const _AI = 1264; + public const _AQ = 672; + public const _AG = 1268; + public const _AR = 54; + public const _AM = 374; + public const _AW = 297; + public const _AU = 61; + public const _AT = 43; + public const _AZ = 994; + public const _BS = 1242; + public const _BH = 973; + public const _BD = 880; + public const _BB = 1246; + public const _BY = 375; + public const _BE = 32; + public const _BZ = 501; + public const _BJ = 229; + public const _BM = 1441; + public const _BT = 975; + public const _BO = 591; + public const _BA = 387; + public const _BW = 267; + public const _BR = 55; + public const _VG = 1284; + public const _BN = 673; + public const _BG = 359; + public const _BF = 226; + public const _MM = 95; + public const _BI = 257; + public const _KH = 855; + public const _CM = 237; + public const _CA = 1; + public const _CV = 238; + public const _KY = 1345; + public const _CF = 236; + public const _TD = 235; + public const _CL = 56; + public const _CN = 86; + public const _CX = 61; + public const _CC = 61; + public const _CO = 57; + public const _KM = 269; + public const _CK = 682; + public const _CR = 506; + public const _HR = 385; + public const _CU = 53; + public const _CY = 357; + public const _CZ = 420; + public const _CD = 243; + public const _DK = 45; + public const _DJ = 253; + public const _DM = 1767; + public const _DO = 1809; + public const _EC = 593; + public const _EG = 20; + public const _SV = 503; + public const _GQ = 240; + public const _ER = 291; + public const _EE = 372; + public const _ET = 251; + public const _FK = 500; + public const _FO = 298; + public const _FJ = 679; + public const _FI = 358; + public const _FR = 33; + public const _PF = 689; + public const _GA = 241; + public const _GM = 220; + public const _GE = 995; + public const _DE = 49; + public const _GH = 233; + public const _GI = 350; + public const _GR = 30; + public const _GL = 299; + public const _GD = 1473; + public const _GU = 1671; + public const _GT = 502; + public const _GN = 224; + public const _GW = 245; + public const _GY = 592; + public const _HT = 509; + public const _VA = 39; + public const _HN = 504; + public const _HK = 852; + public const _HU = 36; + public const _IS = 354; + public const _IN = 91; + public const _ID = 62; + public const _IR = 98; + public const _IQ = 964; + public const _IE = 353; + public const _IM = 44; + public const _IL = 972; + public const _IT = 39; + public const _CI = 225; + public const _JM = 1876; + public const _JP = 81; + public const _JO = 962; + public const _KZ = 7; + public const _KE = 254; + public const _KI = 686; + public const _KW = 965; + public const _KG = 996; + public const _LA = 856; + public const _LV = 371; + public const _LB = 961; + public const _LS = 266; + public const _LR = 231; + public const _LY = 218; + public const _LI = 423; + public const _LT = 370; + public const _LU = 352; + public const _MO = 853; + public const _MK = 389; + public const _MG = 261; + public const _MW = 265; + public const _MY = 60; + public const _MV = 960; + public const _ML = 223; + public const _MT = 356; + public const _MH = 692; + public const _MR = 222; + public const _MU = 230; + public const _YT = 262; + public const _MX = 52; + public const _FM = 691; + public const _MD = 373; + public const _MC = 377; + public const _MN = 976; + public const _ME = 382; + public const _MS = 1664; + public const _MA = 212; + public const _MZ = 258; + public const _NA = 264; + public const _NR = 674; + public const _NP = 977; + public const _NL = 31; + public const _AN = 599; + public const _NC = 687; + public const _NZ = 64; + public const _NI = 505; + public const _NE = 227; + public const _NG = 234; + public const _NU = 683; + public const _KP = 850; + public const _MP = 1670; + public const _NO = 47; + public const _OM = 968; + public const _PK = 92; + public const _PW = 680; + public const _PA = 507; + public const _PG = 675; + public const _PY = 595; + public const _PE = 51; + public const _PH = 63; + public const _PN = 870; + public const _PL = 48; + public const _PT = 351; + public const _PR = 1; + public const _QA = 974; + public const _CG = 242; + public const _RO = 40; + public const _RU = 7; + public const _RW = 250; + public const _BL = 590; + public const _SH = 290; + public const _KN = 1869; + public const _LC = 1758; + public const _MF = 1599; + public const _PM = 508; + public const _VC = 1784; + public const _WS = 685; + public const _SM = 378; + public const _ST = 239; + public const _SA = 966; + public const _SN = 221; + public const _RS = 381; + public const _SC = 248; + public const _SL = 232; + public const _SG = 65; + public const _SK = 421; + public const _SI = 386; + public const _SB = 677; + public const _SO = 252; + public const _ZA = 27; + public const _KR = 82; + public const _ES = 34; + public const _LK = 94; + public const _SD = 249; + public const _SR = 597; + public const _SZ = 268; + public const _SE = 46; + public const _CH = 41; + public const _SY = 963; + public const _TW = 886; + public const _TJ = 992; + public const _TZ = 255; + public const _TH = 66; + public const _TL = 670; + public const _TG = 228; + public const _TK = 690; + public const _TO = 676; + public const _TT = 1868; + public const _TN = 216; + public const _TR = 90; + public const _TM = 993; + public const _TC = 1649; + public const _TV = 688; + public const _UG = 256; + public const _UA = 380; + public const _AE = 971; + public const _GB = 44; + public const _US = 1; + public const _UY = 598; + public const _VI = 1340; + public const _UZ = 998; + public const _VU = 678; + public const _VE = 58; + public const _VN = 84; + public const _WF = 681; + public const _YE = 967; + public const _ZM = 260; + public const _ZW = 263; } diff --git a/Log/FileLogger.php b/Log/FileLogger.php index 73ff6c2e6..f2fa7ad26 100644 --- a/Log/FileLogger.php +++ b/Log/FileLogger.php @@ -30,7 +30,9 @@ use phpOMS\System\File\Local\File; final class FileLogger implements LoggerInterface { public const MSG_BACKTRACE = '{datetime}; {level}; {ip}; {message}; {backtrace}'; + public const MSG_FULL = '{datetime}; {level}; {ip}; {line}; {version}; {os}; {path}; {message}; {file}; {backtrace}'; + public const MSG_SIMPLE = '{datetime}; {level}; {ip}; {message};'; /** @@ -185,7 +187,7 @@ final class FileLogger implements LoggerInterface * * @since 1.0.0 */ - public static function startTimeLog(string $id = '') : bool + public static function startTimeLog(string $id = '') : bool { if (isset(self::$timings[$id])) { return false; diff --git a/Log/LogLevel.php b/Log/LogLevel.php index ab2c8892c..86ad8c083 100644 --- a/Log/LogLevel.php +++ b/Log/LogLevel.php @@ -27,11 +27,18 @@ use phpOMS\Stdlib\Base\Enum; abstract class LogLevel extends Enum { public const EMERGENCY = 'emergency'; + public const ALERT = 'alert'; + public const CRITICAL = 'critical'; + public const ERROR = 'error'; + public const WARNING = 'warning'; + public const NOTICE = 'notice'; + public const INFO = 'info'; + public const DEBUG = 'debug'; } diff --git a/Log/LoggerInterface.php b/Log/LoggerInterface.php index 2f8f78d89..3cfe8dd0a 100644 --- a/Log/LoggerInterface.php +++ b/Log/LoggerInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Log; */ interface LoggerInterface { - /** * System is unusable. * diff --git a/Math/Number/NumberType.php b/Math/Number/NumberType.php index abbefdb11..a4a20e270 100644 --- a/Math/Number/NumberType.php +++ b/Math/Number/NumberType.php @@ -27,12 +27,20 @@ use phpOMS\Stdlib\Base\Enum; abstract class NumberType extends Enum { public const N_INTEGER = 0; + public const N_NATURAL = 1; + public const N_EVEN = 2; + public const N_UNEVEN = 4; + public const N_PRIME = 8; + public const N_REAL = 16; + public const N_RATIONAL = 32; + public const N_IRRATIONAL = 64; + public const N_COMPLEX = 128; } diff --git a/Math/Numerics/Interpolation/DerivativeType.php b/Math/Numerics/Interpolation/DerivativeType.php index c3641afd6..b15059aa7 100644 --- a/Math/Numerics/Interpolation/DerivativeType.php +++ b/Math/Numerics/Interpolation/DerivativeType.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class DerivativeType extends Enum { public const FIRST = 1; + public const SECOND = 2; } diff --git a/Math/Numerics/Interpolation/LinearInterpolation.php b/Math/Numerics/Interpolation/LinearInterpolation.php index 47efe8399..04fa6bda9 100644 --- a/Math/Numerics/Interpolation/LinearInterpolation.php +++ b/Math/Numerics/Interpolation/LinearInterpolation.php @@ -26,7 +26,7 @@ use phpOMS\Math\Matrix\Vector; */ final class LinearInterpolation implements InterpolationInterface { - /** + /** * Points for spline interpolation * * @var array diff --git a/Math/Statistic/Average.php b/Math/Statistic/Average.php index 0e1cca9ab..ec4a09032 100644 --- a/Math/Statistic/Average.php +++ b/Math/Statistic/Average.php @@ -28,15 +28,25 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException; final class Average { public const MA3 = [1 / 3, 1 / 3]; + public const MA5 = [0.2, 0.2, 0.2]; + public const MA2X12 = [5 / 6, 5 / 6, 5 / 6, 5 / 6, 5 / 6, 5 / 6, 0.42]; + public const MA3X3 = [1 / 3, 2 / 9, 1 / 9]; + public const MA3X5 = [0.2, 0.2, 2 / 15, 4 / 6]; + public const MAS15 = [0.231, 0.209, 0.144, 2 / 3, 0.009, -0.016, -0.019, -0.009]; + public const MAS21 = [0.171, 0.163, 0.134, 0.37, 0.51, 0.017, -0.006, -0.014, -0.014, -0.009, -0.003]; + public const MAH5 = [0.558, 0.294, -0.73]; + public const MAH9 = [0.330, 0.267, 0.119, -0.010, -0.041]; + public const MAH13 = [0.240, 0.214, 0.147, 0.66, 0, -0.028, -0.019]; + public const MAH23 = [0.148, 0.138, 0.122, 0.097, 0.068, 0.039, 0.013, -0.005, -0.015, -0.016, -0.011, -0.004]; /** diff --git a/Message/Http/BrowserType.php b/Message/Http/BrowserType.php index 1c78178ef..f411e2536 100644 --- a/Message/Http/BrowserType.php +++ b/Message/Http/BrowserType.php @@ -29,15 +29,26 @@ use phpOMS\Stdlib\Base\Enum; abstract class BrowserType extends Enum { public const IE = 'msie'; /* Internet Explorer */ + public const EDGE = 'edge'; /* Internet Explorer Edge 20+ */ + public const FIREFOX = 'firefox'; /* Firefox */ + public const SAFARI = 'safari'; /* Safari */ + public const CHROME = 'chrome'; /* Chrome */ + public const OPERA = 'opera'; /* Opera */ + public const NETSCAPE = 'netscape'; /* Netscape */ + public const MAXTHON = 'maxthon'; /* Maxthon */ + public const KONQUEROR = 'konqueror'; /* Konqueror */ + public const HANDHELD = 'mobile'; /* Handheld Browser */ + public const BLINK = 'blink'; /* Blink Browser */ + public const UNKNOWN = 'unknown'; } diff --git a/Message/Http/OSType.php b/Message/Http/OSType.php index 528e0d172..ada095ae9 100644 --- a/Message/Http/OSType.php +++ b/Message/Http/OSType.php @@ -29,27 +29,50 @@ use phpOMS\Stdlib\Base\Enum; abstract class OSType extends Enum { public const WINDOWS_81 = 'windows nt 6.3'; /* Windows 8.1 */ + public const WINDOWS_8 = 'windows nt 6.2'; /* Windows 8 */ + public const WINDOWS_7 = 'windows nt 6.1'; /* Windows 7 */ + public const WINDOWS_VISTA = 'windows nt 6.0'; /* Windows Vista */ + public const WINDOWS_SERVER = 'windows nt 5.2'; /* Windows Server 2003/XP x64 */ + public const WINDOWS_XP = 'windows nt 5.1'; /* Windows XP */ + public const WINDOWS_XP_2 = 'windows xp'; /* Windows XP */ + public const WINDOWS_2000 = 'windows nt 5.0'; /* Windows 2000 */ + public const WINDOWS_ME = 'windows me'; /* Windows ME */ + public const WINDOWS_98 = 'win98'; /* Windows 98 */ + public const WINDOWS_95 = 'win95'; /* Windows 95 */ + public const WINDOWS_311 = 'win16'; /* Windows 3.11 */ + public const MAC_OS_X = 'macintosh'; /* Mac OS X */ + public const MAC_OS_X_2 = 'mac os x'; /* Mac OS X */ + public const MAC_OS_9 = 'mac_powerpc'; /* Mac OS 9 */ + public const LINUX = 'linux'; /* Linux */ + public const UBUNTU = 'ubuntu'; /* Ubuntu */ + public const IPHONE = 'iphone'; /* IPhone */ + public const IPOD = 'ipod'; /* IPod */ + public const IPAD = 'ipad'; /* IPad */ + public const ANDROID = 'android'; /* Android */ + public const BLACKBERRY = 'blackberry'; /* Blackberry */ + public const MOBILE = 'webos'; /* Mobile */ + public const UNKNOWN = 'unknown'; } diff --git a/Message/Http/RequestMethod.php b/Message/Http/RequestMethod.php index e9857e2d4..d19a498b6 100644 --- a/Message/Http/RequestMethod.php +++ b/Message/Http/RequestMethod.php @@ -27,9 +27,14 @@ use phpOMS\Stdlib\Base\Enum; abstract class RequestMethod extends Enum { public const GET = 'GET'; /* GET */ + public const POST = 'POST'; /* POST */ + public const PUT = 'PUT'; /* PUT */ + public const DELETE = 'DELETE'; /* DELETE */ + public const HEAD = 'HEAD'; /* HEAD */ + public const TRACE = 'TRACE'; /* TRACE */ } diff --git a/Message/Http/RequestStatus.php b/Message/Http/RequestStatus.php index 32a6f2f76..05b599be1 100644 --- a/Message/Http/RequestStatus.php +++ b/Message/Http/RequestStatus.php @@ -27,58 +27,112 @@ use phpOMS\Stdlib\Base\Enum; abstract class RequestStatus extends Enum { public const R_100 = 'Continue'; + public const R_101 = 'Switching Protocols'; + public const R_102 = 'Processing'; + public const R_200 = 'OK'; + public const R_201 = 'Created'; + public const R_202 = 'Accepted'; + public const R_203 = 'Non-Authoritative Information'; + public const R_204 = 'No Content'; + public const R_205 = 'Reset Content'; + public const R_206 = 'Partial Content'; + public const R_207 = 'Multi-Status'; + public const R_300 = 'Multiple Choices'; + public const R_301 = 'Moved Permanently'; + public const R_302 = 'Found'; + public const R_303 = 'See Other'; + public const R_304 = 'Not Modified'; + public const R_305 = 'Use Proxy'; + public const R_306 = 'Switch Proxy'; + public const R_307 = 'Temporary Redirect'; + public const R_400 = 'Bad Request'; + public const R_401 = 'Unauthorized'; + public const R_402 = 'Payment Required'; + public const R_403 = 'Forbidden'; + public const R_404 = 'Not Found'; + public const R_405 = 'Method Not Allowed'; + public const R_406 = 'Not Acceptable'; + public const R_407 = 'Proxy Authentication Required'; + public const R_408 = 'Request Timeout'; + public const R_409 = 'Conflict'; + public const R_410 = 'Gone'; + public const R_411 = 'Length Required'; + public const R_412 = 'Precondition Failed'; + public const R_413 = 'Request Entity Too Large'; + public const R_414 = 'Request-URI Too Long'; + public const R_415 = 'Unsupported Media Type'; + public const R_416 = 'Requested Range Not Satisfiable'; + public const R_417 = 'Expectation Failed'; + public const R_418 = 'I\'m a teapot'; + public const R_422 = 'Unprocessable Entity'; + public const R_423 = 'Locked'; + public const R_424 = 'Failed Dependency'; + public const R_425 = 'Unordered Collection'; + public const R_426 = 'Upgrade Required'; + public const R_449 = 'Retry With'; + public const R_450 = 'Blocked by Windows Parental Controls'; + public const R_500 = 'Internal Server Error'; + public const R_501 = 'Not Implemented'; + public const R_502 = 'Bad Gateway'; + public const R_503 = 'Service Unavailable'; + public const R_504 = 'Gateway Timeout'; + public const R_505 = 'HTTP Version Not Supported'; + public const R_506 = 'Variant Also Negotiates'; + public const R_507 = 'Insufficient Storage'; + public const R_509 = 'Bandwidth Limit Exceeded'; + public const R_510 = 'Not Extended'; } diff --git a/Message/Http/RequestStatusCode.php b/Message/Http/RequestStatusCode.php index fbeff3227..452b41b1d 100644 --- a/Message/Http/RequestStatusCode.php +++ b/Message/Http/RequestStatusCode.php @@ -26,58 +26,112 @@ use phpOMS\Stdlib\Base\Enum; abstract class RequestStatusCode extends Enum { public const R_100 = 100; + public const R_101 = 101; + public const R_102 = 102; + public const R_200 = 200; + public const R_201 = 201; + public const R_202 = 202; + public const R_203 = 203; + public const R_204 = 204; + public const R_205 = 205; + public const R_206 = 206; + public const R_207 = 207; + public const R_300 = 300; + public const R_301 = 301; + public const R_302 = 302; + public const R_303 = 303; + public const R_304 = 304; + public const R_305 = 305; + public const R_306 = 306; + public const R_307 = 307; + public const R_400 = 400; + public const R_401 = 401; + public const R_402 = 402; + public const R_403 = 403; + public const R_404 = 404; + public const R_405 = 405; + public const R_406 = 406; + public const R_407 = 407; + public const R_408 = 408; + public const R_409 = 409; + public const R_410 = 410; + public const R_411 = 411; + public const R_412 = 412; + public const R_413 = 413; + public const R_414 = 414; + public const R_415 = 415; + public const R_416 = 416; + public const R_417 = 417; + public const R_418 = 418; + public const R_422 = 422; + public const R_423 = 423; + public const R_424 = 424; + public const R_425 = 425; + public const R_426 = 426; + public const R_449 = 449; + public const R_450 = 450; + public const R_500 = 500; + public const R_501 = 501; + public const R_502 = 502; + public const R_503 = 503; + public const R_504 = 504; + public const R_505 = 505; + public const R_506 = 506; + public const R_507 = 507; + public const R_509 = 509; + public const R_510 = 510; } diff --git a/Message/Mail/DispositionType.php b/Message/Mail/DispositionType.php index 3e4fbef5a..0c9038306 100644 --- a/Message/Mail/DispositionType.php +++ b/Message/Mail/DispositionType.php @@ -27,7 +27,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class DispositionType extends Enum { public const PLAIN = 'plain'; + public const ALT = 'alt'; + public const ATTACHMENT = 'attach'; + public const INLINE = 'inline'; } diff --git a/Message/Mail/EmailAbstract.php b/Message/Mail/EmailAbstract.php index 216be8294..d28c98a0d 100644 --- a/Message/Mail/EmailAbstract.php +++ b/Message/Mail/EmailAbstract.php @@ -285,8 +285,6 @@ abstract class EmailAbstract return true; } - - private function postSend(Mail $mail) : bool { return true; diff --git a/Message/Mail/EncodingType.php b/Message/Mail/EncodingType.php index 220f93338..dea626ba2 100644 --- a/Message/Mail/EncodingType.php +++ b/Message/Mail/EncodingType.php @@ -27,8 +27,12 @@ use phpOMS\Stdlib\Base\Enum; abstract class EncodingType extends Enum { public const E_7BIT = '7bit'; + public const E_8BIT = '8bit'; + public const E_BASE64 = 'base64'; + public const E_BINARY = 'binary'; + public const E_QUOTED = 'quoted-printable'; } diff --git a/Message/Mail/EncryptionType.php b/Message/Mail/EncryptionType.php index 25a96818a..7b609f996 100644 --- a/Message/Mail/EncryptionType.php +++ b/Message/Mail/EncryptionType.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class EncryptionType extends Enum { public const TLS = 'tls'; + public const SSL = 'ssl'; } diff --git a/Message/Mail/HeaderContext.php b/Message/Mail/HeaderContext.php index 17adb7a10..daf5857f4 100644 --- a/Message/Mail/HeaderContext.php +++ b/Message/Mail/HeaderContext.php @@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class HeaderContext extends Enum { public const TEXT = 1; + public const PHRASE = 2; + public const COMMENT = 3; } diff --git a/Message/Mail/ICALMethodType.php b/Message/Mail/ICALMethodType.php index d5b231073..63e10583d 100644 --- a/Message/Mail/ICALMethodType.php +++ b/Message/Mail/ICALMethodType.php @@ -27,11 +27,18 @@ use phpOMS\Stdlib\Base\Enum; abstract class ICALMethodType extends Enum { public const REQUEST = 'REQUEST'; + public const PUBLISH = 'PUBLISH'; + public const REPLY = 'REPLY'; + public const ADD = 'ADD'; + public const CANCEL = 'CANCEL'; + public const REFRESH = 'REFRESH'; + public const COUNTER = 'COUNTER'; + public const DECLINECOUNTER = 'DECLINECOUNTER'; } diff --git a/Message/Mail/Mail.php b/Message/Mail/Mail.php index fe565e679..607d8bfe8 100644 --- a/Message/Mail/Mail.php +++ b/Message/Mail/Mail.php @@ -203,8 +203,11 @@ class Mail protected bool $confirmReading = false; private string $signKeyFile = ''; + private string $signCertFile = ''; + private string $signExtraFile = ''; + private string $signKeyPass = ''; /** diff --git a/Message/Mail/SubmitType.php b/Message/Mail/SubmitType.php index 345e14b02..5b08c9331 100644 --- a/Message/Mail/SubmitType.php +++ b/Message/Mail/SubmitType.php @@ -27,7 +27,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class SubmitType extends Enum { public const SMTP = 'smtp'; + public const MAIL = 'mail'; + public const SENDMAIL = 'sendmail'; + public const QMAIL = 'qmail'; } diff --git a/Message/NotificationLevel.php b/Message/NotificationLevel.php index b4f92e4e0..58468a0a3 100644 --- a/Message/NotificationLevel.php +++ b/Message/NotificationLevel.php @@ -27,8 +27,12 @@ use phpOMS\Stdlib\Base\Enum; abstract class NotificationLevel extends Enum { public const OK = 'ok'; + public const INFO = 'info'; + public const WARNING = 'warning'; + public const ERROR = 'error'; + public const HIDDEN = 'hidden'; } diff --git a/Message/ResponseAbstract.php b/Message/ResponseAbstract.php index 7c0d36c7b..9d3f60106 100644 --- a/Message/ResponseAbstract.php +++ b/Message/ResponseAbstract.php @@ -22,7 +22,7 @@ namespace phpOMS\Message; * @link https://orange-management.org * @since 1.0.0 */ -abstract class ResponseAbstract implements MessageInterface, \JsonSerializable +abstract class ResponseAbstract implements \JsonSerializable, MessageInterface { /** * Responses. diff --git a/Message/Socket/PacketType.php b/Message/Socket/PacketType.php index ada6c6af3..6648c888f 100644 --- a/Message/Socket/PacketType.php +++ b/Message/Socket/PacketType.php @@ -27,14 +27,24 @@ use phpOMS\Stdlib\Base\Enum; abstract class PacketType extends Enum { public const CONNECT = 0; /* Client connection (server/sender) */ + public const DISCONNECT = 1; /* Client disconnection (server/sender) */ + public const KICK = 2; /* Kick (server/client/sender) */ + public const PING = 3; /* Ping (server/sender) */ + public const HELP = 4; /* Help (server/sender) */ + public const RESTART = 5; /* Restart server (server/all clients/client) */ + public const MSG = 6; /* Message (server/sender/client/all clients?) */ + public const LOGIN = 7; /* Login (server/sender) */ + public const LOGOUT = 8; /* Logout (server/sender) */ + public const CMD = 9; /* Other command */ + public const DOWNLOAD = 10; /* Download */ } diff --git a/Message/Socket/SocketResponse.php b/Message/Socket/SocketResponse.php index 40baad0e5..3801868dd 100644 --- a/Message/Socket/SocketResponse.php +++ b/Message/Socket/SocketResponse.php @@ -81,7 +81,7 @@ final class SocketResponse extends ResponseAbstract implements RenderableInterfa return $this->render($optimize); } - /** + /** * Generate response based on header. * * @param bool $optimize Optimize response / minify diff --git a/Message/UploadedFileInterface.php b/Message/UploadedFileInterface.php index 31753e4bd..6ff538a73 100644 --- a/Message/UploadedFileInterface.php +++ b/Message/UploadedFileInterface.php @@ -26,7 +26,6 @@ use phpOMS\Contract\StreamInterface; */ interface UploadedFileInterface { - /** * Retrieve a stream representing the uploaded file. * diff --git a/Model/Message/DomAction.php b/Model/Message/DomAction.php index d6690a505..c4cb7d32b 100644 --- a/Model/Message/DomAction.php +++ b/Model/Message/DomAction.php @@ -27,12 +27,20 @@ use phpOMS\Stdlib\Base\Enum; abstract class DomAction extends Enum { public const CREATE_BEFORE = 0; + public const CREATE_AFTER = 1; + public const DELETE = 2; + public const REPLACE = 3; + public const MODIFY = 4; + public const SHOW = 5; + public const HIDE = 6; + public const ACTIVATE = 7; + public const DEACTIVATE = 8; } diff --git a/Model/Message/FormValidation.php b/Model/Message/FormValidation.php index 59c0dc183..b31addebd 100644 --- a/Model/Message/FormValidation.php +++ b/Model/Message/FormValidation.php @@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -final class FormValidation implements \Serializable, ArrayableInterface, \JsonSerializable +final class FormValidation implements \JsonSerializable, \Serializable, ArrayableInterface { /** * Message type. diff --git a/Model/Message/Notify.php b/Model/Message/Notify.php index 6c5063186..cc6d929b1 100644 --- a/Model/Message/Notify.php +++ b/Model/Message/Notify.php @@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -final class Notify implements \Serializable, ArrayableInterface, \JsonSerializable +final class Notify implements \JsonSerializable, \Serializable, ArrayableInterface { /** * Message type. diff --git a/Model/Message/NotifyType.php b/Model/Message/NotifyType.php index 20f802bb7..7e53a8022 100644 --- a/Model/Message/NotifyType.php +++ b/Model/Message/NotifyType.php @@ -27,8 +27,12 @@ use phpOMS\Stdlib\Base\Enum; abstract class NotifyType extends Enum { public const BINARY = 0; + public const INFO = 1; + public const WARNING = 2; + public const ERROR = 3; + public const FATAL = 4; } diff --git a/Model/Message/Redirect.php b/Model/Message/Redirect.php index 8e0eb2580..e8bb1e10a 100644 --- a/Model/Message/Redirect.php +++ b/Model/Message/Redirect.php @@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -final class Redirect implements \Serializable, ArrayableInterface, \JsonSerializable +final class Redirect implements \JsonSerializable, \Serializable, ArrayableInterface { /** * Message type. diff --git a/Model/Message/Reload.php b/Model/Message/Reload.php index d26d694c7..a68d0f059 100644 --- a/Model/Message/Reload.php +++ b/Model/Message/Reload.php @@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -final class Reload implements \Serializable, ArrayableInterface, \JsonSerializable +final class Reload implements \JsonSerializable, \Serializable, ArrayableInterface { /** * Message type. diff --git a/Module/ConsoleInterface.php b/Module/ConsoleInterface.php index ae0b9855b..12c9f50b4 100644 --- a/Module/ConsoleInterface.php +++ b/Module/ConsoleInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Module; */ interface ConsoleInterface { - /** * Answer console request. * diff --git a/Module/ModuleStatus.php b/Module/ModuleStatus.php index f902628e2..27f065e9e 100644 --- a/Module/ModuleStatus.php +++ b/Module/ModuleStatus.php @@ -26,6 +26,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class ModuleStatus extends Enum { public const ACTIVE = 1; + public const INACTIVE = 2; + public const AVAILABLE = 3; } diff --git a/Module/NullModule.php b/Module/NullModule.php index 75d1b41d5..0742d0958 100644 --- a/Module/NullModule.php +++ b/Module/NullModule.php @@ -27,13 +27,13 @@ use phpOMS\Log\FileLogger; final class NullModule extends ModuleAbstract { /** {@inheritdoc} */ - public function __call(string $name, array $arguments): void + public function __call(string $name, array $arguments) : void { self::__callStatic($name, $arguments); } /** {@inheritdoc} */ - public static function __callStatic(string $name, array $arguments): void + public static function __callStatic(string $name, array $arguments) : void { FileLogger::getInstance('', false) ->error( diff --git a/Module/SocketInterface.php b/Module/SocketInterface.php index 190124ff8..a9588da9e 100644 --- a/Module/SocketInterface.php +++ b/Module/SocketInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Module; */ interface SocketInterface { - /** * Answer socket request. * diff --git a/Router/RouteVerb.php b/Router/RouteVerb.php index de711f233..ce2296467 100644 --- a/Router/RouteVerb.php +++ b/Router/RouteVerb.php @@ -27,8 +27,12 @@ use phpOMS\Stdlib\Base\Enum; abstract class RouteVerb extends Enum { public const GET = 1; + public const PUT = 2; + public const SET = 4; + public const DELETE = 8; + public const ANY = 16; } diff --git a/Socket/Client/ClientConnection.php b/Socket/Client/ClientConnection.php index 6b51172d8..807fb774e 100644 --- a/Socket/Client/ClientConnection.php +++ b/Socket/Client/ClientConnection.php @@ -27,10 +27,15 @@ use phpOMS\Account\Account; class ClientConnection { private $id = 0; + private $socket = null; + private $handshake = false; + private $pid = null; + private $connected = true; + private Account $account; /** diff --git a/Socket/SocketInterface.php b/Socket/SocketInterface.php index f099ef27d..6e6641606 100644 --- a/Socket/SocketInterface.php +++ b/Socket/SocketInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Socket; */ interface SocketInterface { - /** * Create the socket. * diff --git a/Stdlib/Base/AddressType.php b/Stdlib/Base/AddressType.php index a786018f3..e5ef1cf4a 100644 --- a/Stdlib/Base/AddressType.php +++ b/Stdlib/Base/AddressType.php @@ -25,10 +25,16 @@ namespace phpOMS\Stdlib\Base; abstract class AddressType extends Enum { public const HOME = 1; + public const BUSINESS = 2; + public const SHIPPING = 3; + public const BILLING = 4; + public const WORK = 5; + public const CONTRACT = 6; + public const OTHER = 7; } diff --git a/Stdlib/Base/PhoneType.php b/Stdlib/Base/PhoneType.php index b59067ddb..265fc0f75 100644 --- a/Stdlib/Base/PhoneType.php +++ b/Stdlib/Base/PhoneType.php @@ -25,7 +25,10 @@ namespace phpOMS\Stdlib\Base; abstract class PhoneType extends Enum { public const HOME = 1; + public const BUSINESS = 2; + public const MOBILE = 3; + public const WORK = 4; } diff --git a/Stdlib/Map/KeyType.php b/Stdlib/Map/KeyType.php index bc7b84fa4..97371f1f9 100644 --- a/Stdlib/Map/KeyType.php +++ b/Stdlib/Map/KeyType.php @@ -29,5 +29,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class KeyType extends Enum { public const SINGLE = 0; // There can only be one key(-combination) per value + public const MULTIPLE = 1; // There can be multiple keys per value } diff --git a/Stdlib/Map/OrderType.php b/Stdlib/Map/OrderType.php index 590aa7a5b..bad11c634 100644 --- a/Stdlib/Map/OrderType.php +++ b/Stdlib/Map/OrderType.php @@ -29,5 +29,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class OrderType extends Enum { public const LOOSE = 0; // Doesn't matter in which order the keys are ordered + public const STRICT = 1; // The exact key order matters for setting/getting values } diff --git a/Stdlib/Queue/PriorityMode.php b/Stdlib/Queue/PriorityMode.php index 3984cc7ad..bb36c007c 100644 --- a/Stdlib/Queue/PriorityMode.php +++ b/Stdlib/Queue/PriorityMode.php @@ -29,7 +29,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class PriorityMode extends Enum { public const FIFO = 1; // First in first out + public const LIFO = 2; // Last in first out + public const HIGHEST = 4; // Highest priority first (same as FIFO if all inserted elements got inserted at the same time with the same priority) + public const LOWEST = 8; // Lowest priority first (same as LIFO if all inserted lements got inserted at the same time with the same priority) } diff --git a/System/CharsetType.php b/System/CharsetType.php index 73c0de35e..27eda1ad4 100644 --- a/System/CharsetType.php +++ b/System/CharsetType.php @@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class CharsetType extends Enum { public const ASCII = 'us-ascii'; + public const ISO_8859_1 = 'iso-8859-1'; + public const UTF_8 = 'utf-8'; } diff --git a/System/File/ContentPutMode.php b/System/File/ContentPutMode.php index 387bbb601..b6bb3ac40 100644 --- a/System/File/ContentPutMode.php +++ b/System/File/ContentPutMode.php @@ -29,7 +29,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class ContentPutMode extends Enum { public const APPEND = 1; + public const PREPEND = 2; + public const REPLACE = 4; + public const CREATE = 8; } diff --git a/System/File/DirectoryInterface.php b/System/File/DirectoryInterface.php index 296d24b56..37837abc6 100644 --- a/System/File/DirectoryInterface.php +++ b/System/File/DirectoryInterface.php @@ -27,7 +27,7 @@ namespace phpOMS\System\File; * @phpstan-extends \ArrayAccess * @phpstan-extends \Iterator */ -interface DirectoryInterface extends ContainerInterface, \Iterator, \ArrayAccess +interface DirectoryInterface extends \ArrayAccess, \Iterator, ContainerInterface { /** * Get node by name. diff --git a/System/File/ExtensionType.php b/System/File/ExtensionType.php index 8481d9a00..bff54aea7 100644 --- a/System/File/ExtensionType.php +++ b/System/File/ExtensionType.php @@ -29,16 +29,28 @@ use phpOMS\Stdlib\Base\Enum; abstract class ExtensionType extends Enum { public const UNKNOWN = 1; + public const CODE = 2; + public const AUDIO = 4; + public const VIDEO = 8; + public const TEXT = 16; + public const SPREADSHEET = 32; + public const PDF = 64; + public const ARCHIVE = 128; + public const PRESENTATION = 256; + public const IMAGE = 512; + public const EXECUTABLE = 1024; + public const DIRECTORY = 2048; + public const WORD = 4096; } diff --git a/System/File/FileInterface.php b/System/File/FileInterface.php index a7f0467d6..e42a19a2c 100644 --- a/System/File/FileInterface.php +++ b/System/File/FileInterface.php @@ -26,7 +26,6 @@ namespace phpOMS\System\File; */ interface FileInterface extends ContainerInterface { - /** * Save content to file. * diff --git a/System/File/FileUtils.php b/System/File/FileUtils.php index 101ecc707..500b108ea 100644 --- a/System/File/FileUtils.php +++ b/System/File/FileUtils.php @@ -25,16 +25,27 @@ namespace phpOMS\System\File; final class FileUtils { public const CODE_EXTENSION = ['cpp', 'c', 'h', 'hpp', 'cs', 'css', 'scss', 'htm', 'html', 'js', 'java', 'sh', 'vb', 'php', 'rb', 'rs', 'ts', 'swift', 'class', 'htaccess', 'sql', 'py', 'bat', 'xml']; + public const TEXT_EXTENSION = ['log', 'txt', 'md', 'csv', 'tex', 'latex', 'cfg', 'json', 'config', 'conf', 'ini', 'yaml', 'yml']; + public const WORD_EXTENSION = ['doc', 'docx', 'rtf', 'odt']; + public const PRESENTATION_EXTENSION = ['ppt', 'pptx', 'pps', 'odp', 'key']; + public const PDF_EXTENSION = ['pdf']; + public const ARCHIVE_EXTENSION = ['zip', '7z', 'rar', 'tar', 'gz', 'z', 'deb', 'rpm', 'pkg']; + public const AUDIO_EXTENSION = ['mp3', 'wav', 'wma', 'ogg']; + public const VIDEO_EXTENSION = ['mp4', 'flv', 'vob', 'wmv', 'swf', 'mpg', 'mpeg', 'mov', 'mkv', 'h264', 'avi']; + public const SPREADSHEET_EXTENSION = ['xls', 'xlsm', 'xlr', 'ods']; + public const IMAGE_EXTENSION = ['png', 'gif', 'jpg', 'jpeg', 'tif', 'tiff', 'bmp', 'svg', 'ico']; + public const DIRECTORY = ['collection', '/']; + public const SYSTEM_EXTENSION = ['bak', 'dll', 'sys', 'tmp', 'msi', 'so', 'exe', 'bin', 'iso']; /** diff --git a/System/File/Ftp/Directory.php b/System/File/Ftp/Directory.php index 67b33b8f6..b432621a9 100644 --- a/System/File/Ftp/Directory.php +++ b/System/File/Ftp/Directory.php @@ -31,7 +31,7 @@ use phpOMS\Uri\HttpUri; * @link https://orange-management.org * @since 1.0.0 */ -class Directory extends FileAbstract implements FtpContainerInterface, DirectoryInterface +class Directory extends FileAbstract implements DirectoryInterface, FtpContainerInterface { /** * Ftp connection diff --git a/System/File/Ftp/File.php b/System/File/Ftp/File.php index 2dbb55c52..84177776c 100644 --- a/System/File/Ftp/File.php +++ b/System/File/Ftp/File.php @@ -268,6 +268,7 @@ class File extends FileAbstract implements FileInterface return Directory::parseRawList($con, self::dirpath($path))[$path]['user']; } + /** * {@inheritdoc} */ diff --git a/System/File/Local/Directory.php b/System/File/Local/Directory.php index 651e88223..9855a7324 100644 --- a/System/File/Local/Directory.php +++ b/System/File/Local/Directory.php @@ -29,7 +29,7 @@ use phpOMS\Utils\StringUtils; * @link https://orange-management.org * @since 1.0.0 */ -final class Directory extends FileAbstract implements LocalContainerInterface, DirectoryInterface +final class Directory extends FileAbstract implements DirectoryInterface, LocalContainerInterface { /** * Directory list filter. diff --git a/System/File/Local/File.php b/System/File/Local/File.php index f84640595..965fc39e6 100644 --- a/System/File/Local/File.php +++ b/System/File/Local/File.php @@ -29,7 +29,7 @@ use phpOMS\System\File\PathException; * @link https://orange-management.org * @since 1.0.0 */ -final class File extends FileAbstract implements LocalContainerInterface, FileInterface +final class File extends FileAbstract implements FileInterface, LocalContainerInterface { /** * Constructor. diff --git a/System/MimeType.php b/System/MimeType.php index 8bb7a38d0..efcc38000 100644 --- a/System/MimeType.php +++ b/System/MimeType.php @@ -29,995 +29,1985 @@ use phpOMS\Stdlib\Base\Enum; abstract class MimeType extends Enum { public const M_3DML = 'text/vnd.in3d.3dml'; + public const M_3DS = 'image/x-3ds'; + public const M_3G2 = 'video/3gpp2'; + public const M_3GP = 'video/3gpp'; + public const M_7Z = 'application/x-7z-compressed'; + public const M_AAB = 'application/x-authorware-bin'; + public const M_AAC = 'audio/x-aac'; + public const M_AAM = 'application/x-authorware-map'; + public const M_AAS = 'application/x-authorware-seg'; + public const M_ABW = 'application/x-abiword'; + public const M_AC = 'application/pkix-attr-cert'; + public const M_ACC = 'application/vnd.americandynamics.acc'; + public const M_ACE = 'application/x-ace-compressed'; + public const M_ACU = 'application/vnd.acucobol'; + public const M_ACUTC = 'application/vnd.acucorp'; + public const M_ADP = 'audio/adpcm'; + public const M_AEP = 'application/vnd.audiograph'; + public const M_AFM = 'application/x-font-type1'; + public const M_AFP = 'application/vnd.ibm.modcap'; + public const M_AHEAD = 'application/vnd.ahead.space'; + public const M_AI = 'application/postscript'; + public const M_AIF = 'audio/x-aiff'; + public const M_AIFC = 'audio/x-aiff'; + public const M_AIFF = 'audio/x-aiff'; + public const M_AIR = 'application/vnd.adobe.air-application-installer-package+zip'; + public const M_AIT = 'application/vnd.dvb.ait'; + public const M_AMI = 'application/vnd.amiga.ami'; + public const M_APK = 'application/vnd.android.package-archive'; + public const M_APPCACHE = 'text/cache-manifest'; + public const M_APR = 'application/vnd.lotus-approach'; + public const M_APS = 'application/postscript'; + public const M_ARC = 'application/x-freearc'; + public const M_ASC = 'application/pgp-signature'; + public const M_ASF = 'video/x-ms-asf'; + public const M_ASM = 'text/x-asm'; + public const M_ASO = 'application/vnd.accpac.simply.aso'; + public const M_ASX = 'video/x-ms-asf'; + public const M_ATC = 'application/vnd.acucorp'; + public const M_ATOM = 'application/atom+xml'; + public const M_ATOMCAT = 'application/atomcat+xml'; + public const M_ATOMSVC = 'application/atomsvc+xml'; + public const M_ATX = 'application/vnd.antix.game-component'; + public const M_AU = 'audio/basic'; + public const M_AVI = 'video/x-msvideo'; + public const M_AW = 'application/applixware'; + public const M_AZF = 'application/vnd.airzip.filesecure.azf'; + public const M_AZS = 'application/vnd.airzip.filesecure.azs'; + public const M_AZW = 'application/vnd.amazon.ebook'; + public const M_BAT = 'application/x-msdownload'; + public const M_BCPIO = 'application/x-bcpio'; + public const M_BDF = 'application/x-font-bdf'; + public const M_BDM = 'application/vnd.syncml.dm+wbxml'; + public const M_BED = 'application/vnd.realvnc.bed'; + public const M_BH2 = 'application/vnd.fujitsu.oasysprs'; + public const M_BIN = 'application/octet-stream'; + public const M_BLB = 'application/x-blorb'; + public const M_BLORB = 'application/x-blorb'; + public const M_BMI = 'application/vnd.bmi'; + public const M_BMP = 'image/bmp'; + public const M_BOOK = 'application/vnd.framemaker'; + public const M_BOX = 'application/vnd.previewsystems.box'; + public const M_BOZ = 'application/x-bzip2'; + public const M_BPK = 'application/octet-stream'; + public const M_BTIF = 'image/prs.btif'; + public const M_BZ = 'application/x-bzip'; + public const M_BZ2 = 'application/x-bzip2'; + public const M_C = 'text/x-c'; + public const M_C11AMC = 'application/vnd.cluetrust.cartomobile-config'; + public const M_C11AMZ = 'application/vnd.cluetrust.cartomobile-config-pkg'; + public const M_C4D = 'application/vnd.clonk.c4group'; + public const M_C4F = 'application/vnd.clonk.c4group'; + public const M_C4G = 'application/vnd.clonk.c4group'; + public const M_C4P = 'application/vnd.clonk.c4group'; + public const M_C4U = 'application/vnd.clonk.c4group'; + public const M_CAB = 'application/vnd.ms-cab-compressed'; + public const M_CAF = 'audio/x-caf'; + public const M_CAP = 'application/vnd.tcpdump.pcap'; + public const M_CAR = 'application/vnd.curl.car'; + public const M_CAT = 'application/vnd.ms-pki.seccat'; + public const M_CB7 = 'application/x-cbr'; + public const M_CBA = 'application/x-cbr'; + public const M_CBR = 'application/x-cbr'; + public const M_CBT = 'application/x-cbr'; + public const M_CBZ = 'application/x-cbr'; + public const M_CC = 'text/x-c'; + public const M_CCT = 'application/x-director'; + public const M_CCXML = 'application/ccxml+xml'; + public const M_CDBCMSG = 'application/vnd.contact.cmsg'; + public const M_CDF = 'application/x-netcdf'; + public const M_CDKEY = 'application/vnd.mediastation.cdkey'; + public const M_CDMIA = 'application/cdmi-capability'; + public const M_CDMIC = 'application/cdmi-container'; + public const M_CDMID = 'application/cdmi-domain'; + public const M_CDMIO = 'application/cdmi-object'; + public const M_CDMIQ = 'application/cdmi-queue'; + public const M_CDX = 'chemical/x-cdx'; + public const M_CDXML = 'application/vnd.chemdraw+xml'; + public const M_CDY = 'application/vnd.cinderella'; + public const M_CER = 'application/pkix-cert'; + public const M_CFS = 'application/x-cfs-compressed'; + public const M_CGM = 'image/cgm'; + public const M_CHAT = 'application/x-chat'; + public const M_CHM = 'application/vnd.ms-htmlhelp'; + public const M_CHRT = 'application/vnd.kde.kchart'; + public const M_CIF = 'chemical/x-cif'; + public const M_CII = 'application/vnd.anser-web-certificate-issue-initiation'; + public const M_CIL = 'application/vnd.ms-artgalry'; + public const M_CLA = 'application/vnd.claymore'; + public const M_CLASS = 'application/java-vm'; + public const M_CLKK = 'application/vnd.crick.clicker.keyboard'; + public const M_CLKP = 'application/vnd.crick.clicker.palette'; + public const M_CLKT = 'application/vnd.crick.clicker.template'; + public const M_CLKW = 'application/vnd.crick.clicker.wordbank'; + public const M_CLKX = 'application/vnd.crick.clicker'; + public const M_CLP = 'application/x-msclip'; + public const M_CMC = 'application/vnd.cosmocaller'; + public const M_CMDF = 'chemical/x-cmdf'; + public const M_CML = 'chemical/x-cml'; + public const M_CMP = 'application/vnd.yellowriver-custom-menu'; + public const M_CMX = 'image/x-cmx'; + public const M_COD = 'application/vnd.rim.cod'; + public const M_COM = 'application/x-msdownload'; + public const M_CONF = 'text/plain'; + public const M_CPIO = 'application/x-cpio'; + public const M_CPP = 'text/x-c'; + public const M_CPT = 'application/mac-compactpro'; + public const M_CRD = 'application/x-mscardfile'; + public const M_CRL = 'application/pkix-crl'; + public const M_CRT = 'application/x-x509-ca-cert'; + public const M_CSH = 'application/x-csh'; + public const M_CSML = 'chemical/x-csml'; + public const M_CSP = 'application/vnd.commonspace'; + public const M_CSS = 'text/css'; + public const M_CST = 'application/x-director'; + public const M_CSV = 'text/csv'; + public const M_CU = 'application/cu-seeme'; + public const M_CURL = 'text/vnd.curl'; + public const M_CWW = 'application/prs.cww'; + public const M_CXT = 'application/x-director'; + public const M_CXX = 'text/x-c'; + public const M_DAE = 'model/vnd.collada+xml'; + public const M_DAF = 'application/vnd.mobius.daf'; + public const M_DART = 'application/vnd.dart'; + public const M_DATALESS = 'application/vnd.fdsn.seed'; + public const M_DAVMOUNT = 'application/davmount+xml'; + public const M_DBK = 'application/docbook+xml'; + public const M_DCR = 'application/x-director'; + public const M_DCURL = 'text/vnd.curl.dcurl'; + public const M_DD2 = 'application/vnd.oma.dd2+xml'; + public const M_DDD = 'application/vnd.fujixerox.ddd'; + public const M_DEB = 'application/x-debian-package'; + public const M_DEF = 'text/plain'; + public const M_DEPLOY = 'application/octet-stream'; + public const M_DER = 'application/x-x509-ca-cert'; + public const M_DFAC = 'application/vnd.dreamfactory'; + public const M_DGC = 'application/x-dgc-compressed'; + public const M_DIC = 'text/x-c'; + public const M_DIR = 'application/x-director'; + public const M_DIS = 'application/vnd.mobius.dis'; + public const M_DIST = 'application/octet-stream'; + public const M_DISTZ = 'application/octet-stream'; + public const M_DJV = 'image/vnd.djvu'; + public const M_DJVU = 'image/vnd.djvu'; + public const M_DLL = 'application/x-msdownload'; + public const M_DMG = 'application/x-apple-diskimage'; + public const M_DMP = 'application/vnd.tcpdump.pcap'; + public const M_DMS = 'application/octet-stream'; + public const M_DNA = 'application/vnd.dna'; + public const M_DOC = 'application/msword'; + public const M_DOCM = 'application/vnd.ms-word.document.macroenabled.12'; + public const M_DOCX = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; + public const M_DOT = 'application/msword'; + public const M_DOTM = 'application/vnd.ms-word.template.macroenabled.12'; + public const M_DOTX = 'application/vnd.openxmlformats-officedocument.wordprocessingml.template'; + public const M_DP = 'application/vnd.osgi.dp'; + public const M_DPG = 'application/vnd.dpgraph'; + public const M_DRA = 'audio/vnd.dra'; + public const M_DSC = 'text/prs.lines.tag'; + public const M_DSSC = 'application/dssc+der'; + public const M_DTB = 'application/x-dtbook+xml'; + public const M_DTD = 'application/xml-dtd'; + public const M_DTS = 'audio/vnd.dts'; + public const M_DTSHD = 'audio/vnd.dts.hd'; + public const M_DUMP = 'application/octet-stream'; + public const M_DVB = 'video/vnd.dvb.file'; + public const M_DVI = 'application/x-dvi'; + public const M_DWF = 'model/vnd.dwf'; + public const M_DWG = 'image/vnd.dwg'; + public const M_DXF = 'image/vnd.dxf'; + public const M_DXP = 'application/vnd.spotfire.dxp'; + public const M_DXR = 'application/x-director'; + public const M_ECELP4800 = 'audio/vnd.nuera.ecelp4800'; + public const M_ECELP7470 = 'audio/vnd.nuera.ecelp7470'; + public const M_ECELP9600 = 'audio/vnd.nuera.ecelp9600'; + public const M_ECMA = 'application/ecmascript'; + public const M_EDM = 'application/vnd.novadigm.edm'; + public const M_EDX = 'application/vnd.novadigm.edx'; + public const M_EFIF = 'application/vnd.picsel'; + public const M_EI6 = 'application/vnd.pg.osasli'; + public const M_ELC = 'application/octet-stream'; + public const M_EMF = 'application/x-msmetafile'; + public const M_EML = 'message/rfc822'; + public const M_EMMA = 'application/emma+xml'; + public const M_EMZ = 'application/x-msmetafile'; + public const M_EOL = 'audio/vnd.digital-winds'; + public const M_EOT = 'application/vnd.ms-fontobject'; + public const M_EPS = 'application/postscript'; + public const M_EPUB = 'application/epub+zip'; + public const M_ES3 = 'application/vnd.eszigno3+xml'; + public const M_ESA = 'application/vnd.osgi.subsystem'; + public const M_ESF = 'application/vnd.epson.esf'; + public const M_ET3 = 'application/vnd.eszigno3+xml'; + public const M_ETX = 'text/x-setext'; + public const M_EVA = 'application/x-eva'; + public const M_EVY = 'application/x-envoy'; + public const M_EXE = 'application/x-msdownload'; + public const M_EXI = 'application/exi'; + public const M_EXT = 'application/vnd.novadigm.ext'; + public const M_EZ = 'application/andrew-inset'; + public const M_EZ2 = 'application/vnd.ezpix-album'; + public const M_EZ3 = 'application/vnd.ezpix-package'; + public const M_F = 'text/x-fortran'; + public const M_F4V = 'video/x-f4v'; + public const M_F77 = 'text/x-fortran'; + public const M_F90 = 'text/x-fortran'; + public const M_FBS = 'image/vnd.fastbidsheet'; + public const M_FCDT = 'application/vnd.adobe.formscentral.fcdt'; + public const M_FCS = 'application/vnd.isac.fcs'; + public const M_FDF = 'application/vnd.fdf'; + public const M_FE_LAUNCH = 'application/vnd.denovo.fcselayout-link'; + public const M_FG5 = 'application/vnd.fujitsu.oasysgp'; + public const M_FGD = 'application/x-director'; + public const M_FH = 'image/x-freehand'; + public const M_FH4 = 'image/x-freehand'; + public const M_FH5 = 'image/x-freehand'; + public const M_FH7 = 'image/x-freehand'; + public const M_FHC = 'image/x-freehand'; + public const M_FIG = 'application/x-xfig'; + public const M_FLAC = 'audio/x-flac'; + public const M_FLI = 'video/x-fli'; + public const M_FLO = 'application/vnd.micrografx.flo'; + public const M_FLV = 'video/x-flv'; + public const M_FLW = 'application/vnd.kde.kivio'; + public const M_FLX = 'text/vnd.fmi.flexstor'; + public const M_FLY = 'text/vnd.fly'; + public const M_FM = 'application/vnd.framemaker'; + public const M_FNC = 'application/vnd.frogans.fnc'; + public const M_FOR = 'text/x-fortran'; + public const M_FPX = 'image/vnd.fpx'; + public const M_FRAME = 'application/vnd.framemaker'; + public const M_FSC = 'application/vnd.fsc.weblaunch'; + public const M_FST = 'image/vnd.fst'; + public const M_FTC = 'application/vnd.fluxtime.clip'; + public const M_FTI = 'application/vnd.anser-web-funds-transfer-initiation'; + public const M_FVT = 'video/vnd.fvt'; + public const M_FXP = 'application/vnd.adobe.fxp'; + public const M_FXPL = 'application/vnd.adobe.fxp'; + public const M_FZS = 'application/vnd.fuzzysheet'; + public const M_G2W = 'application/vnd.geoplan'; + public const M_G3 = 'image/g3fax'; + public const M_G3W = 'application/vnd.geospace'; + public const M_GAC = 'application/vnd.groove-account'; + public const M_GAM = 'application/x-tads'; + public const M_GBR = 'application/rpki-ghostbusters'; + public const M_GCA = 'application/x-gca-compressed'; + public const M_GDL = 'model/vnd.gdl'; + public const M_GEO = 'application/vnd.dynageo'; + public const M_GEX = 'application/vnd.geometry-explorer'; + public const M_GGB = 'application/vnd.geogebra.file'; + public const M_GGT = 'application/vnd.geogebra.tool'; + public const M_GHF = 'application/vnd.groove-help'; + public const M_GIF = 'image/gif'; + public const M_GIM = 'application/vnd.groove-identity-message'; + public const M_GML = 'application/gml+xml'; + public const M_GMX = 'application/vnd.gmx'; + public const M_GNUMERIC = 'application/x-gnumeric'; + public const M_GPH = 'application/vnd.flographit'; + public const M_GPX = 'application/gpx+xml'; + public const M_GQF = 'application/vnd.grafeq'; + public const M_GQS = 'application/vnd.grafeq'; + public const M_GRAM = 'application/srgs'; + public const M_GRAMPS = 'application/x-gramps-xml'; + public const M_GRE = 'application/vnd.geometry-explorer'; + public const M_GRV = 'application/vnd.groove-injector'; + public const M_GRXML = 'application/srgs+xml'; + public const M_GSF = 'application/x-font-ghostscript'; + public const M_GTAR = 'application/x-gtar'; + public const M_GTM = 'application/vnd.groove-tool-message'; + public const M_GTW = 'model/vnd.gtw'; + public const M_GV = 'text/vnd.graphviz'; + public const M_GXF = 'application/gxf'; + public const M_GXT = 'application/vnd.geonext'; + public const M_GZ = 'application/x-gzip'; + public const M_H = 'text/x-c'; + public const M_H261 = 'video/h261'; + public const M_H263 = 'video/h263'; + public const M_H264 = 'video/h264'; + public const M_HAL = 'application/vnd.hal+xml'; + public const M_HBCI = 'application/vnd.hbci'; + public const M_HDF = 'application/x-hdf'; + public const M_HH = 'text/x-c'; + public const M_HLP = 'application/winhlp'; + public const M_HPGL = 'application/vnd.hp-hpgl'; + public const M_HPID = 'application/vnd.hp-hpid'; + public const M_HPS = 'application/vnd.hp-hps'; + public const M_HQX = 'application/mac-binhex40'; + public const M_HTKE = 'application/vnd.kenameaapp'; + public const M_HTM = 'text/html'; + public const M_HTML = 'text/html'; + public const M_HVD = 'application/vnd.yamaha.hv-dic'; + public const M_HVP = 'application/vnd.yamaha.hv-voice'; + public const M_HVS = 'application/vnd.yamaha.hv-script'; + public const M_I2G = 'application/vnd.intergeo'; + public const M_ICC = 'application/vnd.iccprofile'; + public const M_ICE = 'x-conference/x-cooltalk'; + public const M_ICM = 'application/vnd.iccprofile'; + public const M_ICO = 'image/x-icon'; + public const M_ICS = 'text/calendar'; + public const M_IEF = 'image/ief'; + public const M_IFB = 'text/calendar'; + public const M_IFM = 'application/vnd.shana.informed.formdata'; + public const M_IGES = 'model/iges'; + public const M_IGL = 'application/vnd.igloader'; + public const M_IGM = 'application/vnd.insors.igm'; + public const M_IGS = 'model/iges'; + public const M_IGX = 'application/vnd.micrografx.igx'; + public const M_IIF = 'application/vnd.shana.informed.interchange'; + public const M_IMP = 'application/vnd.accpac.simply.imp'; + public const M_IMS = 'application/vnd.ms-ims'; + public const M_IN = 'text/plain'; + public const M_INK = 'application/inkml+xml'; + public const M_INKML = 'application/inkml+xml'; + public const M_INSTALL = 'application/x-install-instructions'; + public const M_IOTA = 'application/vnd.astraea-software.iota'; + public const M_IPFIX = 'application/ipfix'; + public const M_IPK = 'application/vnd.shana.informed.package'; + public const M_IRM = 'application/vnd.ibm.rights-management'; + public const M_IRP = 'application/vnd.irepository.package+xml'; + public const M_ISO = 'application/x-iso9660-image'; + public const M_ITP = 'application/vnd.shana.informed.formtemplate'; + public const M_IVP = 'application/vnd.immervision-ivp'; + public const M_IVU = 'application/vnd.immervision-ivu'; + public const M_JAD = 'text/vnd.sun.j2me.app-descriptor'; + public const M_JAM = 'application/vnd.jam'; + public const M_JAR = 'application/java-archive'; + public const M_JAVA = 'text/x-java-source'; + public const M_JISP = 'application/vnd.jisp'; + public const M_JLT = 'application/vnd.hp-jlyt'; + public const M_JNLP = 'application/x-java-jnlp-file'; + public const M_JODA = 'application/vnd.joost.joda-archive'; + public const M_JPE = 'image/jpeg'; + public const M_JPEG = 'image/jpeg'; + public const M_JPG = 'image/jpeg'; + public const M_JPGM = 'video/jpm'; + public const M_JPGV = 'video/jpeg'; + public const M_JPM = 'video/jpm'; + public const M_JS = 'application/javascript'; + public const M_JSON = 'application/json'; + public const M_JSONML = 'application/jsonml+json'; + public const M_KAR = 'audio/midi'; + public const M_KARBON = 'application/vnd.kde.karbon'; + public const M_KFO = 'application/vnd.kde.kformula'; + public const M_KIA = 'application/vnd.kidspiration'; + public const M_KML = 'application/vnd.google-earth.kml+xml'; + public const M_KMZ = 'application/vnd.google-earth.kmz'; + public const M_KNE = 'application/vnd.kinar'; + public const M_KNP = 'application/vnd.kinar'; + public const M_KON = 'application/vnd.kde.kontour'; + public const M_KPR = 'application/vnd.kde.kpresenter'; + public const M_KPT = 'application/vnd.kde.kpresenter'; + public const M_KPXX = 'application/vnd.ds-keypoint'; + public const M_KSP = 'application/vnd.kde.kspread'; + public const M_KTR = 'application/vnd.kahootz'; + public const M_KTX = 'image/ktx'; + public const M_KTZ = 'application/vnd.kahootz'; + public const M_KWD = 'application/vnd.kde.kword'; + public const M_KWT = 'application/vnd.kde.kword'; + public const M_LASXML = 'application/vnd.las.las+xml'; + public const M_LATEX = 'application/x-latex'; + public const M_LBD = 'application/vnd.llamagraphics.life-balance.desktop'; + public const M_LBE = 'application/vnd.llamagraphics.life-balance.exchange+xml'; + public const M_LES = 'application/vnd.hhe.lesson-player'; + public const M_LHA = 'application/x-lzh-compressed'; + public const M_LINK66 = 'application/vnd.route66.link66+xml'; + public const M_LIST = 'text/plain'; + public const M_LIST3820 = 'application/vnd.ibm.modcap'; + public const M_LISTAFP = 'application/vnd.ibm.modcap'; + public const M_LNK = 'application/x-ms-shortcut'; + public const M_LOG = 'text/plain'; + public const M_LOSTXML = 'application/lost+xml'; + public const M_LRF = 'application/octet-stream'; + public const M_LRM = 'application/vnd.ms-lrm'; + public const M_LTF = 'application/vnd.frogans.ltf'; + public const M_LVP = 'audio/vnd.lucent.voice'; + public const M_LWP = 'application/vnd.lotus-wordpro'; + public const M_LZH = 'application/x-lzh-compressed'; + public const M_M13 = 'application/x-msmediaview'; + public const M_M14 = 'application/x-msmediaview'; + public const M_M1V = 'video/mpeg'; + public const M_M21 = 'application/mp21'; + public const M_M2A = 'audio/mpeg'; + public const M_M2V = 'video/mpeg'; + public const M_M3A = 'audio/mpeg'; + public const M_M3U = 'audio/x-mpegurl'; + public const M_M3U8 = 'application/vnd.apple.mpegurl'; + public const M_M4A = 'audio/mp4'; + public const M_M4U = 'video/vnd.mpegurl'; + public const M_M4V = 'video/x-m4v'; + public const M_MA = 'application/mathematica'; + public const M_MADS = 'application/mads+xml'; + public const M_MAG = 'application/vnd.ecowin.chart'; + public const M_MAKER = 'application/vnd.framemaker'; + public const M_MAN = 'text/troff'; + public const M_MAR = 'application/octet-stream'; + public const M_MATHML = 'application/mathml+xml'; + public const M_MB = 'application/mathematica'; + public const M_MBK = 'application/vnd.mobius.mbk'; + public const M_MBOX = 'application/mbox'; + public const M_MC1 = 'application/vnd.medcalcdata'; + public const M_MCD = 'application/vnd.mcd'; + public const M_MCURL = 'text/vnd.curl.mcurl'; + public const M_MDB = 'application/x-msaccess'; + public const M_MDI = 'image/vnd.ms-modi'; + public const M_ME = 'text/troff'; + public const M_MESH = 'model/mesh'; + public const M_META4 = 'application/metalink4+xml'; + public const M_METALINK = 'application/metalink+xml'; + public const M_METS = 'application/mets+xml'; + public const M_MFM = 'application/vnd.mfmp'; + public const M_MFT = 'application/rpki-manifest'; + public const M_MGP = 'application/vnd.osgeo.mapguide.package'; + public const M_MGZ = 'application/vnd.proteus.magazine'; + public const M_MID = 'audio/midi'; + public const M_MIDI = 'audio/midi'; + public const M_MIE = 'application/x-mie'; + public const M_MIF = 'application/vnd.mif'; + public const M_MIME = 'message/rfc822'; + public const M_MJ2 = 'video/mj2'; + public const M_MJP2 = 'video/mj2'; + public const M_MK3D = 'video/x-matroska'; + public const M_MKA = 'audio/x-matroska'; + public const M_MKS = 'video/x-matroska'; + public const M_MKV = 'video/x-matroska'; + public const M_MLP = 'application/vnd.dolby.mlp'; + public const M_MMD = 'application/vnd.chipnuts.karaoke-mmd'; + public const M_MMF = 'application/vnd.smaf'; + public const M_MMR = 'image/vnd.fujixerox.edmics-mmr'; + public const M_MNG = 'video/x-mng'; + public const M_MNY = 'application/x-msmoney'; + public const M_MOBI = 'application/x-mobipocket-ebook'; + public const M_MODS = 'application/mods+xml'; + public const M_MOV = 'video/quicktime'; + public const M_MOVIE = 'video/x-sgi-movie'; + public const M_MP2 = 'audio/mpeg'; + public const M_MP21 = 'application/mp21'; + public const M_MP2A = 'audio/mpeg'; + public const M_MP3 = 'audio/mpeg'; + public const M_MP4 = 'video/mp4'; + public const M_MP4A = 'audio/mp4'; + public const M_MP4S = 'application/mp4'; + public const M_MP4V = 'video/mp4'; + public const M_MPC = 'application/vnd.mophun.certificate'; + public const M_MPE = 'video/mpeg'; + public const M_MPEG = 'video/mpeg'; + public const M_MPG = 'video/mpeg'; + public const M_MPG4 = 'video/mp4'; + public const M_MPGA = 'audio/mpeg'; + public const M_MPKG = 'application/vnd.apple.installer+xml'; + public const M_MPM = 'application/vnd.blueice.multipass'; + public const M_MPN = 'application/vnd.mophun.application'; + public const M_MPP = 'application/vnd.ms-project'; + public const M_MPT = 'application/vnd.ms-project'; + public const M_MPY = 'application/vnd.ibm.minipay'; + public const M_MQY = 'application/vnd.mobius.mqy'; + public const M_MRC = 'application/marc'; + public const M_MRCX = 'application/marcxml+xml'; + public const M_MS = 'text/troff'; + public const M_MSCML = 'application/mediaservercontrol+xml'; + public const M_MSEED = 'application/vnd.fdsn.mseed'; + public const M_MSEQ = 'application/vnd.mseq'; + public const M_MSF = 'application/vnd.epson.msf'; + public const M_MSH = 'model/mesh'; + public const M_MSI = 'application/x-msdownload'; + public const M_MSL = 'application/vnd.mobius.msl'; + public const M_MSTY = 'application/vnd.muvee.style'; + public const M_MULT = 'multipart/form-data'; + public const M_ALT = 'multipart/alternative'; + public const M_MIXED = 'multipart/mixed'; + public const M_RELATED = 'multipart/related'; + public const M_MTS = 'model/vnd.mts'; + public const M_MUS = 'application/vnd.musician'; + public const M_MUSICXML = 'application/vnd.recordare.musicxml+xml'; + public const M_MVB = 'application/x-msmediaview'; + public const M_MWF = 'application/vnd.mfer'; + public const M_MXF = 'application/mxf'; + public const M_MXL = 'application/vnd.recordare.musicxml'; + public const M_MXML = 'application/xv+xml'; + public const M_MXS = 'application/vnd.triscape.mxs'; + public const M_MXU = 'video/vnd.mpegurl'; + public const M_N_GAGE = 'application/vnd.nokia.n-gage.symbian.install'; + public const M_N3 = 'text/n3'; + public const M_NB = 'application/mathematica'; + public const M_NBP = 'application/vnd.wolfram.player'; + public const M_NC = 'application/x-netcdf'; + public const M_NCX = 'application/x-dtbncx+xml'; + public const M_NFO = 'text/x-nfo'; + public const M_NGDAT = 'application/vnd.nokia.n-gage.data'; + public const M_NITF = 'application/vnd.nitf'; + public const M_NLU = 'application/vnd.neurolanguage.nlu'; + public const M_NML = 'application/vnd.enliven'; + public const M_NND = 'application/vnd.noblenet-directory'; + public const M_NNS = 'application/vnd.noblenet-sealer'; + public const M_NNW = 'application/vnd.noblenet-web'; + public const M_NPX = 'image/vnd.net-fpx'; + public const M_NSC = 'application/x-conference'; + public const M_NSF = 'application/vnd.lotus-notes'; + public const M_NTF = 'application/vnd.nitf'; + public const M_NZB = 'application/x-nzb'; + public const M_OA2 = 'application/vnd.fujitsu.oasys2'; + public const M_OA3 = 'application/vnd.fujitsu.oasys3'; + public const M_OAS = 'application/vnd.fujitsu.oasys'; + public const M_OBD = 'application/x-msbinder'; + public const M_OBJ = 'application/x-tgif'; + public const M_ODA = 'application/oda'; + public const M_ODB = 'application/vnd.oasis.opendocument.database'; + public const M_ODC = 'application/vnd.oasis.opendocument.chart'; + public const M_ODF = 'application/vnd.oasis.opendocument.formula'; + public const M_ODFT = 'application/vnd.oasis.opendocument.formula-template'; + public const M_ODG = 'application/vnd.oasis.opendocument.graphics'; + public const M_ODI = 'application/vnd.oasis.opendocument.image'; + public const M_ODM = 'application/vnd.oasis.opendocument.text-master'; + public const M_ODP = 'application/vnd.oasis.opendocument.presentation'; + public const M_ODS = 'application/vnd.oasis.opendocument.spreadsheet'; + public const M_ODT = 'application/vnd.oasis.opendocument.text'; + public const M_OGA = 'audio/ogg'; + public const M_OGG = 'audio/ogg'; + public const M_OGV = 'video/ogg'; + public const M_OGX = 'application/ogg'; + public const M_OMDOC = 'application/omdoc+xml'; + public const M_ONEPKG = 'application/onenote'; + public const M_ONETMP = 'application/onenote'; + public const M_ONETOC = 'application/onenote'; + public const M_ONETOC2 = 'application/onenote'; + public const M_OPF = 'application/oebps-package+xml'; + public const M_OPML = 'text/x-opml'; + public const M_OPRC = 'application/vnd.palm'; + public const M_ORG = 'application/vnd.lotus-organizer'; + public const M_OSF = 'application/vnd.yamaha.openscoreformat'; + public const M_OSFPVG = 'application/vnd.yamaha.openscoreformat.osfpvg+xml'; + public const M_OTC = 'application/vnd.oasis.opendocument.chart-template'; + public const M_OTF = 'application/x-font-otf'; + public const M_OTG = 'application/vnd.oasis.opendocument.graphics-template'; + public const M_OTH = 'application/vnd.oasis.opendocument.text-web'; + public const M_OTI = 'application/vnd.oasis.opendocument.image-template'; + public const M_OTP = 'application/vnd.oasis.opendocument.presentation-template'; + public const M_OTS = 'application/vnd.oasis.opendocument.spreadsheet-template'; + public const M_OTT = 'application/vnd.oasis.opendocument.text-template'; + public const M_OXPS = 'application/oxps'; + public const M_OXT = 'application/vnd.openofficeorg.extension'; + public const M_P = 'text/x-pascal'; + public const M_P10 = 'application/pkcs10'; + public const M_P12 = 'application/x-pkcs12'; + public const M_P7B = 'application/x-pkcs7-certificates'; + public const M_P7C = 'application/pkcs7-mime'; + public const M_P7M = 'application/pkcs7-mime'; + public const M_P7R = 'application/x-pkcs7-certreqresp'; + public const M_P7S = 'application/pkcs7-signature'; + public const M_P8 = 'application/pkcs8'; + public const M_PAS = 'text/x-pascal'; + public const M_PAW = 'application/vnd.pawaafile'; + public const M_PBD = 'application/vnd.powerbuilder6'; + public const M_PBM = 'image/x-portable-bitmap'; + public const M_PCAP = 'application/vnd.tcpdump.pcap'; + public const M_PCF = 'application/x-font-pcf'; + public const M_PCL = 'application/vnd.hp-pcl'; + public const M_PCLXL = 'application/vnd.hp-pclxl'; + public const M_PCT = 'image/x-pict'; + public const M_PCURL = 'application/vnd.curl.pcurl'; + public const M_PCX = 'image/x-pcx'; + public const M_PDB = 'application/vnd.palm'; + public const M_PDF = 'application/pdf'; + public const M_PFA = 'application/x-font-type1'; + public const M_PFB = 'application/x-font-type1'; + public const M_PFM = 'application/x-font-type1'; + public const M_PFR = 'application/font-tdpfr'; + public const M_PFX = 'application/x-pkcs12'; + public const M_PGM = 'image/x-portable-graymap'; + public const M_PGN = 'application/x-chess-pgn'; + public const M_PGP = 'application/pgp-encrypted'; + public const M_PHP = 'application/x-php'; + public const M_PHP3 = 'application/x-php'; + public const M_PHP4 = 'application/x-php'; + public const M_PHP5 = 'application/x-php'; + public const M_PIC = 'image/x-pict'; + public const M_PKG = 'application/octet-stream'; + public const M_PKI = 'application/pkixcmp'; + public const M_PKIPATH = 'application/pkix-pkipath'; + public const M_PLB = 'application/vnd.3gpp.pic-bw-large'; + public const M_PLC = 'application/vnd.mobius.plc'; + public const M_PLF = 'application/vnd.pocketlearn'; + public const M_PLS = 'application/pls+xml'; + public const M_PML = 'application/vnd.ctc-posml'; + public const M_PNG = 'image/png'; + public const M_PNM = 'image/x-portable-anymap'; + public const M_PORTPKG = 'application/vnd.macports.portpkg'; + public const M_POST = 'application/x-www-form-urlencoded'; + public const M_POT = 'application/vnd.ms-powerpoint'; + public const M_POTM = 'application/vnd.ms-powerpoint.template.macroenabled.12'; + public const M_POTX = 'application/vnd.openxmlformats-officedocument.presentationml.template'; + public const M_PPAM = 'application/vnd.ms-powerpoint.addin.macroenabled.12'; + public const M_PPD = 'application/vnd.cups-ppd'; + public const M_PPM = 'image/x-portable-pixmap'; + public const M_PPS = 'application/vnd.ms-powerpoint'; + public const M_PPSM = 'application/vnd.ms-powerpoint.slideshow.macroenabled.12'; + public const M_PPSX = 'application/vnd.openxmlformats-officedocument.presentationml.slideshow'; + public const M_PPT = 'application/vnd.ms-powerpoint'; + public const M_PPTM = 'application/vnd.ms-powerpoint.presentation.macroenabled.12'; + public const M_PPTX = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; + public const M_PQA = 'application/vnd.palm'; + public const M_PRC = 'application/x-mobipocket-ebook'; + public const M_PRE = 'application/vnd.lotus-freelance'; + public const M_PRF = 'application/pics-rules'; + public const M_PS = 'application/postscript'; + public const M_PSB = 'application/vnd.3gpp.pic-bw-small'; + public const M_PSD = 'image/vnd.adobe.photoshop'; + public const M_PSF = 'application/x-font-linux-psf'; + public const M_PSKCXML = 'application/pskc+xml'; + public const M_PTID = 'application/vnd.pvi.ptid1'; + public const M_PUB = 'application/x-mspublisher'; + public const M_PVB = 'application/vnd.3gpp.pic-bw-var'; + public const M_PWN = 'application/vnd.3m.post-it-notes'; + public const M_PYA = 'audio/vnd.ms-playready.media.pya'; + public const M_PYV = 'video/vnd.ms-playready.media.pyv'; + public const M_QAM = 'application/vnd.epson.quickanime'; + public const M_QBO = 'application/vnd.intu.qbo'; + public const M_QFX = 'application/vnd.intu.qfx'; + public const M_QPS = 'application/vnd.publishare-delta-tree'; + public const M_QT = 'video/quicktime'; + public const M_QWD = 'application/vnd.quark.quarkxpress'; + public const M_QWT = 'application/vnd.quark.quarkxpress'; + public const M_QXB = 'application/vnd.quark.quarkxpress'; + public const M_QXD = 'application/vnd.quark.quarkxpress'; + public const M_QXL = 'application/vnd.quark.quarkxpress'; + public const M_QXT = 'application/vnd.quark.quarkxpress'; + public const M_RA = 'audio/x-pn-realaudio'; + public const M_RAM = 'audio/x-pn-realaudio'; + public const M_RAR = 'application/x-rar-compressed'; + public const M_RAS = 'image/x-cmu-raster'; + public const M_RCPROFILE = 'application/vnd.ipunplugged.rcprofile'; + public const M_RDF = 'application/rdf+xml'; + public const M_RDZ = 'application/vnd.data-vision.rdz'; + public const M_REP = 'application/vnd.businessobjects'; + public const M_RES = 'application/x-dtbresource+xml'; + public const M_RGB = 'image/x-rgb'; + public const M_RIF = 'application/reginfo+xml'; + public const M_RIP = 'audio/vnd.rip'; + public const M_RIS = 'application/x-research-info-systems'; + public const M_RL = 'application/resource-lists+xml'; + public const M_RLC = 'image/vnd.fujixerox.edmics-rlc'; + public const M_RLD = 'application/resource-lists-diff+xml'; + public const M_RM = 'application/vnd.rn-realmedia'; + public const M_RMI = 'audio/midi'; + public const M_RMP = 'audio/x-pn-realaudio-plugin'; + public const M_RMS = 'application/vnd.jcp.javame.midlet-rms'; + public const M_RMVB = 'application/vnd.rn-realmedia-vbr'; + public const M_RNC = 'application/relax-ng-compact-syntax'; + public const M_ROA = 'application/rpki-roa'; + public const M_ROFF = 'text/troff'; + public const M_RP9 = 'application/vnd.cloanto.rp9'; + public const M_RPSS = 'application/vnd.nokia.radio-presets'; + public const M_RPST = 'application/vnd.nokia.radio-preset'; + public const M_RQ = 'application/sparql-query'; + public const M_RS = 'application/rls-services+xml'; + public const M_RSD = 'application/rsd+xml'; + public const M_RSS = 'application/rss+xml'; + public const M_RTF = 'application/rtf'; + public const M_RTX = 'text/richtext'; + public const M_S = 'text/x-asm'; + public const M_S3M = 'audio/s3m'; + public const M_SAF = 'application/vnd.yamaha.smaf-audio'; + public const M_SBML = 'application/sbml+xml'; + public const M_SC = 'application/vnd.ibm.secure-container'; + public const M_SCD = 'application/x-msschedule'; + public const M_SCM = 'application/vnd.lotus-screencam'; + public const M_SCQ = 'application/scvp-cv-request'; + public const M_SCS = 'application/scvp-cv-response'; + public const M_SCURL = 'text/vnd.curl.scurl'; + public const M_SDA = 'application/vnd.stardivision.draw'; + public const M_SDC = 'application/vnd.stardivision.calc'; + public const M_SDD = 'application/vnd.stardivision.impress'; + public const M_SDKD = 'application/vnd.solent.sdkm+xml'; + public const M_SDKM = 'application/vnd.solent.sdkm+xml'; + public const M_SDP = 'application/sdp'; + public const M_SDW = 'application/vnd.stardivision.writer'; + public const M_SEE = 'application/vnd.seemail'; + public const M_SEED = 'application/vnd.fdsn.seed'; + public const M_SEMA = 'application/vnd.sema'; + public const M_SEMD = 'application/vnd.semd'; + public const M_SEMF = 'application/vnd.semf'; + public const M_SER = 'application/java-serialized-object'; + public const M_SETPAY = 'application/set-payment-initiation'; + public const M_SETREG = 'application/set-registration-initiation'; + public const M_SFD_HDSTX = 'application/vnd.hydrostatix.sof-data'; + public const M_SFS = 'application/vnd.spotfire.sfs'; + public const M_SFV = 'text/x-sfv'; + public const M_SGI = 'image/sgi'; + public const M_SGL = 'application/vnd.stardivision.writer-global'; + public const M_SGM = 'text/sgml'; + public const M_SGML = 'text/sgml'; + public const M_SH = 'application/x-sh'; + public const M_SHAR = 'application/x-shar'; + public const M_SHF = 'application/shf+xml'; + public const M_SID = 'image/x-mrsid-image'; + public const M_SIG = 'application/pgp-signature'; + public const M_SIL = 'audio/silk'; + public const M_SILO = 'model/mesh'; + public const M_SIS = 'application/vnd.symbian.install'; + public const M_SISX = 'application/vnd.symbian.install'; + public const M_SIT = 'application/x-stuffit'; + public const M_SITX = 'application/x-stuffitx'; + public const M_SKD = 'application/vnd.koan'; + public const M_SKM = 'application/vnd.koan'; + public const M_SKP = 'application/vnd.koan'; + public const M_SKT = 'application/vnd.koan'; + public const M_SLDM = 'application/vnd.ms-powerpoint.slide.macroenabled.12'; + public const M_SLDX = 'application/vnd.openxmlformats-officedocument.presentationml.slide'; + public const M_SLT = 'application/vnd.epson.salt'; + public const M_SM = 'application/vnd.stepmania.stepchart'; + public const M_SMF = 'application/vnd.stardivision.math'; + public const M_SMI = 'application/smil+xml'; + public const M_SMIL = 'application/smil+xml'; + public const M_SMV = 'video/x-smv'; + public const M_SMZIP = 'application/vnd.stepmania.package'; + public const M_SND = 'audio/basic'; + public const M_SNF = 'application/x-font-snf'; + public const M_SO = 'application/octet-stream'; + public const M_SPC = 'application/x-pkcs7-certificates'; + public const M_SPF = 'application/vnd.yamaha.smaf-phrase'; + public const M_SPL = 'application/x-futuresplash'; + public const M_SPOT = 'text/vnd.in3d.spot'; + public const M_SPP = 'application/scvp-vp-response'; + public const M_SPQ = 'application/scvp-vp-request'; + public const M_SPX = 'audio/ogg'; + public const M_SQL = 'application/x-sql'; + public const M_SRC = 'application/x-wais-source'; + public const M_SRT = 'application/x-subrip'; + public const M_SRU = 'application/sru+xml'; + public const M_SRX = 'application/sparql-results+xml'; + public const M_SSDL = 'application/ssdl+xml'; + public const M_SSE = 'application/vnd.kodak-descriptor'; + public const M_SSF = 'application/vnd.epson.ssf'; + public const M_SSML = 'application/ssml+xml'; + public const M_ST = 'application/vnd.sailingtracker.track'; + public const M_STC = 'application/vnd.sun.xml.calc.template'; + public const M_STD = 'application/vnd.sun.xml.draw.template'; + public const M_STF = 'application/vnd.wt.stf'; + public const M_STI = 'application/vnd.sun.xml.impress.template'; + public const M_STK = 'application/hyperstudio'; + public const M_STL = 'application/vnd.ms-pki.stl'; + public const M_STR = 'application/vnd.pg.format'; + public const M_STW = 'application/vnd.sun.xml.writer.template'; + public const M_SUB = 'text/vnd.dvb.subtitle'; + public const M_SUS = 'application/vnd.sus-calendar'; + public const M_SUSP = 'application/vnd.sus-calendar'; + public const M_SV4CPIO = 'application/x-sv4cpio'; + public const M_SV4CRC = 'application/x-sv4crc'; + public const M_SVC = 'application/vnd.dvb.service'; + public const M_SVD = 'application/vnd.svd'; + public const M_SVG = 'image/svg+xml'; + public const M_SVGZ = 'image/svg+xml'; + public const M_SWA = 'application/x-director'; + public const M_SWF = 'application/x-shockwave-flash'; + public const M_SWI = 'application/vnd.aristanetworks.swi'; + public const M_SXC = 'application/vnd.sun.xml.calc'; + public const M_SXD = 'application/vnd.sun.xml.draw'; + public const M_SXG = 'application/vnd.sun.xml.writer.global'; + public const M_SXI = 'application/vnd.sun.xml.impress'; + public const M_SXM = 'application/vnd.sun.xml.math'; + public const M_SXW = 'application/vnd.sun.xml.writer'; + public const M_T = 'text/troff'; + public const M_T3 = 'application/x-t3vm-image'; + public const M_TAGLET = 'application/vnd.mynfc'; + public const M_TAO = 'application/vnd.tao.intent-module-archive'; + public const M_TAR = 'application/x-tar'; + public const M_TCAP = 'application/vnd.3gpp2.tcap'; + public const M_TCL = 'application/x-tcl'; + public const M_TEACHER = 'application/vnd.smart.teacher'; + public const M_TEI = 'application/tei+xml'; + public const M_TEICORPUS = 'application/tei+xml'; + public const M_TEX = 'application/x-tex'; + public const M_TEXI = 'application/x-texinfo'; + public const M_TEXINFO = 'application/x-texinfo'; + public const M_TEXT = 'text/plain'; + public const M_TFI = 'application/thraud+xml'; + public const M_TFM = 'application/x-tex-tfm'; + public const M_TGA = 'image/x-tga'; + public const M_THMX = 'application/vnd.ms-officetheme'; + public const M_TIF = 'image/tiff'; + public const M_TIFF = 'image/tiff'; + public const M_TMO = 'application/vnd.tmobile-livetv'; + public const M_TORRENT = 'application/x-bittorrent'; + public const M_TPL = 'application/vnd.groove-tool-template'; + public const M_TPT = 'application/vnd.trid.tpt'; + public const M_TR = 'text/troff'; + public const M_TRA = 'application/vnd.trueapp'; + public const M_TRM = 'application/x-msterminal'; + public const M_TSD = 'application/timestamped-data'; + public const M_TSV = 'text/tab-separated-values'; + public const M_TTC = 'application/x-font-ttf'; + public const M_TTF = 'application/x-font-ttf'; + public const M_TTL = 'text/turtle'; + public const M_TWD = 'application/vnd.simtech-mindmapper'; + public const M_TWDS = 'application/vnd.simtech-mindmapper'; + public const M_TXD = 'application/vnd.genomatix.tuxedo'; + public const M_TXF = 'application/vnd.mobius.txf'; + public const M_TXT = 'text/plain'; + public const M_U32 = 'application/x-authorware-bin'; + public const M_UDEB = 'application/x-debian-package'; + public const M_UFD = 'application/vnd.ufdl'; + public const M_UFDL = 'application/vnd.ufdl'; + public const M_ULX = 'application/x-glulx'; + public const M_UMJ = 'application/vnd.umajin'; + public const M_UNITYWEB = 'application/vnd.unity'; + public const M_UOML = 'application/vnd.uoml+xml'; + public const M_URI = 'text/uri-list'; + public const M_URIS = 'text/uri-list'; + public const M_URLS = 'text/uri-list'; + public const M_USTAR = 'application/x-ustar'; + public const M_UTZ = 'application/vnd.uiq.theme'; + public const M_UU = 'text/x-uuencode'; + public const M_UVA = 'audio/vnd.dece.audio'; + public const M_UVD = 'application/vnd.dece.data'; + public const M_UVF = 'application/vnd.dece.data'; + public const M_UVG = 'image/vnd.dece.graphic'; + public const M_UVH = 'video/vnd.dece.hd'; + public const M_UVI = 'image/vnd.dece.graphic'; + public const M_UVM = 'video/vnd.dece.mobile'; + public const M_UVP = 'video/vnd.dece.pd'; + public const M_UVS = 'video/vnd.dece.sd'; + public const M_UVT = 'application/vnd.dece.ttml+xml'; + public const M_UVU = 'video/vnd.uvvu.mp4'; + public const M_UVV = 'video/vnd.dece.video'; + public const M_UVVA = 'audio/vnd.dece.audio'; + public const M_UVVD = 'application/vnd.dece.data'; + public const M_UVVF = 'application/vnd.dece.data'; + public const M_UVVG = 'image/vnd.dece.graphic'; + public const M_UVVH = 'video/vnd.dece.hd'; + public const M_UVVI = 'image/vnd.dece.graphic'; + public const M_UVVM = 'video/vnd.dece.mobile'; + public const M_UVVP = 'video/vnd.dece.pd'; + public const M_UVVS = 'video/vnd.dece.sd'; + public const M_UVVT = 'application/vnd.dece.ttml+xml'; + public const M_UVVU = 'video/vnd.uvvu.mp4'; + public const M_UVVV = 'video/vnd.dece.video'; + public const M_UVVX = 'application/vnd.dece.unspecified'; + public const M_UVVZ = 'application/vnd.dece.zip'; + public const M_UVX = 'application/vnd.dece.unspecified'; + public const M_UVZ = 'application/vnd.dece.zip'; + public const M_VCARD = 'text/vcard'; + public const M_VCD = 'application/x-cdlink'; + public const M_VCF = 'text/x-vcard'; + public const M_VCG = 'application/vnd.groove-vcard'; + public const M_VCS = 'text/x-vcalendar'; + public const M_VCX = 'application/vnd.vcx'; + public const M_VIS = 'application/vnd.visionary'; + public const M_VIV = 'video/vnd.vivo'; + public const M_VOB = 'video/x-ms-vob'; + public const M_VOR = 'application/vnd.stardivision.writer'; + public const M_VOX = 'application/x-authorware-bin'; + public const M_VRML = 'model/vrml'; + public const M_VSD = 'application/vnd.visio'; + public const M_VSF = 'application/vnd.vsf'; + public const M_VSS = 'application/vnd.visio'; + public const M_VST = 'application/vnd.visio'; + public const M_VSW = 'application/vnd.visio'; + public const M_VTU = 'model/vnd.vtu'; + public const M_VXML = 'application/voicexml+xml'; + public const M_W3D = 'application/x-director'; + public const M_WAD = 'application/x-doom'; + public const M_WAV = 'audio/x-wav'; + public const M_WAX = 'audio/x-ms-wax'; + public const M_WBMP = 'image/vnd.wap.wbmp'; + public const M_WBS = 'application/vnd.criticaltools.wbs+xml'; + public const M_WBXML = 'application/vnd.wap.wbxml'; + public const M_WCM = 'application/vnd.ms-works'; + public const M_WDB = 'application/vnd.ms-works'; + public const M_WDP = 'image/vnd.ms-photo'; + public const M_WEBA = 'audio/webm'; + public const M_WEBM = 'video/webm'; + public const M_WEBP = 'image/webp'; + public const M_WG = 'application/vnd.pmi.widget'; + public const M_WGT = 'application/widget'; + public const M_WKS = 'application/vnd.ms-works'; + public const M_WM = 'video/x-ms-wm'; + public const M_WMA = 'audio/x-ms-wma'; + public const M_WMD = 'application/x-ms-wmd'; + public const M_WMF = 'application/x-msmetafile'; + public const M_WML = 'text/vnd.wap.wml'; + public const M_WMLC = 'application/vnd.wap.wmlc'; + public const M_WMLS = 'text/vnd.wap.wmlscript'; + public const M_WMLSC = 'application/vnd.wap.wmlscriptc'; + public const M_WMV = 'video/x-ms-wmv'; + public const M_WMX = 'video/x-ms-wmx'; + public const M_WMZ = 'application/x-msmetafile'; + public const M_WOFF = 'application/font-woff'; + public const M_WPD = 'application/vnd.wordperfect'; + public const M_WPL = 'application/vnd.ms-wpl'; + public const M_WPS = 'application/vnd.ms-works'; + public const M_WQD = 'application/vnd.wqd'; + public const M_WRI = 'application/x-mswrite'; + public const M_WRL = 'model/vrml'; + public const M_WSDL = 'application/wsdl+xml'; + public const M_WSPOLICY = 'application/wspolicy+xml'; + public const M_WTB = 'application/vnd.webturbo'; + public const M_WVX = 'video/x-ms-wvx'; + public const M_X32 = 'application/x-authorware-bin'; + public const M_X3D = 'model/x3d+xml'; + public const M_X3DB = 'model/x3d+binary'; + public const M_X3DBZ = 'model/x3d+binary'; + public const M_X3DV = 'model/x3d+vrml'; + public const M_X3DVZ = 'model/x3d+vrml'; + public const M_X3DZ = 'model/x3d+xml'; + public const M_XAML = 'application/xaml+xml'; + public const M_XAP = 'application/x-silverlight-app'; + public const M_XAR = 'application/vnd.xara'; + public const M_XBAP = 'application/x-ms-xbap'; + public const M_XBD = 'application/vnd.fujixerox.docuworks.binder'; + public const M_XBM = 'image/x-xbitmap'; + public const M_XDF = 'application/xcap-diff+xml'; + public const M_XDM = 'application/vnd.syncml.dm+xml'; + public const M_XDP = 'application/vnd.adobe.xdp+xml'; + public const M_XDSSC = 'application/dssc+xml'; + public const M_XDW = 'application/vnd.fujixerox.docuworks'; + public const M_XENC = 'application/xenc+xml'; + public const M_XER = 'application/patch-ops-error+xml'; + public const M_XFDF = 'application/vnd.adobe.xfdf'; + public const M_XFDL = 'application/vnd.xfdl'; + public const M_XHT = 'application/xhtml+xml'; + public const M_XHTML = 'application/xhtml+xml'; + public const M_XHVML = 'application/xv+xml'; + public const M_XIF = 'image/vnd.xiff'; + public const M_XLA = 'application/vnd.ms-excel'; + public const M_XLAM = 'application/vnd.ms-excel.addin.macroenabled.12'; + public const M_XLC = 'application/vnd.ms-excel'; + public const M_XLF = 'application/x-xliff+xml'; + public const M_XLM = 'application/vnd.ms-excel'; + public const M_XLS = 'application/vnd.ms-excel'; + public const M_XLSB = 'application/vnd.ms-excel.sheet.binary.macroenabled.12'; + public const M_XLSM = 'application/vnd.ms-excel.sheet.macroenabled.12'; + public const M_XLSX = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; + public const M_XLT = 'application/vnd.ms-excel'; + public const M_XLTM = 'application/vnd.ms-excel.template.macroenabled.12'; + public const M_XLTX = 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'; + public const M_XLW = 'application/vnd.ms-excel'; + public const M_XM = 'audio/xm'; + public const M_XML = 'application/xml'; + public const M_XO = 'application/vnd.olpc-sugar'; + public const M_XOP = 'application/xop+xml'; + public const M_XPI = 'application/x-xpinstall'; + public const M_XPL = 'application/xproc+xml'; + public const M_XPM = 'image/x-xpixmap'; + public const M_XPR = 'application/vnd.is-xpr'; + public const M_XPS = 'application/vnd.ms-xpsdocument'; + public const M_XPW = 'application/vnd.intercon.formnet'; + public const M_XPX = 'application/vnd.intercon.formnet'; + public const M_XSL = 'application/xml'; + public const M_XSLT = 'application/xslt+xml'; + public const M_XSM = 'application/vnd.syncml+xml'; + public const M_XSPF = 'application/xspf+xml'; + public const M_XUL = 'application/vnd.mozilla.xul+xml'; + public const M_XVM = 'application/xv+xml'; + public const M_XVML = 'application/xv+xml'; + public const M_XWD = 'image/x-xwindowdump'; + public const M_XYZ = 'chemical/x-xyz'; + public const M_XZ = 'application/x-xz'; + public const M_YANG = 'application/yang'; + public const M_YIN = 'application/yin+xml'; + public const M_Z1 = 'application/x-zmachine'; + public const M_Z2 = 'application/x-zmachine'; + public const M_Z3 = 'application/x-zmachine'; + public const M_Z4 = 'application/x-zmachine'; + public const M_Z5 = 'application/x-zmachine'; + public const M_Z6 = 'application/x-zmachine'; + public const M_Z7 = 'application/x-zmachine'; + public const M_Z8 = 'application/x-zmachine'; + public const M_ZAZ = 'application/vnd.zzazz.deck+xml'; + public const M_ZIP = 'application/zip'; + public const M_ZIR = 'application/vnd.zul'; + public const M_ZIRZ = 'application/vnd.zul'; + public const M_ZMM = 'application/vnd.handheld-entertainment+xml'; + public const M_123 = 'application/vnd.lotus-1-2-3'; /** {@inheritdoc} */ diff --git a/System/SystemType.php b/System/SystemType.php index 19ed42277..8ba20a340 100644 --- a/System/SystemType.php +++ b/System/SystemType.php @@ -27,7 +27,10 @@ use phpOMS\Stdlib\Base\Enum; abstract class SystemType extends Enum { public const UNKNOWN = 1; + public const WIN = 2; + public const LINUX = 3; + public const OSX = 4; } diff --git a/Uri/Argument.php b/Uri/Argument.php index 81037cac7..376bfaa0b 100644 --- a/Uri/Argument.php +++ b/Uri/Argument.php @@ -344,7 +344,7 @@ final class Argument implements UriInterface /** * {@inheritdoc} */ - public function getQuery(string $key = null) : string + public function getQuery(string $key = null) : string { if ($key !== null) { $key = \strtolower($key); diff --git a/Uri/HttpUri.php b/Uri/HttpUri.php index 5e3040051..2491a735e 100644 --- a/Uri/HttpUri.php +++ b/Uri/HttpUri.php @@ -352,7 +352,7 @@ final class HttpUri implements UriInterface /** * {@inheritdoc} */ - public function getQuery(string $key = null) : string + public function getQuery(string $key = null) : string { if ($key !== null) { $key = \strtolower($key); diff --git a/Uri/UriInterface.php b/Uri/UriInterface.php index c5ca30ec4..5e51878a1 100644 --- a/Uri/UriInterface.php +++ b/Uri/UriInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Uri; */ interface UriInterface { - /** * Is uri valid? * diff --git a/Uri/UriScheme.php b/Uri/UriScheme.php index b1a67ca28..faebc374c 100644 --- a/Uri/UriScheme.php +++ b/Uri/UriScheme.php @@ -27,18 +27,32 @@ use phpOMS\Stdlib\Base\Enum; abstract class UriScheme extends Enum { public const HTTP = 0; /* Http */ + public const FILE = 1; /* File */ + public const MAILTO = 2; /* Mail */ + public const FTP = 3; /* FTP */ + public const HTTPS = 4; /* Https */ + public const IRC = 5; /* IRC */ + public const TEL = 6; /* Telephone */ + public const TELNET = 7; /* Telnet */ + public const SSH = 8; /* SSH */ + public const SKYPE = 9; /* Skype */ + public const SSL = 10; /* SSL */ + public const NFS = 11; /* Network File System */ + public const GEO = 12; /* Geo location */ + public const MARKET = 13; /* Android Market */ + public const ITMS = 14; /* iTunes */ } diff --git a/Utils/Barcode/OrientationType.php b/Utils/Barcode/OrientationType.php index 0aaa66990..83975fc9e 100644 --- a/Utils/Barcode/OrientationType.php +++ b/Utils/Barcode/OrientationType.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class OrientationType extends Enum { public const HORIZONTAL = 0; + public const VERTICAL = 1; } diff --git a/Utils/Converter/AngleType.php b/Utils/Converter/AngleType.php index edee8afc5..695695de8 100644 --- a/Utils/Converter/AngleType.php +++ b/Utils/Converter/AngleType.php @@ -27,13 +27,22 @@ use phpOMS\Stdlib\Base\Enum; abstract class AngleType extends Enum { public const DEGREE = 'deg'; + public const RADIAN = 'rad'; + public const SECOND = 'arcsec'; + public const MINUTE = 'arcmin'; + public const MILLIRADIAN_US = 'mil (us ww2)'; + public const MILLIRADIAN_UK = 'mil (uk)'; + public const MILLIRADIAN_USSR = 'mil (ussr)'; + public const MILLIRADIAN_NATO = 'mil (nato)'; + public const GRADIAN = 'g'; + public const CENTRAD = 'crad'; } diff --git a/Utils/Converter/AreaType.php b/Utils/Converter/AreaType.php index 36597acea..a4d05bcbd 100644 --- a/Utils/Converter/AreaType.php +++ b/Utils/Converter/AreaType.php @@ -27,16 +27,28 @@ use phpOMS\Stdlib\Base\Enum; abstract class AreaType extends Enum { public const SQUARE_FEET = 'ft'; + public const SQUARE_METERS = 'm'; + public const SQUARE_KILOMETERS = 'km'; + public const SQUARE_MILES = 'mi'; + public const SQUARE_YARDS = 'yd'; + public const SQUARE_INCHES = 'in'; + public const SQUARE_MICROINCHES = 'muin'; + public const SQUARE_CENTIMETERS = 'cm'; + public const SQUARE_MILIMETERS = 'mm'; + public const SQUARE_MICROMETERS = 'micron'; + public const SQUARE_DECIMETERS = 'dm'; + public const HECTARES = 'ha'; + public const ACRES = 'ac'; } diff --git a/Utils/Converter/EnergyPowerType.php b/Utils/Converter/EnergyPowerType.php index fe405bbda..ee4cc827d 100644 --- a/Utils/Converter/EnergyPowerType.php +++ b/Utils/Converter/EnergyPowerType.php @@ -27,12 +27,20 @@ use phpOMS\Stdlib\Base\Enum; abstract class EnergyPowerType extends Enum { public const KILOWATT_HOUERS = 'kWh'; + public const MEGAWATT_HOUERS = 'MWh'; + public const KILOTONS = 'kt'; + public const JOULS = 'J'; + public const CALORIES = 'Cal'; + public const BTU = 'BTU'; + public const KILOJOULS = 'kJ'; + public const THERMEC = 'thmEC'; + public const NEWTON_METERS = 'Nm'; } diff --git a/Utils/Converter/FileSizeType.php b/Utils/Converter/FileSizeType.php index c686afc68..863b44bac 100644 --- a/Utils/Converter/FileSizeType.php +++ b/Utils/Converter/FileSizeType.php @@ -27,13 +27,22 @@ use phpOMS\Stdlib\Base\Enum; abstract class FileSizeType extends Enum { public const TERRABYTE = 'TB'; + public const GIGABYTE = 'GB'; + public const MEGABYTE = 'MB'; + public const KILOBYTE = 'KB'; + public const BYTE = 'B'; + public const TERRABIT = 'tbit'; + public const GIGABIT = 'gbit'; + public const MEGABIT = 'mbit'; + public const KILOBIT = 'kbit'; + public const BIT = 'bit'; } diff --git a/Utils/Converter/LengthType.php b/Utils/Converter/LengthType.php index 0621af6db..de65da081 100644 --- a/Utils/Converter/LengthType.php +++ b/Utils/Converter/LengthType.php @@ -27,25 +27,46 @@ use phpOMS\Stdlib\Base\Enum; abstract class LengthType extends Enum { public const MILES = 'mi'; + public const METERS = 'm'; + public const NANOMETER = 'nm'; + public const MICROMETER = 'micron'; + public const CENTIMETERS = 'cm'; + public const MILLIMETERS = 'mm'; + public const KILOMETERS = 'km'; + public const CHAINS = 'ch'; + public const FEET = 'ft'; + public const FURLONGS = 'fur'; + public const MICROINCH = 'muin'; + public const INCHES = 'in'; + public const YARDS = 'yd'; + public const PARSECS = 'pc'; + public const UK_NAUTICAL_MILES = 'uk nmi'; + public const US_NAUTICAL_MILES = 'us nmi'; + public const UK_NAUTICAL_LEAGUES = 'uk nl'; + public const NAUTICAL_LEAGUES = 'nl'; + public const UK_LEAGUES = 'uk lg'; + public const US_LEAGUES = 'us lg'; + public const LIGHTYEARS = 'ly'; + public const DECIMETERS = 'dm'; } diff --git a/Utils/Converter/PressureType.php b/Utils/Converter/PressureType.php index 112bc059e..808dccbda 100644 --- a/Utils/Converter/PressureType.php +++ b/Utils/Converter/PressureType.php @@ -27,16 +27,28 @@ use phpOMS\Stdlib\Base\Enum; abstract class PressureType extends Enum { public const PASCALS = 'Pa'; + public const BAR = 'bar'; + public const POUND_PER_SQUARE_INCH = 'psi'; + public const ATMOSPHERES = 'atm'; + public const INCHES_OF_MERCURY = 'inHg'; + public const INCHES_OF_WATER = 'inH20'; + public const MILLIMETERS_OF_WATER = 'mmH20'; + public const MILLIMETERS_OF_MERCURY = 'mmHg'; + public const MILLIBAR = 'mbar'; + public const KILOGRAM_PER_SQUARE_METER = 'kg/m2'; + public const NEWTONS_PER_METER_SQUARED = 'N/m2'; + public const POUNDS_PER_SQUARE_FOOT = 'psf'; + public const TORRS = 'Torr'; } diff --git a/Utils/Converter/SpeedType.php b/Utils/Converter/SpeedType.php index d46de575b..bba63caae 100644 --- a/Utils/Converter/SpeedType.php +++ b/Utils/Converter/SpeedType.php @@ -27,37 +27,70 @@ use phpOMS\Stdlib\Base\Enum; abstract class SpeedType extends Enum { public const MILES_PER_DAY = 'mpd'; + public const MILES_PER_HOUR = 'mph'; + public const MILES_PER_MINUTE = 'mpm'; + public const MILES_PER_SECOND = 'mps'; + public const KILOMETERS_PER_DAY = 'kpd'; + public const KILOMETERS_PER_HOUR = 'kph'; + public const KILOMETERS_PER_MINUTE = 'kpm'; + public const KILOMETERS_PER_SECOND = 'kps'; + public const METERS_PER_DAY = 'md'; + public const METERS_PER_HOUR = 'mh'; + public const METERS_PER_MINUTE = 'mm'; + public const METERS_PER_SECOND = 'ms'; + public const CENTIMETERS_PER_DAY = 'cpd'; + public const CENTIMETERS_PER_HOUR = 'cph'; + public const CENTIMETERS_PER_MINUTES = 'cpm'; + public const CENTIMETERS_PER_SECOND = 'cps'; + public const MILLIMETERS_PER_DAY = 'mmpd'; + public const MILLIMETERS_PER_HOUR = 'mmph'; + public const MILLIMETERS_PER_MINUTE = 'mmpm'; + public const MILLIMETERS_PER_SECOND = 'mmps'; + public const YARDS_PER_DAY = 'ypd'; + public const YARDS_PER_HOUR = 'yph'; + public const YARDS_PER_MINUTE = 'ypm'; + public const YARDS_PER_SECOND = 'yps'; + public const INCHES_PER_DAY = 'ind'; + public const INCHES_PER_HOUR = 'inh'; + public const INCHES_PER_MINUTE = 'inm'; + public const INCHES_PER_SECOND = 'ins'; + public const FEET_PER_DAY = 'ftd'; + public const FEET_PER_HOUR = 'fth'; + public const FEET_PER_MINUTE = 'ftm'; + public const FEET_PER_SECOND = 'fts'; + public const MACH = 'mach'; + public const KNOTS = 'knots'; } diff --git a/Utils/Converter/TemperatureType.php b/Utils/Converter/TemperatureType.php index c0219af2e..d82866c54 100644 --- a/Utils/Converter/TemperatureType.php +++ b/Utils/Converter/TemperatureType.php @@ -27,11 +27,18 @@ use phpOMS\Stdlib\Base\Enum; abstract class TemperatureType extends Enum { public const CELSIUS = 'celsius'; + public const FAHRENHEIT = 'fahrenheit'; + public const KELVIN = 'kelvin'; + public const REAUMUR = 'reaumur'; + public const RANKINE = 'rankine'; + public const DELISLE = 'delisle'; + public const NEWTON = 'newton'; + public const ROMER = 'romer'; } diff --git a/Utils/Converter/TimeType.php b/Utils/Converter/TimeType.php index 79dfd2351..e97a97bd8 100644 --- a/Utils/Converter/TimeType.php +++ b/Utils/Converter/TimeType.php @@ -27,12 +27,20 @@ use phpOMS\Stdlib\Base\Enum; abstract class TimeType extends Enum { public const MILLISECONDS = 'ms'; + public const SECONDS = 's'; + public const MINUTES = 'i'; + public const HOURS = 'h'; + public const DAYS = 'd'; + public const WEEKS = 'w'; + public const MONTH = 'm'; + public const QUARTER = 'q'; + public const YEAR = 'y'; } diff --git a/Utils/Converter/VolumeType.php b/Utils/Converter/VolumeType.php index 4a46733fa..bd0ab2231 100644 --- a/Utils/Converter/VolumeType.php +++ b/Utils/Converter/VolumeType.php @@ -27,41 +27,78 @@ use phpOMS\Stdlib\Base\Enum; abstract class VolumeType extends Enum { public const UK_GALLON = 'UK gal'; + public const US_GALLON_LIQUID = 'US gal lqd'; + public const US_GALLON_DRY = 'US gal dry'; + public const UK_PINT = 'pt'; + public const US_PINT_LIQUID = 'US pt lqd'; + public const US_PINT_DRY = 'US pt dry'; + public const US_QUARTS_LIQUID = 'US qt lqd'; + public const US_QUARTS_DRY = 'US qt dry'; + public const UK_QUARTS = 'UK qt dry'; + public const US_GILL = 'US gi'; + public const UK_GILL = 'UK gi'; + public const LITER = 'l'; + public const MICROLITER = 'mul'; + public const MILLILITER = 'ml'; + public const CENTILITER = 'cl'; + public const KILOLITER = 'kl'; + public const UK_BARREL = 'UK bbl'; + public const US_BARREL_DRY = 'US bbl dry'; + public const US_BARREL_LIQUID = 'US bbl lqd'; + public const US_BARREL_OIL = 'US bbl oil'; + public const US_BARREL_FEDERAL = 'US bbl fed'; + public const US_OUNCES = 'us fl oz'; + public const UK_OUNCES = 'uk fl oz'; + public const US_TEASPOON = 'US tsp'; + public const UK_TEASPOON = 'UK tsp'; + public const METRIC_TEASPOON = 'Metric tsp'; + public const US_TABLESPOON = 'US tblsp'; + public const UK_TABLESPOON = 'UK tblsp'; + public const METRIC_TABLESPOON = 'Metric tblsp'; + public const US_CUP = 'US cup'; + public const CAN_CUP = 'Can cup'; + public const METRIC_CUP = 'Metric cup'; + public const CUBIC_CENTIMETER = 'cm'; + public const CUBIC_MILLIMETER = 'mm'; + public const CUBIC_METER = 'm'; + public const CUBIC_INCH = 'in'; + public const CUBIC_FEET = 'ft'; + public const CUBIC_YARD = 'yd'; } diff --git a/Utils/Converter/WeightType.php b/Utils/Converter/WeightType.php index 1ab6ee5b7..e4a8d96ec 100644 --- a/Utils/Converter/WeightType.php +++ b/Utils/Converter/WeightType.php @@ -27,17 +27,30 @@ use phpOMS\Stdlib\Base\Enum; abstract class WeightType extends Enum { public const MICROGRAM = 'mg'; + public const MILLIGRAM = 'mug'; + public const GRAM = 'g'; + public const KILOGRAM = 'kg'; + public const METRIC_TONS = 't'; + public const POUNDS = 'lb'; + public const OUNCES = 'oz'; + public const STONES = 'st'; + public const GRAIN = 'gr'; + public const CARAT = 'ct'; + public const LONG_TONS = 'uk t'; + public const SHORT_TONS = 'us ton'; + public const TROY_POUNDS = 't lb'; + public const TROY_OUNCES = 't oz'; } diff --git a/Utils/IO/ExchangeInterface.php b/Utils/IO/ExchangeInterface.php index f3f06bf8f..aca94c050 100644 --- a/Utils/IO/ExchangeInterface.php +++ b/Utils/IO/ExchangeInterface.php @@ -27,6 +27,6 @@ use phpOMS\Utils\IO\Spreadsheet\SpreadsheetInterface; * @link https://orange-management.org * @since 1.0.0 */ -interface ExchangeInterface extends CsvInterface, JsonInterface, SpreadsheetInterface, PdfInterface +interface ExchangeInterface extends CsvInterface, JsonInterface, PdfInterface, SpreadsheetInterface { } diff --git a/Utils/IO/Json/JsonInterface.php b/Utils/IO/Json/JsonInterface.php index 72dd1d4d0..beb2e46bb 100644 --- a/Utils/IO/Json/JsonInterface.php +++ b/Utils/IO/Json/JsonInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Utils\IO\Json; */ interface JsonInterface { - /** * Export Json. * diff --git a/Utils/IO/Pdf/PdfInterface.php b/Utils/IO/Pdf/PdfInterface.php index df91e1211..5146774ad 100644 --- a/Utils/IO/Pdf/PdfInterface.php +++ b/Utils/IO/Pdf/PdfInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Utils\IO\Pdf; */ interface PdfInterface { - /** * Export Pdf. * diff --git a/Utils/IO/Spreadsheet/SpreadsheetInterface.php b/Utils/IO/Spreadsheet/SpreadsheetInterface.php index 59308a275..b35905415 100644 --- a/Utils/IO/Spreadsheet/SpreadsheetInterface.php +++ b/Utils/IO/Spreadsheet/SpreadsheetInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Utils\IO\Spreadsheet; */ interface SpreadsheetInterface { - /** * Export Spreadsheet. * diff --git a/Utils/RnG/DistributionType.php b/Utils/RnG/DistributionType.php index 154d5356e..970b84f2f 100644 --- a/Utils/RnG/DistributionType.php +++ b/Utils/RnG/DistributionType.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class DistributionType extends Enum { public const UNIFORM = 0; + public const NORMAL = 1; } diff --git a/Validation/Finance/IbanEnum.php b/Validation/Finance/IbanEnum.php index 3275936f0..4d7f7df35 100644 --- a/Validation/Finance/IbanEnum.php +++ b/Validation/Finance/IbanEnum.php @@ -27,85 +27,166 @@ use phpOMS\Stdlib\Base\Enum; class IbanEnum extends Enum { public const C_AL = 'ALkk bbbs sssx cccc cccc cccc cccc'; + public const C_AD = 'ADkk bbbb ssss cccc cccc cccc'; + public const C_AT = 'ATkk bbbb bccc cccc cccc'; + public const C_AZ = 'AZkk bbbb cccc cccc cccc cccc cccc '; + public const C_BH = 'BHkk bbbb cccc cccc cccc cc'; + public const C_BE = 'BEkk bbbc cccc ccxx'; + public const C_BA = 'BAkk bbbs sscc cccc ccxx'; + public const C_BR = 'BRkk bbbb bbbb ssss sccc cccc ccct n'; + public const C_BG = 'BGkk bbbb ssss ttcc cccc cc'; + public const C_CR = 'CRkk bbbc cccc cccc cccc c'; + public const C_HR = 'HRkk bbbb bbbc cccc cccc c'; + public const C_CY = 'CYkk bbbs ssss cccc cccc cccc cccc'; + public const C_CZ = 'CZkk bbbb ssss sscc cccc cccc'; + public const C_DK = 'DKkk bbbb cccc cccc cc'; + public const C_DO = 'DOkk bbbb cccc cccc cccc cccc cccc'; + public const C_TL = 'TLkk bbbc cccc cccc cccc cxx'; + public const C_EE = 'EEkk bbss cccc cccc cccx'; + public const C_FO = 'FOkk bbbb cccc cccc cx'; + public const C_FI = 'FIkk bbbb bbcc cccc cx'; + public const C_FR = 'FRkk bbbb bsss sscc cccc cccc cxx'; + public const C_GE = 'GEkk bbcc cccc cccc cccc cc'; + public const C_DE = 'DEkk bbbb bbbb cccc cccc cc'; + public const C_GI = 'GIkk bbbb cccc cccc cccc ccc'; + public const C_GR = 'GRkk bbbs sssc cccc cccc cccc ccc'; + public const C_GL = 'GLkk bbbb cccc cccc cc'; + public const C_GT = 'GTkk bbbb mmtt cccc cccc cccc cccc'; + public const C_HU = 'HUkk bbbs sssx cccc cccc cccc cccx'; + public const C_IS = 'ISkk bbbb sscc cccc iiii iiii ii'; + public const C_IE = 'IEkk aaaa bbbb bbcc cccc cc'; + public const C_IL = 'ILkk bbbn nncc cccc cccc ccc'; + public const C_IT = 'ITkk xbbb bbss sssc cccc cccc ccc'; + public const C_JO = 'JOkk bbbb ssss cccc cccc cccc cccc cc'; + public const C_KZ = 'KZkk bbbc cccc cccc cccc'; + public const C_XK = 'XKkk bbbb cccc cccc cccc'; + public const C_KW = 'KWkk bbbb cccc cccc cccc cccc cccc cc'; + public const C_LV = 'LVkk bbbb cccc cccc cccc c'; + public const C_LB = 'LBkk bbbb cccc cccc cccc cccc cccc'; + public const C_LI = 'LIkk bbbb bccc cccc cccc c'; + public const C_LT = 'LTkk bbbb bccc cccc cccc'; + public const C_LU = 'LUkk bbbc cccc cccc cccc'; + public const C_MK = 'MKkk bbbc cccc cccc cxx'; + public const C_MT = 'MTkk bbbb ssss sccc cccc cccc cccc ccc'; + public const C_MR = 'MRkk bbbb bsss sscc cccc cccc cxx'; + public const C_MU = 'MUkk bbbb bbss cccc cccc cccc 000m mm'; + public const C_MC = 'MCkk bbbb bsss sscc cccc cccc cxx'; + public const C_MD = 'MDkk bbcc cccc cccc cccc cccc'; + public const C_ME = 'MEkk bbbc cccc cccc cccc xx'; + public const C_NL = 'NLkk bbbb cccc cccc cc'; + public const C_NO = 'NOkk bbbb cccc ccx'; + public const C_PK = 'PKkk bbbb cccc cccc cccc cccc'; + public const C_PS = 'PSkk bbbb xxxx xxxx xccc cccc cccc c'; + public const C_PL = 'PLkk bbbs sssx cccc cccc cccc cccc'; + public const C_PT = 'PTkk bbbb ssss cccc cccc cccx x'; + public const C_QA = 'QAkk bbbb cccc cccc cccc cccc cccc c'; + public const C_RO = 'ROkk bbbb cccc cccc cccc cccc'; + public const C_SM = 'SMkk xbbb bbss sssc cccc cccc ccc'; + public const C_SA = 'SAkk bbcc cccc cccc cccc cccc'; + public const C_RS = 'RSkk bbbc cccc cccc cccc xx'; + public const C_SK = 'SKkk bbbb ssss sscc cccc cccc'; + public const C_SI = 'SIkk bbss sccc cccc cxx'; + public const C_ES = 'ESkk bbbb ssss xxcc cccc cccc'; + public const C_SE = 'SEkk bbbc cccc cccc cccc cccc'; + public const C_CH = 'CHkk bbbb bccc cccc cccc c'; + public const C_TN = 'TNkk bbss sccc cccc cccc cccc'; + public const C_TR = 'TRkk bbbb bxcc cccc cccc cccc cc'; + public const C_UA = 'UAkk bbbb bbcc cccc cccc cccc cccc c'; + public const C_AE = 'AEkk bbbc cccc cccc cccc ccc'; + public const C_GB = 'GBkk bbbb ssss sscc cccc cc'; + public const C_VG = 'VGkk bbbb cccc cccc cccc cccc'; + public const C_SN = 'SNkk annn nnnn nnnn nnnn nnnn nnnn'; + public const C_MZ = 'MZkk nnnn nnnn nnnn nnnn nnnn n'; + public const C_ML = 'MLkk annn nnnn nnnn nnnn nnnn nnnn'; + public const C_MG = 'MGkk nnnn nnnn nnnn nnnn nnnn nnn'; + public const C_CI = 'CIkk annn nnnn nnnn nnnn nnnn nnnn'; + public const C_IR = 'IRkk nnnn nnnn nnnn nnnn nnnn nn'; + public const C_CV = 'CVkk nnnn nnnn nnnn nnnn nnnn n'; + public const C_CM = 'CMkk nnnn nnnn nnnn nnnn nnnn nnn'; + public const C_BI = 'BIkk nnnn nnnn nnnn'; + public const C_BF = 'BFkk nnnn nnnn nnnn nnnn nnnn nnn'; + public const C_BJ = 'BJkk annn nnnn nnnn nnnn nnnn nnnn'; + public const C_AO = 'AOkk nnnn nnnn nnnn nnnn nnnn n'; + public const C_DZ = 'DZkk nnnn nnnn nnnn nnnn nnnn'; } diff --git a/Validation/Finance/IbanErrorType.php b/Validation/Finance/IbanErrorType.php index d64198e6f..f1e0c34a6 100644 --- a/Validation/Finance/IbanErrorType.php +++ b/Validation/Finance/IbanErrorType.php @@ -27,8 +27,12 @@ use phpOMS\Stdlib\Base\Enum; abstract class IbanErrorType extends Enum { public const INVALID_COUNTRY = 1; + public const INVALID_LENGTH = 2; + public const INVALID_CHECKSUM = 4; + public const EXPECTED_ZERO = 8; + public const EXPECTED_NUMERIC = 16; } diff --git a/Validation/ValidatorInterface.php b/Validation/ValidatorInterface.php index 4976de3e3..9df921316 100644 --- a/Validation/ValidatorInterface.php +++ b/Validation/ValidatorInterface.php @@ -24,7 +24,6 @@ namespace phpOMS\Validation; */ interface ValidatorInterface { - /** * Check if value is valid. * diff --git a/tests/Account/AccountManagerTest.php b/tests/Account/AccountManagerTest.php index 852731cd7..c9c0d8e36 100644 --- a/tests/Account/AccountManagerTest.php +++ b/tests/Account/AccountManagerTest.php @@ -27,6 +27,7 @@ require_once __DIR__ . '/../Autoloader.php'; class AccountManagerTest extends \PHPUnit\Framework\TestCase { protected $manager = null; + protected $account = null; protected function setUp() : void diff --git a/tests/DataStorage/Database/DataMapperAbstractTest.php b/tests/DataStorage/Database/DataMapperAbstractTest.php index 66a87fa79..0ec7905f7 100644 --- a/tests/DataStorage/Database/DataMapperAbstractTest.php +++ b/tests/DataStorage/Database/DataMapperAbstractTest.php @@ -27,6 +27,7 @@ use phpOMS\tests\DataStorage\Database\TestModel\ManyToManyDirectModelMapper; class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase { protected BaseModel $model; + protected array $modelArray; protected function setUp() : void diff --git a/tests/Dispatcher/DispatcherTest.php b/tests/Dispatcher/DispatcherTest.php index d67fe3331..abc9138d3 100644 --- a/tests/Dispatcher/DispatcherTest.php +++ b/tests/Dispatcher/DispatcherTest.php @@ -35,7 +35,9 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase protected function setUp() : void { - $this->app = new class() extends ApplicationAbstract { protected string $appName = 'Api'; }; + $this->app = new class() extends ApplicationAbstract { + protected string $appName = 'Api'; + }; $this->app->router = new WebRouter(); $this->app->dispatcher = new Dispatcher($this->app); } diff --git a/tests/Localization/ISO8601EnumArrayTest.php b/tests/Localization/ISO8601EnumArrayTest.php index 868a57ddc..50783f204 100644 --- a/tests/Localization/ISO8601EnumArrayTest.php +++ b/tests/Localization/ISO8601EnumArrayTest.php @@ -31,5 +31,4 @@ class ISO8601EnumArrayTest extends \PHPUnit\Framework\TestCase { self::assertCount(4, ISO8601EnumArray::getConstants()); } - } diff --git a/tests/Math/Matrix/MatrixTest.php b/tests/Math/Matrix/MatrixTest.php index 7aff1f486..8b4911b8b 100644 --- a/tests/Math/Matrix/MatrixTest.php +++ b/tests/Math/Matrix/MatrixTest.php @@ -25,7 +25,9 @@ use phpOMS\Math\Matrix\Vector; class MatrixTest extends \PHPUnit\Framework\TestCase { protected $A = null; + protected $B = null; + protected $C = null; protected function setUp() : void diff --git a/tests/Message/Http/OSTypeTest.php b/tests/Message/Http/OSTypeTest.php index 7cfb6c57c..0c33f27c8 100644 --- a/tests/Message/Http/OSTypeTest.php +++ b/tests/Message/Http/OSTypeTest.php @@ -38,5 +38,4 @@ class OSTypeTest extends \PHPUnit\Framework\TestCase { self::assertEquals(OSType::getConstants(), \array_unique(OSType::getConstants())); } - } diff --git a/tests/Model/Html/FormElementGeneratorTest.php b/tests/Model/Html/FormElementGeneratorTest.php index da212cdfd..646144af7 100644 --- a/tests/Model/Html/FormElementGeneratorTest.php +++ b/tests/Model/Html/FormElementGeneratorTest.php @@ -366,7 +366,7 @@ class FormElementGeneratorTest extends \PHPUnit\Framework\TestCase ); } - /** + /** * @testdox A missing or invalid element type generates a INVALID output * @covers phpOMS\Model\Html\FormElementGenerator * @group framework diff --git a/tests/Module/ModuleAbstractTest.php b/tests/Module/ModuleAbstractTest.php index 9d3b3d5d3..c6d9324aa 100644 --- a/tests/Module/ModuleAbstractTest.php +++ b/tests/Module/ModuleAbstractTest.php @@ -40,8 +40,11 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase { $this->module = new class() extends ModuleAbstract { const MODULE_VERSION = '1.2.3'; + const MODULE_NAME = 'Test'; + const MODULE_ID = 2; + protected static array $dependencies = [1, 2]; public function __construct() diff --git a/tests/Module/ModuleManagerTest.php b/tests/Module/ModuleManagerTest.php index 3efab3bc0..1ded769b5 100644 --- a/tests/Module/ModuleManagerTest.php +++ b/tests/Module/ModuleManagerTest.php @@ -32,11 +32,14 @@ require_once __DIR__ . '/../Autoloader.php'; class ModuleManagerTest extends \PHPUnit\Framework\TestCase { protected ApplicationAbstract $app; + protected ModuleManager $moduleManager; protected function setUp() : void { - $this->app = new class() extends ApplicationAbstract { protected string $appName = 'Api'; }; + $this->app = new class() extends ApplicationAbstract { + protected string $appName = 'Api'; + }; $this->app->appName = 'Api'; $this->app->dbPool = $GLOBALS['dbpool']; $this->app->router = new WebRouter(); diff --git a/tests/Stdlib/Base/EnumDemo.php b/tests/Stdlib/Base/EnumDemo.php index 82632785f..2ad5ac956 100644 --- a/tests/Stdlib/Base/EnumDemo.php +++ b/tests/Stdlib/Base/EnumDemo.php @@ -19,5 +19,6 @@ use phpOMS\Stdlib\Base\Enum; final class EnumDemo extends Enum { const ENUM1 = 1; + const ENUM2 = ';l'; } diff --git a/tests/Stdlib/Base/HeapTest.php b/tests/Stdlib/Base/HeapTest.php index db97d77aa..030be0bed 100644 --- a/tests/Stdlib/Base/HeapTest.php +++ b/tests/Stdlib/Base/HeapTest.php @@ -213,7 +213,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase self::assertFalse($heap->contains(new HeapItem(6))); } - /** + /** * @testdox A heap item can be updated if it exists while maintaining the correct order * @covers phpOMS\Stdlib\Base\Heap * @group framework diff --git a/tests/System/File/Ftp/FileTest.php b/tests/System/File/Ftp/FileTest.php index 9430a9a12..0183b7e0f 100644 --- a/tests/System/File/Ftp/FileTest.php +++ b/tests/System/File/Ftp/FileTest.php @@ -167,7 +167,6 @@ class FileTest extends \PHPUnit\Framework\TestCase File::delete($this->con, $testFile); } - /** * @testdox A file can be appended with additional content * @covers phpOMS\System\File\Ftp\File diff --git a/tests/System/File/Local/FileTest.php b/tests/System/File/Local/FileTest.php index d1251d998..4ad5e9e1b 100644 --- a/tests/System/File/Local/FileTest.php +++ b/tests/System/File/Local/FileTest.php @@ -148,7 +148,6 @@ class FileTest extends \PHPUnit\Framework\TestCase \unlink($testFile); } - /** * @testdox A file can be appended with additional content * @covers phpOMS\System\File\Local\File diff --git a/tests/System/File/Local/LocalStorageTest.php b/tests/System/File/Local/LocalStorageTest.php index 84895fa77..f419588ac 100644 --- a/tests/System/File/Local/LocalStorageTest.php +++ b/tests/System/File/Local/LocalStorageTest.php @@ -517,7 +517,6 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase \unlink($testFile); } - /** * @testdox A file can be appended with additional content * @covers phpOMS\System\File\Local\LocalStorage diff --git a/tests/Utils/Parser/Php/ArrayParserTest.php b/tests/Utils/Parser/Php/ArrayParserTest.php index 923fac1c8..9edf73ab5 100644 --- a/tests/Utils/Parser/Php/ArrayParserTest.php +++ b/tests/Utils/Parser/Php/ArrayParserTest.php @@ -32,6 +32,7 @@ class ArrayParserTest extends \PHPUnit\Framework\TestCase { $serializable = new class() implements \Serializable { public function serialize() { return 2; } + public function unserialize($raw) : void {} }; diff --git a/tests/Utils/TaskSchedule/CronTest.php b/tests/Utils/TaskSchedule/CronTest.php index f04f2f970..dcc1f6e64 100644 --- a/tests/Utils/TaskSchedule/CronTest.php +++ b/tests/Utils/TaskSchedule/CronTest.php @@ -34,6 +34,7 @@ class CronTest extends \PHPUnit\Framework\TestCase } // * * * * * echo "test" > __DIR__ . '/cronjob.log' // evaluate dir + /** * @testdox The cron handler has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\Cron diff --git a/tests/Utils/TestUtilsClass.php b/tests/Utils/TestUtilsClass.php index c78850884..b39d7dd75 100644 --- a/tests/Utils/TestUtilsClass.php +++ b/tests/Utils/TestUtilsClass.php @@ -17,7 +17,10 @@ namespace phpOMS\tests\Utils; class TestUtilsClass { private $a = 1; + protected $b = 2; + public $c = 3; + public $d = '4'; }