phpDocumentor openbiz.bin.service
[ class tree: openbiz.bin.service ] [ index: openbiz.bin.service ] [ all elements ]

Class: validateService

Source Location: /service/validateService.php

Class validateService

Property Summary
mixed   $m_ErrorMessage  
mixed   $m_FieldNameMask  

[ Top ]
Method Summary
validateService   __construct()  
boolean   between()   Built-in Zend between check. Returns true if and only if $value is between the minimum and maximum boundary values.
boolean   betweenLength()   Function to check if a value is between a $min and $max length
boolean   credit()   Credit Card check for US format VISA/AMEX/DISC/MC
boolean   date()   Built-in Zend date check using YYYY-MM-DD
boolean   email()   Built-in Zend email check
void   GetErrorMessage()  
boolean   greaterThan()   Built-in Zend greater than check. Returns true if and only if $value is greater than the minimum boundary.
boolean   lessThan()   Built-in Zend less than check. Returns true if and only if $value is less than the minimum boundary.
boolean   longerThan()   Function to check if a value is longer than the $min length
boolean   phone()   Phone check for US format ###-###-#### or (###)###-####
void   ReadMetadata()  
boolean   shorterThan()   Function to check if a value is shorter than the $max length
boolean   social()   Social Security check for US format ###-###-#### or (###)###-####
boolean   street()   Street Address check for US format #### Memory Lane
boolean   strongPassword()   Strong Password checks if the string is "strong", i.e. the password must be at least 8 characters and must contain at least one lower case letter, one upper case letter and one digit
boolean   zip()   US Zip check in ##### or #####-####

[ Top ]
Properties
mixed   $m_ErrorMessage = null [line 22]
API Tags:
Access:  protected


[ Top ]
mixed   $m_FieldNameMask = "%%FIELDNAME%%" [line 23]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 25]

  validateService __construct( mixed &$xmlArr  )



[ Top ]
between  [line 183]

  boolean between( integer $value, integer $min, mixed $max, [mixed $inclusive = true], boolean $inclusive   )

Built-in Zend between check. Returns true if and only if $value is between the minimum and maximum boundary values.

Parameters:
integer   $value: 
integer   $min: 
mixed   $max: 
boolean   $inclusive : 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
betweenLength  [line 67]

  boolean betweenLength( string $value, integer $min, integer $max  )

Function to check if a value is between a $min and $max length

Parameters:
string   $value: 
integer   $max: 
integer   $min: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
credit  [line 283]

  boolean credit( string $credit  )

Credit Card check for US format VISA/AMEX/DISC/MC

Parameters:
string   $credit: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
date  [line 218]

  boolean date( string $date  )

Built-in Zend date check using YYYY-MM-DD

Parameters:
string   $date:  in date format $date

API Tags:
Return:  Valid?
Access:  public


[ Top ]
email  [line 201]

  boolean email( string $email  )

Built-in Zend email check

Parameters:
string   $email: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
GetErrorMessage  [line 312]

  void GetErrorMessage( [mixed $validator = null], [mixed $fieldName = null]  )


API Tags:
Access:  public


[ Top ]
greaterThan  [line 162]

  boolean greaterThan( integer $value, integer $min  )

Built-in Zend greater than check. Returns true if and only if $value is greater than the minimum boundary.

Parameters:
integer   $value: 
integer   $min: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
lessThan  [line 124]

  boolean lessThan( integer $value, integer $max  )

Built-in Zend less than check. Returns true if and only if $value is less than the minimum boundary.

Parameters:
integer   $value: 
integer   $max: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
longerThan  [line 97]

  boolean longerThan( string $value, integer $min  )

Function to check if a value is longer than the $min length

Parameters:
string   $value: 
integer   $min: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
phone  [line 234]

  boolean phone( string $phone  )

Phone check for US format ###-###-#### or (###)###-####

Parameters:
string   $phone: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
ReadMetadata  [line 30]

  void ReadMetadata( mixed &$xmlArr  )


API Tags:
Access:  protected


[ Top ]
shorterThan  [line 41]

  boolean shorterThan( string $value, integer $max  )

Function to check if a value is shorter than the $max length

Parameters:
string   $value: 
integer   $max: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
social  [line 266]

  boolean social( string $social  )

Social Security check for US format ###-###-#### or (###)###-####

Parameters:
string   $social: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
street  [line 300]

  boolean street( string $street  )

Street Address check for US format #### Memory Lane

Parameters:
string   $street: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
strongPassword  [line 142]

  boolean strongPassword( mixed $value  )

Strong Password checks if the string is "strong", i.e. the password must be at least 8 characters and must contain at least one lower case letter, one upper case letter and one digit

Parameters:
mixed   $value: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]
zip  [line 250]

  boolean zip( string $zip  )

US Zip check in ##### or #####-####

Parameters:
string   $zip: 

API Tags:
Return:  Valid?
Access:  public


[ Top ]

Documentation generated on Tue, 22 Dec 2009 03:03:26 -0800 by phpDocumentor 1.3.0RC3