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

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

        if ($this->email_widget === null) {
            throw new SwatException(
                "Property 'email_widget' is null. " .
                    'Expected a reference to a SwatEmailEntry.'
            );
        }

        if ($this->email_widget->value !== null) {
            if ($this->email_widget->value !== $this->value) {
                $message = Swat::_(
                    'Email address and confirmation email ' .
                        'address do not match.'
                );

                $this->addMessage(new SwatMessage($message, 'error'));
            }
        }
    }
public function process()
    {
        parent::process();

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

        if ($this->email_widget === null) {
            throw new SwatException(
                "Property 'email_widget' is null. " .
                    'Expected a reference to a SwatEmailEntry.'
            );
        }

        if ($this->email_widget->value !== null) {
            if ($this->email_widget->value !== $this->value) {
                $message = Swat::_(
                    'Email address and confirmation email ' .
                        'address do not match.'
                );

                $this->addMessage(new SwatMessage($message, 'error'));
            }
        }
    }
public function process ( ) { parent :: process ( ) ; if ( $ this -> value === null ) { return ; } if ( $ this -> email_widget === null ) { throw new SwatException ( "Property 'email_widget' is null. " . 'Expected a reference to a SwatEmailEntry.' ) ; } if ( $ this -> email_widget -> value !== null ) { if ( $ this -> email_widget -> value !== $ this -> value ) { $ message = Swat :: _ ( 'Email address and confirmation email ' . 'address do not match.' ) ; $ this -> addMessage ( new SwatMessage ( $ message , 'error' ) ) ; } } }
Checks to make sure email addresses match

Checks to make sure the values of the two email address fields are the
same. If an associated email entry widget is not set, an exception is
thrown. If the addresses do not match, an error is added to this widget.

@throws SwatException
Checks to make sure email addresses match