trait StringRule (Voir la source)

Méthodes

void
compileRequired(string $key, string $masque)

Compile Required Rule

void
compileEmpty(string $key, string $masque)

Compile Empty Rule

void
compileAlphaNum(string $key, string $masque)

Compile Alphanum Rule

void
compileIn(string $key, string $masque)

Compile In Rule

void
compileSize(string $key, string $masque)

Compile Size Rule

void
compileLower(string $key, string $masque)

Compile Lower Rule

void
compileUpper(string $key, string $masque)

Compile Upper Rule

void
compileAlpha(string $key, string $masque)

Compile Alpha Rule

void
compileMin(string $key, string $masque)

Compile Min Mask

void
compileMax(string $key, string $masque)

Compile Max Rule

void
compileSame(string $key, string $masque)

Compile Some Rule

Détails

protected void compileRequired(string $key, string $masque)

Compile Required Rule

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileEmpty(string $key, string $masque)

Compile Empty Rule

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileAlphaNum(string $key, string $masque)

Compile Alphanum Rule

[alphanum] Check that the field content is an alphanumeric string

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileIn(string $key, string $masque)

Compile In Rule

[in:(value, ...)] Check that the contents of the field are equal to the defined value

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileSize(string $key, string $masque)

Compile Size Rule

[size:value] Check that the contents of the field is a number of character equal to the defined value

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileLower(string $key, string $masque)

Compile Lower Rule

[lower] Check that the content of the field is a string in miniscule

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileUpper(string $key, string $masque)

Compile Upper Rule

[upper] Check that the contents of the field is a string in uppercase

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileAlpha(string $key, string $masque)

Compile Alpha Rule

[alpha] Check that the field content is an alpha

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileMin(string $key, string $masque)

Compile Min Mask

[min:value] Check that the content of the field is a number of minimal character following the defined value

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileMax(string $key, string $masque)

Compile Max Rule

[max:value] Check that the content of the field is a number of maximum character following the defined value

Paramètres

string $key
string $masque

Valeur de retour

void

protected void compileSame(string $key, string $masque)

Compile Some Rule

[same:value] Check that the field contents are equal to the mask value

Paramètres

string $key
string $masque

Valeur de retour

void