DatabaseRule
trait DatabaseRule (View source)
Methods
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
Details
protected void
compileExists(string $key, string $masque)
Compile Exists Rule
[exists:table,column] Check that the contents of a table field exist
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
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