trait DatabaseRule (Voir la source)

Méthodes

void
compileExists(string $key, string $masque)

Compile Exists Rule

void
compileNotExists(string $key, string $masque)

Compile Not Exists Rule

void
compileUnique(string $key, string $masque)

Compile Unique Rule

Détails

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

Compile Exists Rule

[exists:table,column] Check that the contents of a table field exist

Paramètres

string $key
string $masque

Valeur de retour

void

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

Compile Not Exists Rule

[!exists:table,column] Checks that the contents of the field of a table do not exist

Paramètres

string $key
string $masque

Valeur de retour

void

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

Compile Unique Rule

[unique:table,column] Check that the contents of the field of a table is a single value

Paramètres

string $key
string $masque

Valeur de retour

void