Swat/SwatNumericEntry.php
protected function getValidationMessage($id)
    {
        switch ($id) {
            case 'below-minimum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %%s field must not be less than %s.')
                    : Swat::_('This field must not be less than %s.');

                $message = new SwatMessage($text, 'error');
                break;

            case 'above-maximum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %%s field must not be more than %s.')
                    : Swat::_('This field must not be more than %s.');

                $message = new SwatMessage($text, 'error');
                break;

            default:
                $message = parent::getValidationMessage($id);
                break;
        }

        return $message;
    }
protected function getValidationMessage($id)
    {
        switch ($id) {
            case 'below-minimum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %%s field must not be less than %s.')
                    : Swat::_('This field must not be less than %s.');

                $message = new SwatMessage($text, 'error');
                break;

            case 'above-maximum':
                $text = $this->show_field_title_in_messages
                    ? Swat::_('The %%s field must not be more than %s.')
                    : Swat::_('This field must not be more than %s.');

                $message = new SwatMessage($text, 'error');
                break;

            default:
                $message = parent::getValidationMessage($id);
                break;
        }

        return $message;
    }
protected function getValidationMessage ( $ id ) { switch ( $ id ) { case 'below-minimum' : $ text = $ this -> show_field_title_in_messages ? Swat :: _ ( 'The %%s field must not be less than %s.' ) : Swat :: _ ( 'This field must not be less than %s.' ) ; $ message = new SwatMessage ( $ text , 'error' ) ; break ; case 'above-maximum' : $ text = $ this -> show_field_title_in_messages ? Swat :: _ ( 'The %%s field must not be more than %s.' ) : Swat :: _ ( 'This field must not be more than %s.' ) ; $ message = new SwatMessage ( $ text , 'error' ) ; break ; default : $ message = parent :: getValidationMessage ( $ id ) ; break ; } return $ message ; }
Gets a validation message for this numeric entry

@see SwatEntry::getValidationMessage()
@param string $id the string identifier of the validation message.

@return SwatMessage the validation message.
Gets a validation message for this numeric entry