Generates variable keys with chacksum. More...
Public Member Functions | |
generate ($identificator) | |
Generated variable key from given member ID. | |
errorCheckAvailable () | |
Is generator capable of error checking. | |
errorCheck ($var_key) | |
If errorCheckAvailable() is TRUE that this method may be used for error detection. | |
errorCorrectionAvailable () | |
Is generator capable of error correction. | |
errorCorrection ($var_key) | |
If errorCorrectionAvaiable() is TRUE than this method may be used for error correction of the variable symbol. |
Public Attributes | |
const | PARITY_SEED = 'variable_symbol_checksum_generator_seed' |
Public Attributes inherited from Variable_Key_Generator | |
const | DIR = 'variable_key_generators' |
Dir with classes. |
Additional Inherited Members | |
Static Public Member Functions inherited from Variable_Key_Generator | |
static | factory ($driver=NULL) |
Factory for Variable key drivers. | |
static | get_driver_name ($driver) |
Gets name of driver. | |
static | get_drivers () |
Gets drivers array. | |
static | get_drivers_for_dropdown () |
Gets drivers array for dropdown. | |
static | get_active_driver () |
Gets list of active drivers for selectboxes. |
Generates variable keys with chacksum.
Generator sums identificator with seed saved in database and appends its checksum.
Checksum_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.
string | $var_key | Variable key |
Reimplemented from Variable_Key_Generator.
Checksum_Variable_Key_Generator::errorCheckAvailable | ( | ) |
Checksum_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.
string | $var_key | Variable key |
Reimplemented from Variable_Key_Generator.
Checksum_Variable_Key_Generator::errorCorrectionAvailable | ( | ) |
Checksum_Variable_Key_Generator::generate | ( | $identificator | ) |
Generated variable key from given member ID.
mixed | $identificator | Indentificator for generate from |
Reimplemented from Variable_Key_Generator.