654.1. Zend\Validator\File\Extension
Validator for the file extension of a file
654.1.1. Methods
654.1.1.1. __construct
-
__construct()
Sets validator options
Parameters: | string|array|Traversable – |
654.1.1.2. getCase
-
getCase()
Returns the case option
654.1.1.3. setCase
-
setCase()
Sets the case to use
Parameters: | bool – |
Return type: | Extension Provides a fluent interface |
654.1.1.4. getExtension
-
getExtension()
Returns the set file extension
654.1.1.5. setExtension
-
setExtension()
Sets the file extensions
Parameters: | string|array – The extensions to validate |
Return type: | Extension Provides a fluent interface |
654.1.1.6. addExtension
-
addExtension()
Adds the file extensions
Parameters: | string|array – The extensions to add for validation |
Return type: | Extension Provides a fluent interface |
654.1.1.7. isValid
-
isValid()
Returns true if and only if the file extension of $value is included in the
set extension list
Parameters: | string|array – Real file to check for extension |
Return type: | bool |
654.1.2. Constants
654.1.2.1. FALSE_EXTENSION
@const string Error constants
654.1.2.2. NOT_FOUND