-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimpletest_setup.php
77 lines (57 loc) · 904 Bytes
/
simpletest_setup.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* @file
* Install, update and uninstall functions for the "simpletest" plugin.
*/
if(!defined('e107_INIT'))
{
exit;
}
/**
* Class simpletest_setup.
*/
class simpletest_setup
{
/**
* This function is called before plugin table has been created
* by the simpletest_sql.php file.
*
* @param array $var
*/
function install_pre($var)
{
}
/**
* This function is called after plugin table has been created
* by the simpletest_sql.php file.
*
* @param array $var
*/
function install_post($var)
{
}
function uninstall_options()
{
}
function uninstall_post($var)
{
}
/**
* Trigger an upgrade alert or not.
*
* @param array $var
*
* @return bool
* True to trigger an upgrade alert, and false to not.
*/
function upgrade_required($var)
{
return false;
}
function upgrade_pre($var)
{
}
function upgrade_post($var)
{
}
}