PHP Class Prado\Web\UI\WebControls\TListControlValidator
TListControlValidator checks the number of selection and their values
for a
TListControl that allows multiple selection.
You can specify the minimum or maximum (or both) number of selections
required using the {@link setMinSelection MinSelection} and
{@link setMaxSelection MaxSelection} properties, respectively. In addition,
you can specify a comma separated list of required selected values via the
{@link setRequiredSelections RequiredSelections} property.
Examples
- At least two selections
- "value1" must be selected
and at least 1 other
Afficher le fichier
Open project: pradosoft/prado
Méthodes publiques
Méthodes protégées
Method Details
evaluateIsValid()
protected méthode
The validation succeeds if the input component changes its data
from the InitialValue or the input component is not given.
getClientClassName()
protected méthode
This method overrides the parent implementation.
getClientScriptOptions()
protected méthode
Returns an array of javascript validator options.
getMaxSelection()
public méthode
getMinSelection()
public méthode
getRequiredSelections()
public méthode
Get a comma separated list of required selected values.
getRequiredValues()
protected méthode
getSelection()
protected méthode
setMaxSelection()
public méthode
setMinSelection()
public méthode
setRequiredSelections()
public méthode
Set the list of required values, using aa comma separated list.