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.
This is the code documentation for the SproutCMS project
Search documentation |
class ReplicationFunctions 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.
Extending this class<?php /** * New class description goes here * * @author Your Name, 2024-11-25 **/ class NewClassName extends Replication { /** * Return the IP address or hostname of the write server to use **/ public function getWriteHost () { // Method code goes here } /** * Return the IP address or hostname of the read server to use **/ public function getReadHost () { // Method code goes here } /** * Handle replication of a file to other servers. * This is always called, even if replication is not enabled above. **/ public function postFileUpdate (string $filename) { // Method code goes here } /** * 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 function adminUrl () { // Method code goes here } public function enabled () { // Method code goes here } } ?> |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |