Public Member Functions | Protected Member Functions | Protected Attributes

validateService Class Reference

Public Member Functions

 __construct (&$xmlArr)
 shorterThan ($value, $max)
 betweenLength ($value, $min, $max)
 longerThan ($value, $min)
 lessThan ($value, $max)
 strongPassword ($value)
 greaterThan ($value, $min)
 between ($value, $min, $max, $inclusive=true)
 email ($email)
 date ($date)
 phone ($phone)
 zip ($zip)
 social ($social)
 credit ($credit)
 street ($street)
 getErrorMessage ($validator=null, $fieldName=null)

Protected Member Functions

 readMetadata (&$xmlArr)

Protected Attributes

 $m_ErrorMessage = null
 $m_FieldNameMask = "%%FIELDNAME%%"

Detailed Description

Definition at line 29 of file validateService.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize reportService with xml array metadata

Parameters:
array$xmlArr
Returns:
void

Definition at line 40 of file validateService.php.

Here is the call graph for this function:


Member Function Documentation

between ( value,
min,
max,
inclusive = true 
)

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
Returns:
boolean Valid?

Definition at line 231 of file validateService.php.

Here is the call graph for this function:

betweenLength ( value,
min,
max 
)

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

Parameters:
string$value
integer$max
integer$min
Returns:
boolean Valid?

Definition at line 94 of file validateService.php.

Here is the call graph for this function:

credit ( credit )

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

Parameters:
string$credit
Returns:
boolean Valid?

Definition at line 355 of file validateService.php.

Here is the call graph for this function:

date ( date )

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

Parameters:
stringin date format $date
Returns:
boolean Valid?

Definition at line 279 of file validateService.php.

Here is the call graph for this function:

email ( email )

Built-in Zend email check

Parameters:
string$email
Returns:
boolean Valid?

Definition at line 251 of file validateService.php.

Here is the call graph for this function:

getErrorMessage ( validator = null,
fieldName = null 
)

Get error message

Parameters:
string$validator
string$fieldName
Returns:
string

Definition at line 394 of file validateService.php.

Here is the call graph for this function:

greaterThan ( value,
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
Returns:
boolean Valid?

Definition at line 208 of file validateService.php.

Here is the call graph for this function:

lessThan ( value,
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
Returns:
boolean Valid?

Definition at line 166 of file validateService.php.

Here is the call graph for this function:

longerThan ( value,
min 
)

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

Parameters:
string$value
integer$min
Returns:
boolean Valid?

Definition at line 132 of file validateService.php.

Here is the call graph for this function:

phone ( phone )

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

Parameters:
string$phone
Returns:
boolean Valid?

Definition at line 298 of file validateService.php.

Here is the call graph for this function:

readMetadata ( &$  xmlArr ) [protected]

Read array meta data, and store to meta object

Parameters:
array$xmlArr
Returns:
void

Definition at line 51 of file validateService.php.

Here is the caller graph for this function:

shorterThan ( value,
max 
)

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

Parameters:
string$value
integer$max
Returns:
boolean Valid?

Definition at line 62 of file validateService.php.

Here is the call graph for this function:

social ( social )

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

Parameters:
string$social
Returns:
boolean Valid?

Definition at line 336 of file validateService.php.

Here is the call graph for this function:

street ( street )

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

Parameters:
string$street
Returns:
boolean Valid?

Definition at line 374 of file validateService.php.

Here is the call graph for this function:

strongPassword ( 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
Returns:
boolean Valid?

Definition at line 186 of file validateService.php.

Here is the call graph for this function:

zip ( zip )

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

Parameters:
string$zip
Returns:
boolean Valid?

Definition at line 317 of file validateService.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file: