[Form] fixed license and phpdoc
This commit is contained in:
parent
47bc809dc3
commit
4deb82f842
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -31,4 +32,4 @@ class BirthdayField extends DateField
|
|||
|
||||
parent::configure();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,20 +2,20 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\FieldInterface;
|
||||
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
|
||||
* @version SVN: $Id: FieldGroup.php 79 2009-12-08 12:53:15Z bernhard $
|
||||
*/
|
||||
class CollectionField extends FieldGroup
|
||||
{
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Exception\MissingOptionsException;
|
||||
use Symfony\Component\Form\Exception\InvalidOptionsException;
|
||||
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Configurator;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
interface ConfiguratorInterface
|
||||
{
|
||||
public function initialize($object);
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Configurator;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class ValidatorConfigurator implements ConfiguratorInterface
|
||||
{
|
||||
protected $metaData = null;
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\ReversedTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\StringToDateTimeTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\TimestampToDateTimeTransformer;
|
||||
|
@ -9,14 +18,6 @@ use Symfony\Component\Form\ValueTransformer\ValueTransformerChain;
|
|||
use Symfony\Component\Form\ValueTransformer\DateTimeToLocalizedStringTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\DateTimeToArrayTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class DateField extends HybridField
|
||||
{
|
||||
const FULL = 'full';
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\StringToDateTimeTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\TimestampToDateTimeTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\DateTimeToArrayTransformer;
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class AlreadyBoundException extends FormException
|
||||
{
|
||||
}
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class FormException extends \Exception
|
||||
{
|
||||
}
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class InvalidConfigurationException extends FormException
|
||||
{
|
||||
}
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class InvalidOptionsException extends FormException
|
||||
{
|
||||
private $options;
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class InvalidPropertyException extends FormException
|
||||
{
|
||||
}
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class InvalidPropertyPathException extends FormException
|
||||
{
|
||||
}
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class MissingOptionsException extends FormException
|
||||
{
|
||||
private $options;
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class NotInitializedException extends FormException
|
||||
{
|
||||
}
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class NotValidException extends FormException
|
||||
{
|
||||
}
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class PropertyAccessDeniedException extends FormException
|
||||
{
|
||||
}
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Exception;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class UnexpectedTypeException extends FormException
|
||||
{
|
||||
}
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Exception\InvalidPropertyException;
|
||||
use Symfony\Component\Form\Exception\PropertyAccessDeniedException;
|
||||
use Symfony\Component\Form\ValueTransformer\ValueTransformerInterface;
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Exception\AlreadyBoundException;
|
||||
use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
||||
use Symfony\Component\Form\Renderer\RendererInterface;
|
||||
|
@ -9,19 +18,10 @@ use Symfony\Component\Form\Renderer\TableRenderer;
|
|||
use Symfony\Component\Form\Iterator\RecursiveFieldsWithPropertyPathIterator;
|
||||
use Symfony\Component\I18N\TranslatorInterface;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FieldGroup represents an array of widgets bind to names and values.
|
||||
*
|
||||
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
* @version SVN: $Id: FieldGroup.php 247 2010-02-01 09:24:55Z bernhard $
|
||||
*/
|
||||
class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterface
|
||||
{
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A field group bundling multiple form fields
|
||||
*
|
||||
|
|
|
@ -2,13 +2,21 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\I18N\TranslatorInterface;
|
||||
|
||||
/**
|
||||
* A form field that can be embedded in a form.
|
||||
*
|
||||
* @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
|
||||
* @version SVN: $Id: FieldInterface.php 247 2010-02-01 09:24:55Z bernhard $
|
||||
*/
|
||||
interface FieldInterface extends Localizable, Translatable
|
||||
{
|
||||
|
@ -263,4 +271,4 @@ interface FieldInterface extends Localizable, Translatable
|
|||
* @param string $charset
|
||||
*/
|
||||
public function setGenerator(HtmlGeneratorInterface $generator);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,17 +2,18 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
use Symfony\Component\Validator\ValidatorInterface;
|
||||
use Symfony\Component\I18N\TranslatorInterface;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Validator\ValidatorInterface;
|
||||
use Symfony\Component\I18N\TranslatorInterface;
|
||||
|
||||
/**
|
||||
* Form represents a form.
|
||||
*
|
||||
|
@ -26,7 +27,6 @@ use Symfony\Component\I18N\TranslatorInterface;
|
|||
* is generated on the fly.
|
||||
*
|
||||
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
* @version SVN: $Id: Form.php 245 2010-01-31 22:22:39Z flo $
|
||||
*/
|
||||
class Form extends FieldGroup
|
||||
{
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Exception\FormException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base class for all low-level fields represented by input tags
|
||||
*
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer;
|
||||
|
||||
/*
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\Iterator;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\FieldGroupInterface;
|
||||
|
||||
class RecursiveFieldsWithPropertyPathIterator extends \IteratorIterator implements \RecursiveIterator
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Marks classes that you can inject a locale into.
|
||||
*
|
||||
|
|
|
@ -2,16 +2,17 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer;
|
||||
|
||||
/**
|
||||
* A localized field for entering numbers.
|
||||
*
|
||||
|
@ -45,4 +46,4 @@ class NumberField extends InputField
|
|||
'type' => 'text',
|
||||
), $attributes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,16 +2,17 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\PercentToLocalizedStringTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\PercentToLocalizedStringTransformer;
|
||||
|
||||
/**
|
||||
* A localized field for entering percentage values.
|
||||
*
|
||||
|
@ -43,4 +44,4 @@ class PercentField extends NumberField
|
|||
{
|
||||
return parent::render($attributes).' %';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Exception\InvalidPropertyPathException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -27,4 +28,4 @@ class RadioField extends ToggleField
|
|||
'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName(),
|
||||
), $attributes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -37,4 +38,4 @@ class TextField extends InputField
|
|||
'maxlength' => $this->getOption('max_length'),
|
||||
), $attributes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\ReversedTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\DateTimeToArrayTransformer;
|
||||
use Symfony\Component\Form\ValueTransformer\StringToDateTimeTransformer;
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
class TimezoneField extends ChoiceField
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -2,16 +2,17 @@
|
|||
|
||||
namespace Symfony\Component\Form;
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\BooleanToStringTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\ValueTransformer\BooleanToStringTransformer;
|
||||
|
||||
/**
|
||||
* An input field for selecting boolean values.
|
||||
*
|
||||
|
@ -53,4 +54,4 @@ abstract class ToggleField extends InputField
|
|||
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Configurable;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Transforms between a boolean and a string.
|
||||
*
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reverses a transformer
|
||||
*
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use \Symfony\Component\Form\ValueTransformer\ValueTransformerException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Indicates a value transformation error.
|
||||
*
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Passes a value through multiple value transformers
|
||||
*
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
namespace Symfony\Component\Form\ValueTransformer;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony framework.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
use Symfony\Component\Form\Localizable;
|
||||
|
||||
/**
|
||||
|
|
Reference in New Issue