ZMObject
|
+--ZMRule
|
+--ZMGVAmountRule
public class ZMGVAmountRule
extends ZMRule
| Constructor Summary | |
|---|---|
ZMGVAmountRule(string name, string msg) Create new required 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 ZMGVAmountRule(string name, string msg)
Create new required rule.
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.
Validate the amount against the current account's gv balance.
NOTE: The amount is expected to be of type float and must not contains any currency formatting.