Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
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 ( )

Member Function Documentation

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

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