ZMObject
|
+--ZMRule
|
+--ZMRegexpRule
public class ZMRegexpRule
extends ZMRule
| Constructor Summary | |
|---|---|
ZMRegexpRule(string name, string regexp, string msg) Create new regexp 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 ZMRegexpRule(string name, string regexp, string msg)
Create new regexp 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.
Regexp validation rules.