-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcookbook_setup.php
67 lines (53 loc) · 1.36 KB
/
cookbook_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
<?php
/*
* CookBook - an e107 plugin by Tijn Kuyper (http://www.tijnkuyper.nl)
*
* Released under the terms and conditions of the
* Apache License 2.0 (see LICENSE file or http://www.apache.org/licenses/LICENSE-2.0)
*
* Setup routines
*/
if(!class_exists("cookbook_setup"))
{
class cookbook_setup
{
function install_pre($var)
{
}
/**
* For inserting default database content during install after table has been created.
*/
function install_post($var)
{
/*$ret = e107::getXml(true)->e107Import(e_PLUGIN."cookbook/demodata.xml");
if(!empty($ret['success']))
{
e107::getMessage()->addSuccess("Succesfully imported demo data."); // TODO LAN
}
if(!empty($ret['failed']))
{
e107::getMessage()->addError("Failed to import demo data."); // TODO LAN
e107::getMessage()->addDebug(print_a($ret['failed'],true));
}*/
// TODO, RUN THIS QUERY FOR SEARCH TO FUNCTION
// FULLTEXT KEY (r_name, r_summary, r_ingredients, r_instructions)
}
function uninstall_options()
{
}
function uninstall_post($var)
{
}
/*
* Call During Upgrade Check. May be used to check for existance of tables etc and if not found return TRUE to call for an upgrade.
*
* @return bool true = upgrade required; false = upgrade not required
*/
function upgrade_required()
{
}
function upgrade_post($var)
{
}
}
}