Globals\IntlGlobals (Component\Intl)
Symfony\Component\Intl\Globals\IntlGlobals
abstract class IntlGlobals
Provides fake static versions of the global functions in the intl extension.
Constants
U_ZERO_ERROR | Indicates that no error occurred. |
U_ILLEGAL_ARGUMENT_ERROR | Indicates that an invalid argument was passed. |
U_PARSE_ERROR | Indicates that the parse() operation failed. |
Methods
static bool | isFailure(int $errorCode) Returns whether the error code indicates a failure. | |
static int | getErrorCode() Returns the error code of the last operation. | |
static string | getErrorMessage() Returns the error message of the last operation. | |
static string | getErrorName(int $code) Returns the symbolic name for a given error code. | |
static | setError(int $code, string $message = '') Sets the current error. |
Details
static public bool isFailure(int $errorCode)
Returns whether the error code indicates a failure.
static public int getErrorCode()
Returns the error code of the last operation.
Returns IntlGlobals::UZEROERROR if no error occurred.
static public string getErrorMessage()
Returns the error message of the last operation.
Returns "UZEROERROR" if no error occurred.
static public string getErrorName(int $code)
Returns the symbolic name for a given error code.
static public setError(int $code, string $message = '')
Sets the current error.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Intl/Globals/IntlGlobals.html