Class FieldCheckModule

Module
   |
   +----FieldCheckModule

Located in File: Program_Root/fieldcheck.mod.php


FieldCheckModule
 This module checks if the input of a field matches a particular regular
 expression.
 

Class Variable Summary
$name
Default Value: ->"FieldCheckModule"<-
$id
Default Value: ->MOD_FIELDCHECK<-
$execlevel
Default Value: ->16<-
$checks
Default Value: ->>REGEX_PHONE<-

Method Summary
FieldCheckModule ( )
Constructor
add_check ( $name, $regex )
Add a new check
remove_check ( $check )
Remove a check
replace_check ( $check, $name, $regex )
Replace a check
before_action ( )
Before action
check_field ( $vars, $fieldname, $value )
Check field routine
do_action ( )
Do action
after_action ( )
After action

Variable Detail

$name



$id



$execlevel



$checks




Function Detail

FieldCheckModule

FieldCheckModule ( )

Constructor
 Set options and call the superConstructor

Function Parameters:
Function Info:

add_check

add_check ( $name, $regex )

Add a new check

Function Parameters:
Function Info:

remove_check

remove_check ( $check )

Remove a check

Function Parameters:
Function Info:

replace_check

replace_check ( $check, $name, $regex )

Replace a check

Function Parameters:
Function Info:

before_action

before_action ( )

Before action
 Check if there are any options, otherwise disable

Function Parameters:
Function Info:

check_field

check_field ( $vars, $fieldname, $value )

Check field routine

Function Parameters:
Function Info:

do_action

do_action ( )

Do action
 Call the check field routine for every check

Function Parameters:
Function Info:

after_action

after_action ( )

After action
 Cleanup

Function Parameters:
Function Info: