CORE POS - Fannie
The CORE POS back end
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
DTransactionsModel Class Reference
Inheritance diagram for DTransactionsModel:
BasicModel BigArchiveModel DLog15Model DLogModel MonthlyArchiveModel SatTransModel SuspendedModel TransArchiveModel DLog90ViewModel DLogBigModel MonthlyDLogModel SuspendedTodayModel

Public Member Functions

 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
 dlogMode ($switch)
 
 normalizeLog ($view_name, $table_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 doc ()
 
- Public Member Functions inherited from BasicModel
 __construct ($con)
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 getModels ()
 
 setConnectionByName ($db_name)
 

Static Public Member Functions

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)
 

Protected Attributes

 $name = 'dtransactions'
 
 $preferred_db = 'trans'
 
 $columns
 
- Protected Attributes inherited from BasicModel
 $normalize_lanes = false
 
 $currently_normalizing_lane = false
 

Additional Inherited Members

- Public Attributes inherited from BasicModel
const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 
- Protected Member Functions inherited from BasicModel
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 loadHooks ()
 
 afterNormalize ($db_name, $mode)
 

Member Function Documentation

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

Overrides (extends) the base function to check multiple tables that should all have identical or similar structure after doing a normal run of the base.

DTransactionsModel::normalizeLog (   $view_name,
  $table_name,
  $mode = BasicModel::NORMALIZE_MODE_CHECK 
)

Rebuild dlog style views

Parameters
$view_namename of the view
$table_nameunderlying table
$modethe normalization mode. See BasicModel.

The view changes the column "datetime" to "tdate" and adds a "trans_num" column. Otherwise it includes all the columns from dtransactions. Columns "trans_type" and "trans_subtype" still have translations to fix older records but everyting else passes through as-is.


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