@author Bernhard Schussek <bschussek@gmail.com>
@api
Expanded class hierarchy of Choice
class Choice extends Constraint {
public $choices;
public $callback;
public $multiple = false;
public $strict = false;
public $min = null;
public $max = null;
public $message = 'The value you selected is not a valid choice.';
public $multipleMessage = 'One or more of the given values is invalid.';
public $minMessage = 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.';
public $maxMessage = 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.';
/**
* {@inheritDoc}
*/
public function getDefaultOption() {
return 'choices';
}
}
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | property | ||
Choice:: |
public | function |
Returns the name of the default option Overrides Constraint:: |
|
Constraint:: |
public | property | ||
Constraint:: |
public | function | Adds the given group if this constraint is in the Default group | |
Constraint:: |
constant | Marks a constraint that can be put onto classes | ||
Constraint:: |
constant | The name of the group given to all constraints with no explicit group | ||
Constraint:: |
public | function | Returns the name of the required options | 10 |
Constraint:: |
public | function | Returns whether the constraint can be put onto classes, properties or both | 7 |
Constraint:: |
constant | Marks a constraint that can be put onto properties | ||
Constraint:: |
public | function | Returns the name of the class that validates this constraint | 2 |
Constraint:: |
public | function | Initializes the constraint with options. | 10 |
Constraint:: |
public | function | Unsupported operation. |