twig implementation

This commit is contained in:
Nicolas Lœuillet
2013-08-03 19:26:54 +02:00
parent 2b840e0cfb
commit 4f5b44bd3b
1418 changed files with 108207 additions and 1586 deletions

View File

@ -0,0 +1,21 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <bschussek@gmail.com>
*
* @see \Symfony\Component\Intl\Collator\StubCollator
*/
class Collator extends \Symfony\Component\Intl\Collator\Collator
{
}

View File

@ -0,0 +1,21 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <bschussek@gmail.com>
*
* @see \Symfony\Component\Intl\DateFormatter\IntlDateFormatter
*/
class IntlDateFormatter extends \Symfony\Component\Intl\DateFormatter\IntlDateFormatter
{
}

View File

@ -0,0 +1,21 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <bschussek@gmail.com>
*
* @see \Symfony\Component\Intl\Locale\Locale
*/
class Locale extends \Symfony\Component\Intl\Locale\Locale
{
}

View File

@ -0,0 +1,21 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <bschussek@gmail.com>
*
* @see \Symfony\Component\Intl\NumberFormatter\NumberFormatter
*/
class NumberFormatter extends \Symfony\Component\Intl\NumberFormatter\NumberFormatter
{
}

View File

@ -0,0 +1,80 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <bschussek@gmail.com>
*
* @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 <bschussek@gmail.com>
*
* @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 <bschussek@gmail.com>
*
* @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);
}
}