PluginProbe
OPcache Manager / 3.3.0
OPcache Manager v3.3.0
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 2.0.0 2.1.0 2.10.0 2.11.0 2.12.0 2.13.0 2.13.1 2.14.0 2.2.0 2.3.0 2.3.1 2.3.2 2.4.0 2.5.0 2.6.0 All 36 releases
opcache-manager / includes / plugin / class-uninstaller.php

class-uninstaller.php in OPcache Manager 3.3.0, at includes/plugin/class-uninstaller.php

40 lines 723 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin deletion handling.
4 *
5 * @package Plugin
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 1.0.0
8 */
9
10 namespace OPcacheManager\Plugin;
11
12 use OPcacheManager\System\Option;
13 use OPcacheManager\System\User;
14 use OPcacheManager\Plugin\Feature\Schema;
15
16 /**
17 * Fired during plugin deletion.
18 *
19 * This class defines all code necessary to run during the plugin's deletion.
20 *
21 * @package Plugin
22 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
23 * @since 1.0.0
24 */
25 class Uninstaller {
26
27 /**
28 * Delete the plugin.
29 *
30 * @since 1.0.0
31 */
32 public static function uninstall() {
33 Option::site_delete_all();
34 User::delete_all_meta();
35 $schema = new Schema();
36 $schema->finalize();
37 }
38
39 }
40