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

Public Member Functions

 __construct ($con)
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
 create ()
 
 initPartitions ($year, $month)
 
 addPartition ($year, $month)
 
 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 = "bigArchive"
 
 $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

BigArchiveModel::addPartition (   $year,
  $month 
)

Add a partition to the table

Parameters
$year[int] year
$month[int] month
Returns
[boolean] success
BigArchiveModel::create ( )

Override BasicModel::create to add an initial partition when the table is first created

BigArchiveModel::initPartitions (   $year,
  $month 
)

Initialize monthly paritioning for the table

Parameters
$year[int] year
$month[int] month
Returns
[boolean] success
BigArchiveModel::normalize (   $db_name,
  $mode = BasicModel::NORMALIZE_MODE_CHECK,
  $doCreate = false 
)

Use DTransactionsModel to normalize same-schema tables


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