SproutCMS

This is the code documentation for the SproutCMS project

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.

Source code (8 results)

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 45: use Sprout\Helpers\Replication;
Line 873: $res = Replication::postFileUpdate($file['filename']);

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 45: use Sprout\Helpers\Replication;
Line 873: $res = Replication::postFileUpdate($file['filename']);

/sprout/Controllers/AdminController.php   Highlighted file source

Line 49: use Sprout\Helpers\Replication;
Line 90: $admin_url = Replication::adminUrl();

/sprout/Controllers/AdminController.php   Highlighted file source

Line 49: use Sprout\Helpers\Replication;
Line 90: $admin_url = Replication::adminUrl();

/sprout/Helpers/File.php   Highlighted file source

Line 901: $result = Replication::postFileUpdate($sized_filename);

/sprout/Helpers/FilesBackendDirectory.php   Highlighted file source

Line 211: $res = Replication::postFileUpdate($filename);
Line 235: $res = Replication::postFileUpdate($filename);
Line 255: $res = Replication::postFileUpdate($filename);
Line 314: $res = Replication::postFileUpdate($filename);

/sprout/Helpers/FilesBackendDirectory.php   Highlighted file source

Line 211: $res = Replication::postFileUpdate($filename);
Line 235: $res = Replication::postFileUpdate($filename);
Line 255: $res = Replication::postFileUpdate($filename);
Line 314: $res = Replication::postFileUpdate($filename);

/sprout/Helpers/Replication.php   Highlighted file source

Line 20: * Functions for database replication.
Line 23: * This default class has replication disabled.
Line 26: class Replication
Line 40: throw new Exception('Replication not enabled');
Line 49: throw new Exception('Replication not enabled');
Line 66: * Handle replication of a file to other servers.
Line 67: * This is always called, even if replication is not enabled above.

A total of 24 lines in 8 files were found