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

Public Member Functions

 doc ()
 
 CardNo ()
 
 personNum ()
 
 LastName ()
 
 FirstName ()
 
 CashBack ()
 
 Balance ()
 
 Discount ()
 
 MemDiscountLimit ()
 
 ChargeLimit ()
 
 ChargeOk ()
 
 WriteChecks ()
 
 StoreCoupons ()
 
 Type ()
 
 memType ()
 
 staff ()
 
 SSI ()
 
 Purchases ()
 
 NumberOfChecks ()
 
 memCoupons ()
 
 blueLine ()
 
 Shown ()
 
 LastChange ()
 
 id ()
 
- 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 Member Functions

 hookAddColumnChargeLimit ()
 
- Protected Member Functions inherited from BasicModel
 getMeta ($type, $dbms)
 
 validateOp ($operator)
 
 insertRecord ()
 
 updateRecord ()
 
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 loadHooks ()
 

Protected Attributes

 $name = 'custdata'
 
 $preferred_db = 'op'
 
 $columns
 
 $unique = array('CardNo','personNum')
 
 $normalize_lanes = true
 
- 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
 

Member Data Documentation

CustdataModel::$columns
protected
Initial value:
= array(
'CardNo' => array('type'=>'INT','index'=>True),
'personNum' => array('type'=>'TINYINT'),
'LastName' => array('type'=>'VARCHAR(30)','index'=>True),
'FirstName' => array('type'=>'VARCHAR(30)'),
'CashBack' => array('type'=>'MONEY'),
'Balance' => array('type'=>'MONEY'),
'Discount' => array('type'=>'SMALLINT'),
'MemDiscountLimit' => array('type'=>'MONEY','default'=>0),
'ChargeLimit' => array('type'=>'MONEY','default'=>0),
'ChargeOk' => array('type'=>'TINYINT','default'=>0),
'WriteChecks' => array('type'=>'TINYINT','default'=>1),
'StoreCoupons' => array('type'=>'TINYINT','default'=>1),
'Type' => array('type'=>'VARCHAR(10)','default'=>"'PC'"),
'memType' => array('type'=>'TINYINT'),
'staff' => array('type'=>'TINYINT','default'=>0),
'SSI' => array('type'=>'TINYINT','default'=>0),
'Purchases' => array('type'=>'MONEY','default'=>0),
'NumberOfChecks' => array('type'=>'SMALLINT','default'=>0),
'memCoupons' => array('type'=>'INT','default'=>1),
'blueLine' => array('type'=>'VARCHAR(50)'),
'Shown' => array('type'=>'TINYINT','default'=>1),
'LastChange' => array('type'=>'TIMESTAMP'),
'id' => array('type'=>'INT','primary_key'=>True,'default'=>0,'increment'=>True)
)
CustdataModel::$unique = array('CardNo','personNum')
protected

Use this instead of primary key for identifying records


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