Свойство | Type | Description | |
---|---|---|---|
$locale | |||
$taintedData |
Méthode | Description | |
---|---|---|
__clone ( ) | Clones this field. | |
__construct ( $key, array $options = [] ) | ||
addError ( Symfony\Component\Form\FieldError $error, Symfony\Component\Form\PropertyPathIterator $pathIterator = null, $type = null ) | Adds an error to the field. | |
bind ( string | array $taintedData ) : boolean | Binds POST data to the field, transforms and validates it. | |
getData ( ) : mixed | Returns the normalized data of the field. | |
getDisplayedData ( ) : string | array | Returns the data of the field as it is displayed to the user. | |
getErrors ( ) : array | Returns all errors | |
getId ( ) | {@inheritDoc} | |
getKey ( ) | {@inheritDoc} | |
getName ( ) | {@inheritDoc} | |
getParent ( ) : Symfony\Component\Form\FieldInterface | Returns the parent field. | |
getPropertyPath ( ) | {@inheritDoc} | |
hasErrors ( ) : boolean | Returns weather there are errors. | |
isBound ( ) : boolean | Returns whether the field is bound. | |
isDisabled ( ) | {@inheritDoc} | |
isHidden ( ) : boolean | Returns true if the widget is hidden. | |
isMultipart ( ) | {@inheritDoc} | |
isRequired ( ) | {@inheritDoc} | |
isValid ( ) : boolean | Returns whether the field is valid. | |
setData ( $data ) | Updates the field with default data | |
setKey ( $key ) | {@inheritDoc} | |
setLocale ( $locale ) | Sets the locale of this field. | |
setParent ( Symfony\Component\Form\FieldInterface $parent = null ) | {@inheritDoc} | |
setPropertyPath ( $propertyPath ) | {@inheritDoc} | |
setRequired ( $required ) | {@inheritDoc} | |
updateFromObject ( &$objectOrArray ) | {@inheritDoc} | |
updateObject ( &$objectOrArray ) | {@inheritDoc} |
Méthode | Description | |
---|---|---|
denormalize ( string $value ) : mixed | Reverse transforms a value if a normalization transformer is set. | |
getNormalizationTransformer ( ) : Symfony\Component\Form\ValueTransformer\ValueTransformerInterface | Returns the ValueTransformer. | |
getNormalizedData ( ) | ||
getTransformedData ( ) : string | Returns the data transformed by the value transformer | |
getValueTransformer ( ) : Symfony\Component\Form\ValueTransformer\ValueTransformerInterface | Returns the ValueTransformer. | |
injectLocale ( object $object ) | Injects the locale into the given object, if set. | |
normalize ( mixed $value ) : string | Normalizes the value if a normalization transformer is set | |
processData ( mixed $data ) : mixed | Processes the bound reverse-transformed data. | |
reverseTransform ( string $value ) : mixed | Reverse transforms a value if a value transformer is set. | |
setNormalizationTransformer ( Symfony\Component\Form\ValueTransformer\ValueTransformerInterface $normalizationTransformer ) | Sets the ValueTransformer. | |
setValueTransformer ( Symfony\Component\Form\ValueTransformer\ValueTransformerInterface $valueTransformer ) | Sets the ValueTransformer. | |
transform ( mixed $value ) : string | Transforms the value if a value transformer is set. |
public addError ( Symfony\Component\Form\FieldError $error, Symfony\Component\Form\PropertyPathIterator $pathIterator = null, $type = null ) | ||
$error | Symfony\Component\Form\FieldError | |
$pathIterator | Symfony\Component\Form\PropertyPathIterator |
protected denormalize ( string $value ) : mixed | ||
$value | string | The value to reverse transform |
Résultat | mixed |
public getDisplayedData ( ) : string | array | ||
Résultat | string | array | When the field is not bound, the transformed default data is returned. When the field is bound, the bound data is returned. |
protected getNormalizationTransformer ( ) : Symfony\Component\Form\ValueTransformer\ValueTransformerInterface | ||
Résultat | Symfony\Component\Form\ValueTransformer\ValueTransformerInterface |
public getParent ( ) : Symfony\Component\Form\FieldInterface | ||
Résultat | Symfony\Component\Form\FieldInterface | The parent field |
protected getTransformedData ( ) : string | ||
Résultat | string |
protected getValueTransformer ( ) : Symfony\Component\Form\ValueTransformer\ValueTransformerInterface | ||
Résultat | Symfony\Component\Form\ValueTransformer\ValueTransformerInterface |
protected injectLocale ( object $object ) | ||
$object | object |
protected processData ( mixed $data ) : mixed | ||
$data | mixed | |
Résultat | mixed |
protected reverseTransform ( string $value ) : mixed | ||
$value | string | The value to reverse transform |
Résultat | mixed |
protected setNormalizationTransformer ( Symfony\Component\Form\ValueTransformer\ValueTransformerInterface $normalizationTransformer ) | ||
$normalizationTransformer | Symfony\Component\Form\ValueTransformer\ValueTransformerInterface |
public setParent ( Symfony\Component\Form\FieldInterface $parent = null ) | ||
$parent | Symfony\Component\Form\FieldInterface |
protected setValueTransformer ( Symfony\Component\Form\ValueTransformer\ValueTransformerInterface $valueTransformer ) | ||
$valueTransformer | Symfony\Component\Form\ValueTransformer\ValueTransformerInterface |