ZMObject
|
+--ZMRule
|
+--ZMFieldMatchRule
public class ZMFieldMatchRule
extends ZMRule
| Constructor Summary | |
|---|---|
ZMFieldMatchRule(string name, string other, string msg) Create new field match rule. |
|
| Method Summary | |
|---|---|
| string | Return an appropriate error message. |
| 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 ZMFieldMatchRule(string name, string other, string msg)
Create new field match rule.
public string getErrorMsg()
Return an appropriate error message.
public string toJSString()
Create JS validation call.
public boolean validate(array req)
Validate the given request data.
true if the value for $name is valid, false if not.
Field match rule.
This is mostly to match new and confirm password.