CORE POS - Fannie
The CORE POS back end
Public Member Functions | List of all members
CoreWarehouseModel Class Reference
Inheritance diagram for CoreWarehouseModel:
BasicModel MemberSummaryModel SumDeptSalesByDayModel SumDiscountsByDayModel SumMemSalesByDayModel SumMemTypeSalesByDayModel SumRingSalesByDayModel SumTendersByDayModel SumUpcSalesByDayModel TransactionSummaryModel WarehouseDatesModel

Public Member Functions

 reload ($trans_db, $start_month, $start_year, $end_month=False, $end_year=False)
 
 refresh_data ($trans_db, $month, $year, $day=False)
 
- 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 ()
 

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

Member Function Documentation

CoreWarehouseModel::refresh_data (   $trans_db,
  $month,
  $year,
  $day = False 
)

Reload data for a specific month or day Subclasses should override

Parameters
$trans_dbName of Fannie trans_archive database
$monththe month
$yearthe year
$day(optional) if omitted reload entire month
CoreWarehouseModel::reload (   $trans_db,
  $start_month,
  $start_year,
  $end_month = False,
  $end_year = False 
)

Reload transaction data for the table

Parameters
$trans_dbName of Fannie trans_archive database
$start_monthstart reloading at this month
$start_yearsee $start_month
$end_month(optional) end reloading at this month defaults to current month
$end_year(optional) see $end_month

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