eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\Validator\FileSizeValidator Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Validator\FileSizeValidator:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Validator\FileSizeValidator:

Public Member Functions

 validate (BaseValue $value)
 Checks if $value->file has the appropriate size. More...
 
 validateConstraints ($constraints)
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\Validator
 __get ($name)
 Magic getter. More...
 
 __set ($name, $value)
 Magic setter. More...
 
 getConstraintsSchema ()
 Returns a schema for supported validator configurations. More...
 
 getMessage ()
 Returns array of messages on performed validations. More...
 
 initializeWithConstraints (array $constraints)
 Initialized an instance of Validator, with earlier configured constraints. More...
 
 validate (Value $value)
 Perform validation on $value. More...
 
 validateConstraints ($constraints)
 

Protected Attributes

 $constraints
 
 $constraintsSchema
 
- Protected Attributes inherited from eZ\Publish\Core\FieldType\Validator
 $constraints = array()
 
 $constraintsSchema = array()
 
 $errors = array()
 

Member Function Documentation

eZ\Publish\Core\FieldType\Validator\FileSizeValidator::validate ( BaseValue  $value)

Checks if $value->file has the appropriate size.

Parameters
\eZ\Publish\Core\FieldType\BinaryFile\Value$value
Returns
boolean
eZ\Publish\Core\FieldType\Validator\FileSizeValidator::validateConstraints (   $constraints)

Member Data Documentation

eZ\Publish\Core\FieldType\Validator\FileSizeValidator::$constraints
protected
Initial value:
= array(
'maxFileSize' => false
)

Referenced by eZ\Publish\Core\FieldType\Validator\FileSizeValidator\validateConstraints().

eZ\Publish\Core\FieldType\Validator\FileSizeValidator::$constraintsSchema
protected
Initial value:
= array(
"maxFileSize" => array(
"type" => "int",
"default" => false
)
)

The documentation for this class was generated from the following file: