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

Public Member Functions

 __construct ($con)
 
 setDate ($year, $month)
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
 create ()
 
 datetime ()
 
 store_id ()
 
 register_no ()
 
 emp_no ()
 
 trans_no ()
 
 upc ()
 
 description ()
 
 trans_type ()
 
 trans_subtype ()
 
 trans_status ()
 
 department ()
 
 quantity ()
 
 scale ()
 
 cost ()
 
 unitPrice ()
 
 total ()
 
 regPrice ()
 
 tax ()
 
 foodstamp ()
 
 discount ()
 
 memDiscount ()
 
 discountable ()
 
 discounttype ()
 
 voided ()
 
 percentDiscount ()
 
 ItemQtty ()
 
 volDiscType ()
 
 volume ()
 
 VolSpecial ()
 
 mixMatch ()
 
 matched ()
 
 memType ()
 
 staff ()
 
 numflag ()
 
 charflag ()
 
 card_no ()
 
 trans_id ()
 
 pos_row_id ()
 
 store_row_id ()
 
- Public Member Functions inherited from DTransactionsModel
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
 dlogMode ($switch)
 
 normalizeLog ($view_name, $table_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 doc ()
 
 datetime ()
 
 store_id ()
 
 register_no ()
 
 emp_no ()
 
 trans_no ()
 
 upc ()
 
 description ()
 
 trans_type ()
 
 trans_subtype ()
 
 trans_status ()
 
 department ()
 
 quantity ()
 
 scale ()
 
 cost ()
 
 unitPrice ()
 
 total ()
 
 regPrice ()
 
 tax ()
 
 foodstamp ()
 
 discount ()
 
 memDiscount ()
 
 discountable ()
 
 discounttype ()
 
 voided ()
 
 percentDiscount ()
 
 ItemQtty ()
 
 volDiscType ()
 
 volume ()
 
 VolSpecial ()
 
 mixMatch ()
 
 matched ()
 
 memType ()
 
 staff ()
 
 numflag ()
 
 charflag ()
 
 card_no ()
 
 trans_id ()
 
 pos_row_id ()
 
 store_row_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 Attributes

 $name = "__needs_initialization"
 
 $preferred_db = 'arch'
 
- Protected Attributes inherited from DTransactionsModel
 $name = 'dtransactions'
 
 $preferred_db = 'trans'
 
 $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

- Static Public Member Functions inherited from DTransactionsModel
static selectDlog ($start, $end=false, $where=false)
 
static select_dlog ($start, $end=false, $where=false)
 
static selectDtrans ($start, $end=false, $where=false)
 
static select_dtrans ($start, $end=false, $where=false)
 
static aggregateDlog (SQLManager $connection, $start_date, $end_date, stdclass $where, $groupby=array())
 
static aggregateDtrans (SQLManager $connection, $start_date, $end_date, stdclass $where, $groupby=array())
 
static aggregateStruct (SQLManager $connection, $dlog, $start_date, $end_date, stdclass $where, $groupby=array())
 
- 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 Function Documentation

MonthlyArchiveModel::create ( )

Override BasicModel::create to ensure date settings are present

MonthlyArchiveModel::normalize (   $db_name,
  $mode = BasicModel::NORMALIZE_MODE_CHECK,
  $doCreate = false 
)

Use DTransactionsModel to normalize same-schema tables

MonthlyArchiveModel::setDate (   $year,
  $month 
)

Initialize year and month to establish table name

Parameters
$year[int] year
$month[int] month

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