newRuleset()
Overview
public array function newRuleset(
required string name
, any rules
)
Registers a new ruleset. See Validation framework for full usage documentation.
Arguments
Name | Type | Required | Description |
---|---|---|---|
name | string | Yes | Name for the ruleset |
rules | any | No | Either: an array of structs, json string evaluating to array of structs, or a filepath containing json |