Class Nexista_CustomValidator

Description

This validator calls a user defined function to validate the data.

This function/method should be callable by 'call_user_func'. It needs to accept 2 parameters:

  1. the data string to validate
  2. return the validation by reference
It also should return function success as true or false.
  1.  function myCallableFunction($data$isValid)
  2.  {
  3.       if($data 'good')
  4.           $isValid true;
  5.       else
  6.           $isValid false;
  7.  
  8.       //return function execution status
  9.       return true;
  10.  }

Located in /modules/validators/custom.validator.php (line 40)

Nexista_Validator
   |
   --Nexista_CustomValidator
Variable Summary
 string $message
 array $params
Method Summary
 boolean main ()
Variables
string $message = "is not acceptable" (line 60)

Validator error message

  • access: protected

Redefinition of:
Nexista_Validator::$message
Validation info message
array $params = array(
'var' => '', //required - name of flow var to validate
'function' => '' //required - user callable function
)
(line 49)

Function parameter array

  • access: protected

Redefinition of:
Nexista_Validator::$params
Function parameter array

Inherited Variables

Inherited from Nexista_Validator

Nexista_Validator::$empty
Nexista_Validator::$required
Nexista_Validator::$result
Methods

Documentation generated on Tue, 11 Mar 2008 23:22:56 -0400 for Nexista 0.2.0