-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgive-database-healthcheck.php
73 lines (64 loc) · 1.38 KB
/
give-database-healthcheck.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* Plugin Name: Give - Database HealthCheck
* Plugin URI: https://github.com/WordImpress/Give-Database-Healthcheck
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
* Author: WordImpress
* Author URI: https://wordimpress.com
* Version: 0.0.4
* Text Domain: give-database-healthcheck
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/WordImpress/Give-Database-Healthcheck
*
*/
final class Give_Database_HealthCheck {
/**
* Instance.
*
* @since
* @access private
* @var
*/
static private $instance;
/**
* Singleton pattern.
*
* @since
* @access private
*/
private function __construct() {
}
/**
* Get instance.
*
* @since
* @access static
* @return Give_Database_HealthCheck
*/
public static function get_instance() {
if ( null === static::$instance ) {
self::$instance = new static();
self::$instance->constants();
self::$instance->files();
}
return self::$instance;
}
/**
* Constant
*
* @since 0.0.1
*/
private function constants() {
define( 'GIVE_DATABASE_HealthCheck_DIR', plugin_dir_path( __FILE__ ) );
define( 'GIVE_DATABASE_HealthCheck_VERSION', '0.0.4' );
}
/**
* Files
*
* @since 0.0.1
*/
private function files() {
require_once GIVE_DATABASE_HealthCheck_DIR . 'admin/upgrades.php';
}
}
Give_Database_HealthCheck::get_instance();