CleanCode Perl Libraries |
Home | Perl | Java | PowerShell | C# | SQL | Index | Tools | Download | What's New |
Multi-Lingual Library | Maintainability | ||||||||||||
Perl | Java | JavaScript | Certified Class |
Testable Class |
Standalone Mode |
Diagnostic Enabled |
CGI::PageValidator::Plugin::IsAmex - sets the constraints for an American Express credit card type.
(See the Note on Plugins in the CheckItem class for usage notes.)
use CGI::PageValidator::Plugin::IsAmex;
$pluginObj=CGI::PageValidator::Plugin::IsAmex->new($libItem,
"CCType", "1234", "visa", "CGI::PageValidator::PluginLib");
$pluginObj->examine();
$errMsg = $pluginObj->getResult();
CGI::PageValidator::Plugin
Perl5.005, CGI::PageValidator::Plugin
Dependent fields: CCType
This plugin changes the parameters of the Amex ID depending on the credit card type. That is, if the card type is amex, the amex ID field is required; if the card type is not amex, then the amex ID is prohibited.
This plugin does not perform a validation check, it merely adjusts the required standard property, if necessary, which is subsequently used for validation checks by the calling CheckItem object.
None
Michael Sorens
$Revision: 8 $ $Date: 2006-12-19 21:13:43 -0800 (Tue, 19 Dec 2006) $
CleanCode 0.9
Home | Perl | Java | PowerShell | C# | SQL | Index | Tools | Download | What's New |
CleanCode Perl Libraries | Copyright © 2001-2013 Michael Sorens - Revised 2013.06.30 |