Abstract class for variable key drivers.
More...
Public Attributes |
const | DIR = 'variable_key_generators' |
| Dir with classes.
|
Detailed Description
Abstract class for variable key drivers.
- Author
- Ondrej Fibich
- See Also
- Bank_Statement_File_Importer
Member Function Documentation
Variable_Key_Generator::errorCheck |
( |
|
$var_key | ) |
|
If errorCheckAvailable() is TRUE that this method may be used for error detection.
It is only capable of detection, no correction is available here.
Override this method in a subclass in order to implement error detection for your generator.
- Parameters
-
string | $var_key | Variable key |
- Returns
- boolean TRUE is the given variable key is without errors or FALSE otherwise
Reimplemented in Checksum_Variable_Key_Generator, and Pvfree_Variable_Key_Generator.
Variable_Key_Generator::errorCheckAvailable |
( |
| ) |
|
|
abstract |
Variable_Key_Generator::errorCorrection |
( |
|
$var_key | ) |
|
If errorCorrectionAvaiable() is TRUE than this method may be used for error correction of the variable symbol.
Override this method in a subclass in order to implement error correction for your generator.
- Parameters
-
string | $var_key | Variable key |
- Returns
- array Contains two items boolean status TRUE if correction was successful FALSE if correction was unsuccessful string corrected_variable_key Corrected variable symbol
Reimplemented in Checksum_Variable_Key_Generator.
Variable_Key_Generator::errorCorrectionAvailable |
( |
| ) |
|
|
abstract |
static Variable_Key_Generator::factory |
( |
|
$driver = NULL | ) |
|
|
static |
Factory for Variable key drivers.
- Parameters
-
mixed | $driver | String index of driver or integer ID of driver or NUL if current should be selected. |
- Returns
- Variable_Key_Generator Generator instance or NULL if driver name or ID is incorect.
Variable_Key_Generator::generate |
( |
|
$identificator | ) |
|
|
abstract |
static Variable_Key_Generator::get_active_driver |
( |
| ) |
|
|
static |
Gets list of active drivers for selectboxes.
Key is id of driver and value is name.
- Returns
- string ID of driver
static Variable_Key_Generator::get_driver_name |
( |
|
$driver | ) |
|
|
static |
Gets name of driver.
- Parameters
-
integer | $driver | String index of driver or integer ID of driver. |
- Returns
- string
static Variable_Key_Generator::get_drivers |
( |
| ) |
|
|
static |
Gets drivers array.
- Returns
- array
static Variable_Key_Generator::get_drivers_for_dropdown |
( |
| ) |
|
|
static |
Gets drivers array for dropdown.
- Returns
- array
The documentation for this class was generated from the following file:
- Variable_Key_Generator.php