From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- .../Component/Intl/Resources/stubs/Collator.php | 21 ++++++ .../Intl/Resources/stubs/IntlDateFormatter.php | 21 ++++++ .../Component/Intl/Resources/stubs/Locale.php | 21 ++++++ .../Intl/Resources/stubs/NumberFormatter.php | 21 ++++++ .../Component/Intl/Resources/stubs/functions.php | 80 ++++++++++++++++++++++ 5 files changed, 164 insertions(+) create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php create mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php (limited to 'vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs') diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php new file mode 100644 index 00000000..4c373d86 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Collator.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the Collator class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\Collator\StubCollator + */ +class Collator extends \Symfony\Component\Intl\Collator\Collator +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php new file mode 100644 index 00000000..52a07e95 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the IntlDateFormatter class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\DateFormatter\IntlDateFormatter + */ +class IntlDateFormatter extends \Symfony\Component\Intl\DateFormatter\IntlDateFormatter +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php new file mode 100644 index 00000000..045db40c --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/Locale.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the Locale class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\Locale\Locale + */ +class Locale extends \Symfony\Component\Intl\Locale\Locale +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php new file mode 100644 index 00000000..318efb49 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Stub implementation for the NumberFormatter class of the intl extension + * + * @author Bernhard Schussek + * + * @see \Symfony\Component\Intl\NumberFormatter\NumberFormatter + */ +class NumberFormatter extends \Symfony\Component\Intl\NumberFormatter\NumberFormatter +{ +} diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php new file mode 100644 index 00000000..7a2d4b67 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/Resources/stubs/functions.php @@ -0,0 +1,80 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\Intl\Globals\IntlGlobals; + +if (!function_exists('intl_is_failure')) { + + /** + * Stub implementation for the {@link intl_is_failure()} function of the intl + * extension. + * + * @author Bernhard Schussek + * + * @param integer $errorCode The error code returned by intl_get_error_code(). + * + * @return Boolean Whether the error code indicates an error. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::isFailure + */ + function intl_is_failure($errorCode) + { + return IntlGlobals::isFailure($errorCode); + } + + /** + * Stub implementation for the {@link intl_get_error_code()} function of the + * intl extension. + * + * @author Bernhard Schussek + * + * @return Boolean The error code of the last intl function call or + * IntlGlobals::U_ZERO_ERROR if no error occurred. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorCode + */ + function intl_get_error_code() + { + return IntlGlobals::getErrorCode(); + } + + /** + * Stub implementation for the {@link intl_get_error_code()} function of the + * intl extension. + * + * @author Bernhard Schussek + * + * @return Boolean The error message of the last intl function call or + * "U_ZERO_ERROR" if no error occurred. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorMessage + */ + function intl_get_error_message() + { + return IntlGlobals::getErrorMessage(); + } + + /** + * Stub implementation for the {@link intl_error_name()} function of the intl + * extension. + * + * @param integer $errorCode The error code. + * + * @return string The name of the error code constant. + * + * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorName + */ + function intl_error_name($errorCode) + { + return IntlGlobals::getErrorName($errorCode); + } + +} -- cgit v1.2.3