QCheckBox::Validate PHP Méthode

Validate() public méthode

public Validate ( )
    public function Validate()
    {
        if ($this->blnRequired) {
            if (!$this->blnChecked) {
                if ($this->strName) {
                    $this->strValidationError = QApplication::Translate($this->strName) . ' ' . QApplication::Translate('is required');
                } else {
                    $this->strValidationError = QApplication::Translate('Required');
                }
                return false;
            }
        }
        $this->strValidationError = null;
        return true;
    }