-
Notifications
You must be signed in to change notification settings - Fork 1
/
Backup24.php
executable file
·43 lines (37 loc) · 1.29 KB
/
Backup24.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
<?php
/*
* This file is part of MythicalSystemsFramework.
* Please view the LICENSE file that was distributed with this source code.
*
* (c) MythicalSystems <mythicalsystems.xyz> - All rights reserved
* (c) NaysKutzu <nayskutzu.xyz> - All rights reserved
* (c) Cassian Gherman <nayskutzu.xyz> - All rights reserved
*
* You should have received a copy of the MIT License
* along with this program. If not, see <https://opensource.org/licenses/MIT>.
*/
use MythicalSystemsFramework\Kernel\Logger;
use MythicalSystemsFramework\Kernel\LoggerTypes;
use MythicalSystemsFramework\Kernel\LoggerLevels;
use MythicalSystemsFramework\Plugins\PluginBuilder;
class Backup24 implements PluginBuilder
{
public function Main(): void
{
}
public function Event(MythicalSystemsFramework\Plugins\PluginEvent $eventHandler): void
{
}
public function onInstall(): void
{
require __DIR__ . '/ClassHandler.php';
ClassHandler::createTableIfNotExist();
Logger::log(LoggerLevels::INFO, LoggerTypes::PLUGIN, 'Backup24 plugin installed');
}
public function onUninstall(): void
{
require __DIR__ . '/ClassHandler.php';
ClassHandler::dropTable();
Logger::log(LoggerLevels::INFO, LoggerTypes::PLUGIN, 'Backup24 plugin uninstalled');
}
}