PHP Class Sulu\Bundle\MediaBundle\Media\FileValidator\FileValidator

Inheritance: implements Sulu\Bundle\MediaBundle\Media\FileValidator\FileValidatorInterface
Exibir arquivo Open project: sulu/sulu

Protected Properties

Property Type Description
$blockedMimeTypes array
$maxFileSize integer

Public Methods

Method Description
getBlockedMimeTypes ( ) : array
getMaxFileSize ( ) : integer
setBlockedMimeTypes ( array $blockedMimeTypes )
setMaxFileSize ( string $maxFileSize )
validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [self::VALIDATOR_FILE_SET, self::VALIDATOR_FILE_ERRORS, self::VALIDATOR_BLOCK_FILE_TYPES, self::VALIDATOR_MAX_FILE_SIZE] ) : mixed | void

Method Details

getBlockedMimeTypes() public method

public getBlockedMimeTypes ( ) : array
return array

getMaxFileSize() public method

public getMaxFileSize ( ) : integer
return integer

setBlockedMimeTypes() public method

public setBlockedMimeTypes ( array $blockedMimeTypes )
$blockedMimeTypes array

setMaxFileSize() public method

public setMaxFileSize ( string $maxFileSize )
$maxFileSize string

validate() public method

public validate ( Symfony\Component\HttpFoundation\File\UploadedFile $file, array $methods = [self::VALIDATOR_FILE_SET, self::VALIDATOR_FILE_ERRORS, self::VALIDATOR_BLOCK_FILE_TYPES, self::VALIDATOR_MAX_FILE_SIZE] ) : mixed | void
$file Symfony\Component\HttpFoundation\File\UploadedFile
$methods array
return mixed | void

Property Details

$blockedMimeTypes protected_oe property

protected array $blockedMimeTypes
return array

$maxFileSize protected_oe property

protected int $maxFileSize
return integer