ReplicationGui
class ReplicationGui (View source)
Functions for the replication GUI
Methods
returns HTML for error message
returns HTML for primary replication
returns HTML for primary replication configuration
returns HTML for replica replication configuration
returns HTML code for selecting databases
returns HTML for changing primary
This function returns html code for table with replication status.
get the correct username and hostname lengths for this MySQL server
returns html code to add a replication replica user to the primary
handle control requests
No description
No description
No description
Details
__construct(Replication $replication, Template $template)
No description
string
getHtmlForErrorMessage()
returns HTML for error message
string
getHtmlForPrimaryReplication(string|null $connection, bool $hasReplicaClearScreen, string|null $primaryAddUser, string|null $username, string|null $hostname)
returns HTML for primary replication
string
getHtmlForPrimaryConfiguration()
returns HTML for primary replication configuration
string
getHtmlForReplicaConfiguration(string|null $connection, bool $serverReplicaStatus, array $serverReplicaReplication, bool $replicaConfigure)
returns HTML for replica replication configuration
string
getHtmlForReplicationDbMultibox()
returns HTML code for selecting databases
string
getHtmlForReplicationChangePrimary(string $submitName)
returns HTML for changing primary
string
getHtmlForReplicationStatusTable(string|null $connection, string $type, bool $isHidden = false, bool $hasTitle = true)
This function returns html code for table with replication status.
array
getUsernameHostnameLength()
get the correct username and hostname lengths for this MySQL server
string
getHtmlForReplicationPrimaryAddReplicaUser(string|null $postUsername, string|null $hostname)
returns html code to add a replication replica user to the primary
void
handleControlRequest(bool $srTakeAction, bool $replicaChangePrimary, bool $srReplicaServerControl, string|null $srReplicaAction, bool $srReplicaSkipError, int $srSkipErrorsCount, string|null $srReplicaControlParam, string $username, string $pmaPassword, string $hostname, int $port)
handle control requests
bool
handleRequestForReplicaChangePrimary(string $username, string $pmaPassword, string $hostname, int $port)
No description
bool
handleRequestForReplicaServerControl(string|null $srReplicaAction, string|null $control)
No description
bool
handleRequestForReplicaSkipError(int $srSkipErrorsCount)
No description