Repository URL to install this package:
|
Version:
0.2.1764850649 ▾
|
<?php
namespace FuseWP\Core;
final class Core
{
const sync_table_name = 'fusewp_sync';
const sync_log_table_name = 'fusewp_sync_log';
const queue_table_name = 'fusewp_queue_jobs';
public function __construct()
{
Base::get_instance();
}
public static function sync_rule_db_table()
{
global $wpdb;
return $wpdb->prefix . self::sync_table_name;
}
public static function sync_log_db_table()
{
global $wpdb;
return $wpdb->prefix . self::sync_log_table_name;
}
public static function queue_db_table()
{
global $wpdb;
return $wpdb->prefix . self::queue_table_name;
}
public static function get_instance()
{
static $instance = null;
if (is_null($instance)) {
$instance = new self();
}
return $instance;
}
public static function init()
{
Core::get_instance();
do_action('fusewp_loaded');
}
}