Stud.IP  5.4
email_validation_class Class Reference

Public Member Functions

 __construct ()
 
Function Tokenize($string, $separator="") Function OutputDebug($message) Function GetLine($connection) Function PutLine($connection, $line) Function ValidateUsername($username) Function ValidatePassword($password) Function ValidateName($name) Function ValidateTelefon($telefon) ValidateEmailAddress ($email, $domains='')
 

Data Fields

 $username_regular_expression =null
 
 $password_regular_expression ="/^.{8,}\$/"
 
 $name_regular_expression ='/^[_ a-zA-ZÀ-ÿ\'-]+$/'
 
 $telefon_regular_expression ="/^([0-9 \(\)\\/+_-]*)\$/"
 
 $timeout =10
 
 $data_timeout =10
 
 $localhost ="studip.de"
 
 $localuser ="info"
 
 $debug =0
 
 $html_debug =0
 
 $exclude_address =""
 
 $getmxrr ="GetMXRR"
 
 $next_token =""
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ ValidateEmailAddress()

Function Tokenize ( $string, $separator="") Function OutputDebug ( $message) Function GetLine ( $connection) Function PutLine ( $connection, $line) Function ValidateUsername ( $username) Function ValidatePassword ( $password) Function ValidateName ( $name) Function ValidateTelefon ( $telefon) ValidateEmailAddress (   $email,
  $domains = '' 
)

Validates an email adress. If you pass a comma separated list of domains as the second parameter, the email is also validated against this list of domains and the email is only valid if it matches any of the domains.

Parameters
string$emailEmail adress to validate
string$domainsOptional comma separated list of valid domains
Returns
bool

Field Documentation

◆ $data_timeout

$data_timeout =10

◆ $debug

$debug =0

◆ $exclude_address

$exclude_address =""

◆ $getmxrr

$getmxrr ="GetMXRR"

◆ $html_debug

$html_debug =0

◆ $localhost

$localhost ="studip.de"

◆ $localuser

$localuser ="info"

◆ $name_regular_expression

$name_regular_expression ='/^[_ a-zA-ZÀ-ÿ\'-]+$/'

◆ $next_token

$next_token =""

◆ $password_regular_expression

$password_regular_expression ="/^.{8,}\$/"

◆ $telefon_regular_expression

$telefon_regular_expression ="/^([0-9 \(\)\\/+_-]*)\$/"

◆ $timeout

$timeout =10

◆ $username_regular_expression

$username_regular_expression =null

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