Symfony\Component\Validator\Constraints\File
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class File
extends Constraint
{
- // Inherited constants from Constraint
- const DEFAULT_GROUP = 'Default';
- const CLASS_CONSTRAINT = 'class';
- const PROPERTY_CONSTRAINT = 'property';
- // members
- public $maxSize;
- public array $mimeTypes;
- public string $notFoundMessage;
- public string $notReadableMessage;
- public string $maxSizeMessage;
- public string $mimeTypesMessage;
- public string $uploadIniSizeErrorMessage;
- public string $uploadFormSizeErrorMessage;
- public string $uploadPartialErrorMessage;
- public string $uploadNoFileErrorMessage;
- public string $uploadNoTmpDirErrorMessage;
- public string $uploadCantWriteErrorMessage;
- public string $uploadExtensionErrorMessage;
- public string $uploadErrorMessage;
- // Inherited members from Constraint
- public array $groups;
- // Inherited methods from Constraint
- public void __construct()
- public void __set()
- public void addImplicitGroupName()
- public string getDefaultOption()
- public array getRequiredOptions()
- public string validatedBy()
- public string|array getTargets()
Hierarchy
Extends
Extended by
Constants
Name | Value |
---|---|
DEFAULT_GROUP | 'Default' |
CLASS_CONSTRAINT | 'class' |
PROPERTY_CONSTRAINT | 'property' |
Members
public
- $groups — array
- $maxSize
- $maxSizeMessage
- $mimeTypes
- $mimeTypesMessage
- $notFoundMessage
- $notReadableMessage
- $uploadCantWriteErrorMessage
- $uploadErrorMessage
- $uploadExtensionErrorMessage
- $uploadFormSizeErrorMessage
- $uploadIniSizeErrorMessage
- $uploadNoFileErrorMessage
- $uploadNoTmpDirErrorMessage
- $uploadPartialErrorMessage
Methods
Inherited from Symfony\Component\Validator\Constraint
public
- __set() — Unsupported operation.
- addImplicitGroupName() — Adds the given group if this constraint is in the Default group
- getDefaultOption() — Returns the name of the default option
- getRequiredOptions() — Returns the name of the required options
- getTargets() — Returns whether the constraint can be put onto classes, properties or both
- validatedBy() — Returns the name of the class that validates this constraint