PHP Class v, kirby

Afficher le fichier Open project: bastianallgeier/kirby Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Checks for valid date
static public date ( string $date ) : boolean
$date string
Résultat boolean

email() static public méthode

Checks for valid email address
static public email ( string $email ) : boolean
$email string
Résultat boolean

filename() static public méthode

Checks for valid filename
static public filename ( string $string ) : boolean
$string string
Résultat boolean

password() static public méthode

Checks for a valid password
static public password ( string $password ) : boolean
$password string
Résultat boolean

passwords() static public méthode

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

string() static public méthode

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

url() static public méthode

Checks for valid URL
static public url ( string $url ) : boolean
$url string
Résultat boolean