Symfony\Component\Intl\Globals\IntlGlobals
Provides fake static versions of the global functions in the intl extension
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class IntlGlobals
{
- // constants
- const U_ZERO_ERROR = 0;
- const U_ILLEGAL_ARGUMENT_ERROR = 1;
- const U_PARSE_ERROR = 9;
- // members
- private array $errorCodes;
- private integer $errorCode;
- private string $errorMessage;
- // methods
- public static Boolean isFailure()
- public static integer getErrorCode()
- public static string getErrorMessage()
- public static string getErrorName()
- public static void setError()
Hierarchy
Extended by
Constants
Name | Value |
---|---|
U_ZERO_ERROR | 0 |
U_ILLEGAL_ARGUMENT_ERROR | 1 |
U_PARSE_ERROR | 9 |
Members
private
- $errorCode
—
integer
The error code of the last operation - $errorCodes
—
array
All known error codes - $errorMessage
—
integer
The error code of the last operation
Methods
public
- getErrorCode() — Returns the error code of the last operation
- getErrorMessage() — Returns the error message of the last operation
- getErrorName() — Returns the symbolic name for a given error code
- isFailure() — Returns whether the error code indicates a failure
- setError() — Sets the current error