Class Index | File Index

Classes


Class M.PhoneValidator


Extends M.Validator.
Validates a string if it matches a phone number pattern.
Defined in: phone_validator.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
It is assumed that phone numbers consist only of: 0-9, -, /, (), .
 
The type of this object.
Fields borrowed from class M.Validator:
validationErrors
Method Summary
Method Attributes Method Name and Description
 
validate(obj)
Validation method.
Methods borrowed from class M.Validator:
clearErrorBuffer, customize
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include, set
Class Detail
M.PhoneValidator()
Field Detail
{The regular expression detecting a phone adress.} pattern
It is assumed that phone numbers consist only of: 0-9, -, /, (), .

{String} type
The type of this object.
Method Detail
{Boolean} validate(obj)
Validation method. Executes e-mail regex pattern to string.
Parameters:
{Object} obj
Parameter object. Contains the value to be validated, the M.ModelAttribute object of the property and the model record's id.
Returns:
{Boolean} Indicating whether validation passed (YES|true) or not (NO|false).

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:10 GMT+0100 (MEZ)