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

Public Member Functions

 name ()
 
 pushToLanesCoopCred ()
 
 programID ()
 
 cardNo ()
 
 creditBalance ()
 
 creditLimit ()
 
 maxCreditBalance ()
 
 creditOK ()
 
 inputOK ()
 
 transferOK ()
 
 isBank ()
 
 modified ()
 
 modifiedBy ()
 
 membershipID ()
 
- 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 = "CCredMemberships"
 
 $unique = array('cardNo','programID')
 
 $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 ()
 

Member Data Documentation

CCredMembershipsModel::$columns
protected
Initial value:
= array(
'programID' => array('type'=>'SMALLINT(6)', 'not_null'=>True,
'default'=>0, 'index'=>True),
'cardNo' => array('type'=>'INT(11)', 'not_null'=>True, 'default'=>0,
'index'=>True),
'creditBalance' => array('type'=>'MONEY', 'not_null'=>True, 'default'=>0),
'creditLimit' => array('type'=>'MONEY', 'not_null'=>True, 'default'=>0),
'maxCreditBalance' => array('type'=>'MONEY', 'not_null'=>True, 'default'=>0),
'creditOK' => array('type'=>'TINYINT', 'not_null'=>True, 'default'=>0),
'inputOK' => array('type'=>'TINYINT', 'not_null'=>True, 'default'=>0),
'transferOK' => array('type'=>'TINYINT', 'not_null'=>True, 'default'=>0),
'isBank' => array('type'=>'TINYINT', 'not_null'=>True, 'default'=>0),
'modified' => array('type'=>'DATETIME', 'not_null'=>True,
'default'=>"'0000-00-00 00:00:00'"),
'modifiedBy' => array('type'=>'INT(11)', 'not_null'=>True, 'default'=>0),
'membershipID' => array('type'=>'INT(11)','primary_key'=>True,
'increment'=>True)
)

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