PluginProbe
Database Reset / 3.19
Database Reset v3.19
2.3.2 3.0 3.0.1 3.0.2 3.1 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 trunk 1.0 1.2 1.2.1 1.2.2 1.3 1.4 2.0 2.1 All 27 releases
wordpress-database-reset / class-db-reset-manager.php

class-db-reset-manager.php in Database Reset 3.19, at class-db-reset-manager.php

31 lines 497 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! class_exists( 'DB_Reset_Manager' ) ) :
4
5 class DB_Reset_Manager {
6
7 private $version;
8
9 public function __construct( $version ) {
10 $this->version = $version;
11 }
12
13 public function run() {
14 if ( is_admin() ) {
15 $this->load_admin();
16 }
17 }
18
19 private function load_admin() {
20 $admin = new DB_Reset_Admin( $this->get_version() );
21 $admin->run();
22 }
23
24 private function get_version() {
25 return $this->version;
26 }
27
28 }
29
30 endif;
31