\BankAccountField
Field for displaying bank account numbers. It separates the bank, branch, account-number and account-suffix.
Synopsis
class BankAccountField
extends FormField
{
- // members
- protected $bankCode;
- protected $branchCode;
- protected array $valueArr = ;
- public boolean $isRequired = false;
- public array $requiredFields = ;
- // methods
- public void __construct()
- public void Field()
- public void setValue()
- protected static boolean is_valid_array_structure()
- public string getBankCode()
- public string getBranchCode()
- public string getAccountNumber()
- public string getAccountSuffix()
- public static string join_bank_number()
- public void jsValidation()
- public void validate()
- public static array convert_format_nz()
Hierarchy
Extends
- FormField
Tasks
Line | Task |
---|---|
154+ | Very basic validation at the moment |
208+ | Very basic validation at the moment |
Members
protected
- $bankCode
- $branchCode
- $valueArr — array
public
-
$isRequired
HACK Proper requiring of compositefields would involve serious restructuring. - $requiredFields — array
Methods
protected
- is_valid_array_structure() — Checks for a valid array structure.
public
- __construct()
- Field()
- convert_format_nz() — Convert from old format (2-4-7-2) to new format (2-4-8-3).
- getAccountNumber()
- getAccountSuffix()
- getBankCode()
- getBranchCode()
- join_bank_number() — Makes sure the number is a string with spaces instead of hyphens, and adjusts to new format (2-4-8-3) by using conver_format_nz().
- jsValidation()
- setValue()
- validate()