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

Static Public Member Functions

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

Public Attributes

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

Member Function Documentation

static COREPOS\Fannie\API\data\SyncLanes::pullTable (   $table,
  $db = 'trans',
  $truncate = self::TRUNCATE_SOURCE 
)
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)
Returns
array
  • sending => boolean attempted to copy table
  • messages => string result information
static COREPOS\Fannie\API\data\SyncLanes::pushTable (   $table,
  $db = 'op',
  $truncate = self::TRUNCATE_DESTINATION 
)
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)
Returns
array
  • sending => boolean attempted to copy table
  • messages => string result information

Member Data Documentation

const COREPOS\Fannie\API\data\SyncLanes::TRUNCATE_DESTINATION = 2

Truncate the destination table BEFORE inserting into it

const COREPOS\Fannie\API\data\SyncLanes::TRUNCATE_NONE = 0

Do not truncate any tables

const COREPOS\Fannie\API\data\SyncLanes::TRUNCATE_SOURCE = 1

Truncate the source table AFTER copying it


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