|
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) |
|
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
-
$table | string table name |
$db | string 'op' or 'trans' (default is 'trans') |
$truncate | integer (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
-
$table | string table name |
$db | string 'op' or 'trans' (default is 'op') |
$truncate | integer (default is TRUNCATE_DESTINATION) |
- Returns
- array
- sending => boolean attempted to copy table
- messages => string result information
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:
- fannie/classlib2.0/data/SyncLanes.php