RecursiveValidator::inContext()

ContextualValidatorInterface inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context Return Value ContextualValidatorInterface The validator for that context

RecursiveValidator

class RecursiveValidator implements ValidatorInterface Recursive implementation of {@link ValidatorInterface}. Methods __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = array()) Creates a new validator. ContextualValidatorInterface startContext($root = null) Starts a new validation context and returns a validator for that context. ContextualVal

RecursiveDirectoryIterator::current()

SplFileInfo current() Return an instance of SplFileInfo with support for relative paths. Return Value SplFileInfo File information

RecursiveDirectoryIterator

class RecursiveDirectoryIterator extends RecursiveDirectoryIterator Extends the \RecursiveDirectoryIterator to support relative paths. Methods __construct(string $path, int $flags, bool $ignoreUnreadableDirs = false) Constructor. SplFileInfo current() Return an instance of SplFileInfo with support for relative paths. RecursiveIterator getChildren() rewind() Do nothing for non rewindable stream. bool isRewindable() Checks if the stream is rewindable. Details

RecursiveDirectoryIterator::isRewindable()

bool isRewindable() Checks if the stream is rewindable. Return Value bool true when the stream is rewindable, false otherwise

RecursiveDirectoryIterator::getChildren()

RecursiveIterator getChildren() Return Value RecursiveIterator Exceptions AccessDeniedException

RecursiveDirectoryIterator::rewind()

rewind() Do nothing for non rewindable stream.

RecursiveContextualValidator::validatePropertyValue()

ContextualValidatorInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null) Validates a value against the constraints specified for an object's property. Parameters object|string $objectOrClass The object or its class name string $propertyName The name of the property mixed $value The value to validate against the property's constraints array|null $groups The validation groups to validate. If none is given, "D

RecursiveContextualValidator::validateProperty()

ContextualValidatorInterface validateProperty(object $object, string $propertyName, array|null $groups = null) Validates a property of an object against the constraints specified for this property. Parameters object $object The object string $propertyName The name of the validated property array|null $groups The validation groups to validate. If none is given, "Default" is assumed Return Value ContextualValidatorInterface This validator

RecursiveContextualValidator::validate()

ContextualValidatorInterface validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. Parameters mixed $value The value to validate Constraint|Constraint[] $constraints The constraint(s) to validate against array|null $groups The validation groups to validate. If non