Swat/SwatEmailEntry.php
protected function getValidationMessage($id)
    {
        switch ($id) {
            case 'email':
                $text = Swat::_(
                    'The email address you have entered is not ' .
                        'properly formatted.'
                );

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

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

        return $message;
    }
protected function getValidationMessage($id)
    {
        switch ($id) {
            case 'email':
                $text = Swat::_(
                    'The email address you have entered is not ' .
                        'properly formatted.'
                );

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

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

        return $message;
    }
protected function getValidationMessage ( $ id ) { switch ( $ id ) { case 'email' : $ text = Swat :: _ ( 'The email address you have entered is not ' . 'properly formatted.' ) ; $ message = new SwatMessage ( $ text , 'error' ) ; break ; default : $ message = parent :: getValidationMessage ( $ id ) ; break ; } return $ message ; }
Gets a validation message for this email 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 email entry