class ExecutionContext

Default implementation of {@link ExecutionContextInterface}.

This class is immutable by design.

@author Fabien Potencier <fabien@symfony.com> @author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of ExecutionContext

3 files declare their use of ExecutionContext

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ExecutionContext.php, line 24

Namespace

Symfony\Component\Validator
View source

Members

Namesort descending Modifiers Type Description Overrides
ExecutionContext::$globalContext private property
ExecutionContext::$group private property
ExecutionContext::$metadata private property
ExecutionContext::$propertyPath private property
ExecutionContext::$translationDomain private property
ExecutionContext::$translator private property
ExecutionContext::$value private property
ExecutionContext::addViolation public function Adds a violation at the current node of the validation graph. Overrides ExecutionContextInterface::addViolation
ExecutionContext::addViolationAt public function Adds a violation at the validation graph node with the given property path relative to the current property path. Overrides ExecutionContextInterface::addViolationAt
ExecutionContext::executeConstraintValidators private function Executes the validators of the given constraints for the given value.
ExecutionContext::getClassName public function Returns the class name of the current node. Overrides ExecutionContextInterface::getClassName
ExecutionContext::getGroup public function Returns the validation group that is currently being validated. Overrides ExecutionContextInterface::getGroup
ExecutionContext::getMetadata public function Returns the metadata for the currently validated value. Overrides ExecutionContextInterface::getMetadata
ExecutionContext::getMetadataFactory public function Returns the used metadata factory. Overrides ExecutionContextInterface::getMetadataFactory
ExecutionContext::getMetadataFor public function
ExecutionContext::getPropertyName public function Returns the property name of the current node. Overrides ExecutionContextInterface::getPropertyName
ExecutionContext::getPropertyPath public function Returns the property path to the value that the validator is currently validating. Overrides ExecutionContextInterface::getPropertyPath
ExecutionContext::getRoot public function Returns the value at which validation was started in the object graph. Overrides ExecutionContextInterface::getRoot
ExecutionContext::getValue public function Returns the value that the validator is currently validating. Overrides ExecutionContextInterface::getValue
ExecutionContext::getViolations public function Returns the violations generated by the validator so far. Overrides ExecutionContextInterface::getViolations
ExecutionContext::resolveGroups private function Returns an array of group names.
ExecutionContext::validate public function Validates the given value within the scope of the current validation. Overrides ExecutionContextInterface::validate
ExecutionContext::validateValue public function Validates a value against a constraint. Overrides ExecutionContextInterface::validateValue
ExecutionContext::__construct public function Creates a new execution context.