/**
  * Constructor
  *
  * @since    1.0.0
  */
 protected function __construct()
 {
     self::$model_sett = LeafletLayers_Model_Admin_Settings::get_instance();
     $this->register_hook_callbacks();
     self::$markers_js = LeafletLayers_Model::get_markers_json();
     self::$leafletlayers_groups = LeafletLayers_Model::get_groups(false);
 }
 /**
  * Constructor
  *
  * @since    1.0.0
  */
 protected function __construct()
 {
     static::$hook_suffix = 'settings_page_' . LeafletLayers::PLUGIN_ID;
     $this->register_hook_callbacks();
     $this->model = LeafletLayers_Model_Admin_Settings::get_instance();
 }
 /**
  * Fired when user uninstalls the plugin, called in uninstall.php file
  *
  * @since    1.0.0
  */
 public static function uninstall_plugin()
 {
     require_once dirname(plugin_dir_path(__FILE__)) . '/includes/class-leafletlayers.php';
     require_once dirname(plugin_dir_path(__FILE__)) . '/models/class-leafletlayers-model.php';
     require_once dirname(plugin_dir_path(__FILE__)) . '/models/admin/class-leafletlayers-model-admin.php';
     require_once dirname(plugin_dir_path(__FILE__)) . '/models/admin/class-leafletlayers-model-admin-settings.php';
     global $wpdb;
     $table_name = $wpdb->prefix . 'leafletlayers_markers';
     $table_name_groups = $wpdb->prefix . 'leafletlayers_markers_groups';
     $wpdb->query("DROP TABLE IF EXISTS {$table_name}; DROP TABLE IF EXISTS {$table_name_groups};");
     LeafletLayers_Model_Admin_Settings::delete_settings();
 }