CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | Public Attributes | List of all members
SyncLanesForPlugin Class Reference
Inheritance diagram for SyncLanesForPlugin:
SyncLanes COREPOS\Fannie\API\data\SyncLanes

Static Public Member Functions

static pushTable ($table, $db='op', $truncate=self::TRUNCATE_DESTINATION, $one_lane=0)
 
static push_table ($table, $db='op', $truncate=self::TRUNCATE_DESTINATION, $one_lane=0)
 
static pullTable ($table, $db='trans', $truncate=self::TRUNCATE_SOURCE, $one_lane=0)
 
static pull_table ($table, $db='trans', $truncate=self::TRUNCATE_SOURCE, $one_lane=0)
 

Public Attributes

const TRUNCATE_NONE = 0
 
const TRUNCATE_SOURCE = 1
 
const TRUNCATE_DESTINATION = 2
 

Detailed Description

Clones SyncLanes at this point, redefines everything. When issues sorted would like to replace $FCL2D/SyncLanes with this. Supports syncing a single lane. Uses extension .inc in sync/special instead of .php to avoid API scanning.

Member Function Documentation

static SyncLanesForPlugin::pullTable (   $table,
  $db = 'trans',
  $truncate = self::TRUNCATE_SOURCE,
  $one_lane = 0 
)
static

Copy a table from the lanes to the server

Parameters
$tablestring table name
$dbstring 'op' or 'trans' (default is 'trans')
$truncateinteger (default is TRUNCATE_SOURCE)
$one_laneinteger (default is 0, do all lanes if > 0, the lane to do)
Returns
array
  • sending => boolean attempted to copy table
  • messages => string result information NOT USED IN COOP CRED, not tested.
static SyncLanesForPlugin::pushTable (   $table,
  $db = 'op',
  $truncate = self::TRUNCATE_DESTINATION,
  $one_lane = 0 
)
static

Copy a table from the server to the lanes

Parameters
$tablestring table name
$dbstring 'op' or 'trans' (default is 'op')
$truncateinteger (default is TRUNCATE_DESTINATION)
$one_laneinteger (default is 0, do all lanes if > 0, the lane to do)
Returns
array
  • sending => boolean attempted to copy table
  • messages => string result information

Member Data Documentation

const SyncLanesForPlugin::TRUNCATE_DESTINATION = 2

Truncate the destination table BEFORE inserting into it

const SyncLanesForPlugin::TRUNCATE_NONE = 0

Do not truncate any tables

const SyncLanesForPlugin::TRUNCATE_SOURCE = 1

Truncate the source table AFTER copying it


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