Swat/SwatEmailEntry.php
public function process()
    {
        parent::process();

        if ($this->value === null) {
            return;
        }

        if ($this->value == '') {
            $this->value = null;
            return;
        }

        if (!$this->validateEmailAddress()) {
            $this->addMessage($this->getValidationMessage('email'));
        }
    }
public function process()
    {
        parent::process();

        if ($this->value === null) {
            return;
        }

        if ($this->value == '') {
            $this->value = null;
            return;
        }

        if (!$this->validateEmailAddress()) {
            $this->addMessage($this->getValidationMessage('email'));
        }
    }
public function process ( ) { parent :: process ( ) ; if ( $ this -> value === null ) { return ; } if ( $ this -> value == '' ) { $ this -> value = null ; return ; } if ( ! $ this -> validateEmailAddress ( ) ) { $ this -> addMessage ( $ this -> getValidationMessage ( 'email' ) ) ; } }
Processes this email entry

Ensures this email address is formatted correctly. If the email address
is not formatted correctly, adds an error message to this entry widget.
Processes this email entry