|
| 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) |
| |
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.
| static SyncLanesForPlugin::pullTable |
( |
|
$table, |
|
|
|
$db = 'trans', |
|
|
|
$truncate = self::TRUNCATE_SOURCE, |
|
|
|
$one_lane = 0 |
|
) |
| |
|
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) |
| $one_lane | integer (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
-
| $table | string table name |
| $db | string 'op' or 'trans' (default is 'op') |
| $truncate | integer (default is TRUNCATE_DESTINATION) |
| $one_lane | integer (default is 0, do all lanes if > 0, the lane to do) |
- Returns
- array
- sending => boolean attempted to copy table
- messages => string result information
| 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:
- fannie/modules/plugins2.0/CoopCred/sync/SyncLanesForPlugin.php