BooleanRule
trait BooleanRule (View source)
Methods
void
compileBoolean(string $key, string $masque)
Compile Boolean Rule
Details
protected void
compileBoolean(string $key, string $masque)
Compile Boolean Rule
[boolean] / [bool] — Accepts true, false, 0, 1, "0", "1", "true", "false". Matches the typical form-input meaning rather than PHP's strict bool type.