OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxMailValidator Class Reference

Public Member Functions

 getMailValidationRule ()
 setMailValidationRule ($sMailValidationRule)
 __construct ()
 isValidEmail ($sEmail)

Private Attributes

 $_sMailValidationRule = null

Detailed Description

Class oxMailValidator

Definition at line 6 of file oxmailvalidator.php.

Constructor & Destructor Documentation

oxMailValidator::__construct ( )

Set mail validation rule from config. Would use default rule if not defined in config.

Definition at line 42 of file oxmailvalidator.php.

Member Function Documentation

oxMailValidator::getMailValidationRule ( )

Get mail validation rule.

Returns
string

Definition at line 19 of file oxmailvalidator.php.

oxMailValidator::isValidEmail (   $sEmail)

User email validation function. Returns true if email is OK otherwise - false; Syntax validation is performed only.

Parameters
string$sEmailuser email
Returns
bool

Definition at line 59 of file oxmailvalidator.php.

oxMailValidator::setMailValidationRule (   $sMailValidationRule)

Override mail validation rule.

Parameters
string$sMailValidationRulemail validation rule

Definition at line 33 of file oxmailvalidator.php.

Member Data Documentation

oxMailValidator::$_sMailValidationRule = null
private

Definition at line 12 of file oxmailvalidator.php.


The documentation for this class was generated from the following file: