1 | <?php |
||
21 | class Auto_Load_Next_Post_Install { |
||
22 | |||
23 | /** |
||
24 | * Plugin version. |
||
25 | * |
||
26 | * @access private |
||
27 | * @static |
||
28 | * @since 1.4.10 |
||
29 | * @var string |
||
30 | */ |
||
31 | private static $current_version; |
||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @since 1.0.0 |
||
37 | * @access public |
||
38 | */ |
||
39 | public function __construct() { |
||
46 | |||
47 | /** |
||
48 | * Check plugin version and run the updater if necessary. |
||
49 | * |
||
50 | * This check is done on all requests and runs if the versions do not match. |
||
51 | * |
||
52 | * @access public |
||
53 | * @static |
||
54 | * @since 1.4.10 |
||
55 | */ |
||
56 | public static function check_version() { |
||
62 | |||
63 | /** |
||
64 | * Install Auto Load Next Post. |
||
65 | * |
||
66 | * @access public |
||
67 | * @static |
||
68 | * @since 1.0.0 |
||
69 | * @version 1.4.10 |
||
70 | */ |
||
71 | public static function install() { |
||
100 | |||
101 | /** |
||
102 | * Update plugin version to current. |
||
103 | * |
||
104 | * @access private |
||
105 | * @static |
||
106 | */ |
||
107 | private static function update_version() { |
||
110 | |||
111 | /** |
||
112 | * Set the time the plugin was installed. |
||
113 | * |
||
114 | * @access public |
||
115 | * @static |
||
116 | * @since 1.4.4 |
||
117 | * @version 1.4.10 |
||
118 | */ |
||
119 | public static function set_install_date() { |
||
122 | |||
123 | /** |
||
124 | * Default Options |
||
125 | * |
||
126 | * Sets up the default options defined on the settings pages. |
||
127 | * |
||
128 | * @access public |
||
129 | * @static |
||
130 | * @since 1.0.0 |
||
131 | */ |
||
132 | public static function create_options() { |
||
147 | |||
148 | /** |
||
149 | * Runs when the plugin is initialized. |
||
150 | * |
||
151 | * @access public |
||
152 | * @since 1.0.0 |
||
153 | */ |
||
154 | public static function add_rewrite_endpoint() { |
||
160 | |||
161 | } // END if class. |
||
162 | |||
166 |