CORE POS - IS4C
The CORE POS front end
Public Member Functions | Protected Attributes | List of all members
HouseCouponsModel Class Reference
Inheritance diagram for HouseCouponsModel:
BasicModel

Public Member Functions

 coupID ()
 
 description ()
 
 startDate ()
 
 endDate ()
 
 limit ()
 
 memberOnly ()
 
 discountType ()
 
 discountValue ()
 
 minType ()
 
 minValue ()
 
 department ()
 
 auto ()
 
- Public Member Functions inherited from BasicModel
 db ()
 
 preferredDB ()
 
 __construct ($con)
 
 create ()
 
 createIfNeeded ($db_name)
 
 load ()
 
 reset ()
 
 getColumns ()
 
 getName ()
 
 find ($sort='', $reverse=false)
 
 delete ()
 
 save ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 generate ($filename)
 
 newModel ($name)
 
 getModels ()
 

Protected Attributes

 $name = "houseCoupons"
 
 $preferred_db = 'op'
 
 $columns
 
- Protected Attributes inherited from BasicModel
 $name
 
 $columns = array()
 
 $unique = array()
 
 $meta_types
 
 $connection = false
 
 $instance = array()
 
 $preferred_db = ''
 

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)
 
 insertRecord ()
 
 updateRecord ()
 

Member Data Documentation

HouseCouponsModel::$columns
protected
Initial value:
= array(
'coupID' => array('type'=>'INT', 'primary_key'=>true),
'description' => array('type'=>'VARCHAR(30)'),
'startDate' => array('type'=>'DATETIME'),
'endDate' => array('type'=>'DATETIME'),
'limit' => array('type'=>'SMALLINT'),
'memberOnly' => array('type'=>'SMALLINT'),
'discountType' => array('type'=>'VARCHAR(2)'),
'discountValue' => array('type'=>'MONEY'),
'minType' => array('type'=>'VARCHAR(2)'),
'minValue' => array('type'=>'MONEY'),
'department' => array('type'=>'INT'),
'auto' => array('type'=>'TINYINT', 'default'=>0),
)

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