Module | +----FieldCheckModule
Located in File: Program_Root/fieldcheck.mod.php
This module checks if the input of a field matches a particular regular expression.
ModulesHerman Suijs| Class Variable Summary |
$name
Default Value:
|
$id
Default Value:
|
$execlevel
Default Value:
|
$checks
Default Value:
|
| 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 |
| Function Detail |
FieldCheckModule ( )
ConstructorSet options and call the superConstructor
add_check ( $name, $regex )
Add a new checkremove_check ( $check )
Remove a checkreplace_check ( $check, $name, $regex )
Replace a checkbefore_action ( )
Before actionCheck if there are any options, otherwise disable
check_field ( $vars, $fieldname, $value )
Check field routinedo_action ( )
Do actionCall the check field routine for every check
after_action ( )
After actionCleanup