PHP Class v, kirby

Mostrar archivo Open project: bastianallgeier/kirby Class Usage Examples

Public Methods

Method Description
date ( string $date ) : boolean Checks for valid date
email ( string $email ) : boolean Checks for valid email address
filename ( string $string ) : boolean Checks for valid filename
password ( string $password ) : boolean Checks for a valid password
passwords ( string $password1, string $password2 ) : boolean Checks for two valid, matching password
string ( string $string, array $options ) : boolean Core method to create a new validator
url ( string $url ) : boolean Checks for valid URL

Method Details

date() static public method

Checks for valid date
static public date ( string $date ) : boolean
$date string
return boolean

email() static public method

Checks for valid email address
static public email ( string $email ) : boolean
$email string
return boolean

filename() static public method

Checks for valid filename
static public filename ( string $string ) : boolean
$string string
return boolean

password() static public method

Checks for a valid password
static public password ( string $password ) : boolean
$password string
return boolean

passwords() static public method

Checks for two valid, matching password
static public passwords ( string $password1, string $password2 ) : boolean
$password1 string
$password2 string
return boolean

string() static public method

Core method to create a new validator
static public string ( string $string, array $options ) : boolean
$string string
$options array
return boolean

url() static public method

Checks for valid URL
static public url ( string $url ) : boolean
$url string
return boolean