SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Replication

Functions for database replication.
I guess it could be used for cluster situations too.

This default class has replication disabled.
To enable, replace this class with your own.

Functions

NameVisibilityDescription
adminUrlpublic (static)Checks we are using the correct server for admin.
enabledpublic (static) 
getReadHostpublic (static)Return the IP address or hostname of the read server to use
getWriteHostpublic (static)Return the IP address or hostname of the write server to use
postFileUpdatepublic (static)Handle replication of a file to other servers.

public adminUrl

unknown Replication::adminUrl ( );

Checks we are using the correct server for admin.

Return false if the server is correct
Return the URL to redirect to if the server is incorrect.

public enabled

unknown Replication::enabled ( );

This function does not have a description

public getReadHost

void Replication::getReadHost ( );

Return the IP address or hostname of the read server to use

public getWriteHost

void Replication::getWriteHost ( );

Return the IP address or hostname of the write server to use

public postFileUpdate

bool Replication::postFileUpdate ( string $filename );

Handle replication of a file to other servers.
This is always called, even if replication is not enabled above.