CORE POS - Fannie
The CORE POS back end
Public Member Functions | List of all members
LoadSampleTrans Class Reference

Public Member Functions

 loadData ($rowlimit=0)
 

Member Function Documentation

LoadSampleTrans::loadData (   $rowlimit = 0)

Load sample transaction data

Parameters
$rowlimit[int, optional] only import this many records
Returns
[boolean] success

Requires php_zip extension to unpack the sample data.

The sample data set includes 144,866 records with days numbered 1-31. Each record is loaded twice: once in the current month and once in the previous month. For instance, running this in June will result in fully populated (although duplicate) data for both May and June. This should be sufficient for most demo and testing purposes. Loading nearly 300k records does take a while though.

This does not handle rotation/archiving yet.

Data is loaded into unit_test_trans.dtransactions. This is not configurable and is intended to avoid catastrophic mistakes. This should never be pointed directly at a production database.

Note: sample data is dated 1900-07-01 through 1900-07-31


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