class ReplicationGui

Functions for the replication GUI

Methods

__construct(Replication $replication, Template $template)

ReplicationGui constructor.

string
getHtmlForErrorMessage()

returns HTML for error message

string
getHtmlForMasterReplication()

returns HTML for master replication

string
getHtmlForMasterConfiguration()

returns HTML for master replication configuration

string
getHtmlForSlaveConfiguration(bool $serverSlaveStatus, array $serverSlaveReplication)

returns HTML for slave replication configuration

string
getHtmlForReplicationDbMultibox()

returns HTML code for selecting databases

string
getHtmlForReplicationChangeMaster(string $submitName)

returns HTML for changing master

string
getHtmlForReplicationStatusTable(string $type, boolean $isHidden = false, boolean $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
getHtmlForReplicationMasterAddSlaveUser()

returns html code to add a replication slave user to the master

void
handleControlRequest()

handle control requests

boolean
handleRequestForSlaveChangeMaster()

handle control requests for Slave Change Master

boolean
handleRequestForSlaveServerControl()

handle control requests for Slave Server Control

boolean
handleRequestForSlaveSkipError()

handle control requests for Slave Skip Error

Details

at line 34
__construct(Replication $replication, Template $template)

ReplicationGui constructor.

Parameters

Replication $replication Replication instance
Template $template Template instance

at line 45
string getHtmlForErrorMessage()

returns HTML for error message

Return Value

string HTML code

at line 67
string getHtmlForMasterReplication()

returns HTML for master replication

Return Value

string HTML code

at line 97
string getHtmlForMasterConfiguration()

returns HTML for master replication configuration

Return Value

string HTML code

at line 114
string getHtmlForSlaveConfiguration(bool $serverSlaveStatus, array $serverSlaveReplication)

returns HTML for slave replication configuration

Parameters

bool $serverSlaveStatus Whether it is Master or Slave
array $serverSlaveReplication Slave replication

Return Value

string HTML code

at line 198
string getHtmlForReplicationDbMultibox()

returns HTML code for selecting databases

Return Value

string HTML code

at line 219
string getHtmlForReplicationChangeMaster(string $submitName)

returns HTML for changing master

Parameters

string $submitName submit button name

Return Value

string HTML code

at line 244
string getHtmlForReplicationStatusTable(string $type, boolean $isHidden = false, boolean $hasTitle = true)

This function returns html code for table with replication status.

Parameters

string $type either master or slave
boolean $isHidden if true, then default style is set to hidden, default value false
boolean $hasTitle if true, then title is displayed, default true

Return Value

string HTML code

at line 313
array getUsernameHostnameLength()

get the correct username and hostname lengths for this MySQL server

Return Value

array username length, hostname length

at line 344
string getHtmlForReplicationMasterAddSlaveUser()

returns html code to add a replication slave user to the master

Return Value

string HTML code

at line 408
void handleControlRequest()

handle control requests

Return Value

void

at line 473
boolean handleRequestForSlaveChangeMaster()

handle control requests for Slave Change Master

Return Value

boolean

at line 547
boolean handleRequestForSlaveServerControl()

handle control requests for Slave Server Control

Return Value

boolean

at line 577
boolean handleRequestForSlaveSkipError()

handle control requests for Slave Skip Error

Return Value

boolean