core/web/EmailLink.php
public function setEmail($email)
    {
        $validator = new EmailValidator();
        if ($validator->validate($email)) {
            $this->_email = $email;
        } else {
            $this->_email = false;
        }
    }
public function setEmail($email)
    {
        $validator = new EmailValidator();
        if ($validator->validate($email)) {
            $this->_email = $email;
        } else {
            $this->_email = false;
        }
    }
public function setEmail ( $ email ) { $ validator = new EmailValidator ( ) ; if ( $ validator -> validate ( $ email ) ) { $ this -> _email = $ email ; } else { $ this -> _email = false ; } }
Setter method for e-mail.

If no valid email is provided, not value is set.

@param string $email The e-mail which should be used for the mailto link.
Setter method for e - mail .