class All

@author Bernhard Schussek <bschussek@gmail.com>

@api

Hierarchy

  • class \Symfony\Component\Validator\Constraint
    • class \Symfony\Component\Validator\Constraints\All

Expanded class hierarchy of All

5 files declare their use of All
AllTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/AllTest.php
AllValidatorTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php
AnnotationLoaderTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php
XmlFileLoaderTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php
YamlFileLoaderTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php
38 string references to 'All'
ArgumentPluginBase::defineOptions in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
BooleanOperator::valueValidate in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
Validate the options form.
dblog_form_system_logging_settings_alter in drupal/core/modules/dblog/dblog.module
Implements hook_form_FORM_ID_alter() for system_logging_settings().
ExposedFormTest::testResetButton in drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php
Tests whether the reset button works on an exposed form.
FilterEqualityTest::getGroupedExposedFilters in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/FilterEqualityTest.php

... See full list

File

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

Namespace

Symfony\Component\Validator\Constraints
View source
class All extends Constraint {
  public $constraints = array();

  /**
   * {@inheritDoc}
   */
  public function __construct($options = null) {
    parent::__construct($options);
    if (!is_array($this->constraints)) {
      $this->constraints = array(
        $this->constraints,
      );
    }
    foreach ($this->constraints as $constraint) {
      if (!$constraint instanceof Constraint) {
        throw new ConstraintDefinitionException(sprintf('The value %s is not an instance of Constraint in constraint %s', $constraint, __CLASS__));
      }
      if ($constraint instanceof Valid) {
        throw new ConstraintDefinitionException(sprintf('The constraint Valid cannot be nested inside constraint %s. You can only declare the Valid constraint directly on a field or method.', __CLASS__));
      }
    }
  }
  public function getDefaultOption() {
    return 'constraints';
  }
  public function getRequiredOptions() {
    return array(
      'constraints',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
All::$constraints public property
All::getDefaultOption public function Returns the name of the default option Overrides Constraint::getDefaultOption
All::getRequiredOptions public function Returns the name of the required options Overrides Constraint::getRequiredOptions
All::__construct public function Initializes the constraint with options. Overrides Constraint::__construct
Constraint::$groups public property
Constraint::addImplicitGroupName public function Adds the given group if this constraint is in the Default group
Constraint::CLASS_CONSTRAINT constant Marks a constraint that can be put onto classes
Constraint::DEFAULT_GROUP constant The name of the group given to all constraints with no explicit group
Constraint::getTargets public function Returns whether the constraint can be put onto classes, properties or both 7
Constraint::PROPERTY_CONSTRAINT constant Marks a constraint that can be put onto properties
Constraint::validatedBy public function Returns the name of the class that validates this constraint 2
Constraint::__set public function Unsupported operation.