CORE POS - Fannie
The CORE POS back end
Public Member Functions | Protected Attributes | List of all members
GumTaxIdentifiersModel Class Reference
Inheritance diagram for GumTaxIdentifiersModel:
BasicModel

Public Member Functions

 gumTaxIdentifierID ()
 
 card_no ()
 
 encryptedTaxIdentifier ()
 
 maskedTaxIdentifier ()
 
- Public Member Functions inherited from BasicModel
 db ()
 
 preferredDB ()
 
 setConfig ($c)
 
 __construct ($con)
 
 whichDB ($db_name)
 
 getDefinition ()
 
 create ()
 
 createIfNeeded ($db_name)
 
 load ()
 
 reset ()
 
 getColumns ()
 
 getName ()
 
 getFullQualifiedName ()
 
 find ($sort='', $reverse=false)
 
 delete ()
 
 save ()
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 doc ()
 
 generate ($filename)
 
 newModel ($name, $as_view=false)
 
 getModels ()
 
 toJSON ()
 

Protected Attributes

 $name = "GumTaxIdentifiers"
 
 $columns
 
- Protected Attributes inherited from BasicModel
 $name
 
 $fq_name
 
 $columns = array()
 
 $unique = array()
 
 $meta_types
 
 $connection = false
 
 $record_changed = false
 
 $instance = array()
 
 $filters = array()
 
 $normalize_lanes = false
 
 $currently_normalizing_lane = false
 
 $cached_definition = false
 
 $config
 
 $preferred_db = ''
 
 $hooks = array()
 

Additional Inherited Members

- Public Attributes inherited from BasicModel
const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 
- Protected Member Functions inherited from BasicModel
 getMeta ($type, $dbms)
 
 validateOp ($operator)
 
 insertRecord ()
 
 updateRecord ()
 
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 loadHooks ()
 

Detailed Description

This table stores tax IDs - e.g., social security numbers. The encrypted field should contain the full value but not in plaintext (duh). The masked field contains the last four digits.

RSA is the default expectation using public key to encrypt and private key to decrypt. Ideally, the private key should not exist anywhere on the server side. See README.PLUGIN for more information on setting up encryption keys.

Member Data Documentation

GumTaxIdentifiersModel::$columns
protected
Initial value:
= array(
'gumTaxIdentifierID' => array('type'=>'INT', 'increment'=>true, 'index'=>true),
'card_no' => array('type'=>'INT', 'primary_key'=>true),
'encryptedTaxIdentifier' => array('type'=>'BLOB'),
'maskedTaxIdentifier' => array('type'=>'CHAR(4)'),
)

The documentation for this class was generated from the following file: