CWP\Search\Extensions\SynonymValidator
Synopsis
class SynonymValidator
extends Validator
{
- // members
- protected $fieldNames;
- // methods
- public void __construct()
- public mixed php()
- protected void validateField()
- protected bool validateValue()
- protected bool validateLine()
- protected bool validatePart()
- protected bool validateNoSpaces()
Hierarchy
Extends
- SilverStripe\Forms\Validator
Members
protected
- $fieldNames — array
Methods
protected
- validateField() — Validate field values, raising errors if the values are invalid.
- validateLine() — Check each line to see that it doesn't contain spaces between words.
- validateNoSpaces()
- validatePart() — Check each part of the line doesn't contain spaces between words.
- validateValue() — Check field values to see that they doesn't contain spaces between words.