trait StringRule (View source)

Methods

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

Details

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

Compile Required Rule

Parameters

string $key
string $masque

Return Value

void

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

Compile Empty Rule

Parameters

string $key
string $masque

Return Value

void

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

Compile Alphanum Rule

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

Parameters

string $key
string $masque

Return Value

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

Parameters

string $key
string $masque

Return Value

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

Parameters

string $key
string $masque

Return Value

void

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

Compile Lower Rule

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

Parameters

string $key
string $masque

Return Value

void

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

Compile Upper Rule

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

Parameters

string $key
string $masque

Return Value

void

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

Compile Alpha Rule

[alpha] Check that the field content is an alpha

Parameters

string $key
string $masque

Return Value

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

Parameters

string $key
string $masque

Return Value

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

Parameters

string $key
string $masque

Return Value

void

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

Compile Some Rule

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

Parameters

string $key
string $masque

Return Value

void