ZMObject
|
+--ZMRule
|
+--ZMListRule
public class ZMListRule
extends ZMRule
| Constructor Summary | |
|---|---|
ZMListRule(string name, mixed values, string msg) Create new list rule. |
|
| Method Summary | |
|---|---|
| string | Create JS validation call. |
| boolean | validate(array req) Validate the given request data. |
| Methods inherited from org.zenmagick.validation.ZMRule | |
|---|---|
| getDefaultMsg, getErrorMsg, getJSName, getMsg, getName, toJSString, validate | |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMListRule(string name, mixed values, string msg)
Create new list rule.
public string toJSString()
Create JS validation call.
public boolean validate(array req)
Validate the given request data.
true if the regular expression does match.
List validation rules.
Validate against a list of allowed values.