Validates and verifies email addresses.
[line 58]
[line 28]
[line 52]
[line 22]
[line 16]
[line 46]
[line 40]
[line 34]
EmailValidator __construct( string $emailOrId)
Creates and instance of the EmailValidator using an ID or an email address. If an invalid ID is passed an {link EmailValidatorException} is thrown.
void __destruct( )
If this is not a new entry, changes may have been made, to auto save to the database.
string generateVerificationCode( )
integer getId( )
boolean getValid( )
boolean getVerified( )
void loadEmailDB( )
void remove( )
integer save( )
boolean sendVerificationEmail( )
Throws an EmailValidatorException if the email address has not been validated or has not been saved to the database.
void setEmail( $email $email)
Once set, the email must be revalidated.
boolean validate( )
boolean verify( string $verifyCode)
Verification code check is case insensitive. Throws an EmailValidatorException if the email address has not been validated.