public addRules ( array $rules, boolean $append = true ) | ||
$rules | array | the new rules to be added. Each array element represents a single rule declaration. Please refer to [[rules]] for the acceptable rule format. |
$append | boolean | whether to add the new rules by appending them to the end of the existing rules. |