« Back to Product

Documentation

IPS_GetReplicationMode

 int IPS_GetReplicationMode ()

Returns

Mode of the replication (0 (REPLICATION_MODE_PARALLEL): Parallel, 1 (REPLICATION_MODE_STANDBY): Standby)

Description

Warning

This function is intended for internal use only and may change or be removed at any time without notice.

The function returns the configured mode of the replication. In the mode Parallel, the slave is fully operational, in the mode Standby, its I/O instances remain in the status Standby and events are not executed until a failover.

If the replication is not active (IPS_IsReplicationActive), the value has no meaning.

Example

$modes = [REPLICATION_MODE_PARALLEL => "Parallel", REPLICATION_MODE_STANDBY => "Standby"];
echo "Mode: " . $modes[IPS_GetReplicationMode()];

/* e.g. returns:
Mode: Standby
*/
Any questions?