Prado\Web\UI\WebControls\TRequiredFieldValidator::evaluateIsValid PHP Method

evaluateIsValid() protected method

The validation succeeds if the input component changes its data from the {@link getInitialValue InitialValue} or the input control is not given. Validation will also succeed if input is of TListControl type and the number of selected values different from the initial value is greater than zero.
protected evaluateIsValid ( ) : boolean
return boolean whether the validation succeeds
    protected function evaluateIsValid()
    {
        $control = $this->getValidationTarget();
        if ($control instanceof TListControl) {
            return $this->validateListControl($control);
        } else {
            if ($control instanceof TRadioButton && strlen($control->getGroupName()) > 0) {
                return $this->validateRadioButtonGroup($control);
            } else {
                return $this->validateStandardControl($control);
            }
        }
    }