Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
skel
include
class_install_plugin.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of NOALYSS.
5
*
6
* NOALYSS is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* NOALYSS is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with NOALYSS; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*/
20
/* $Revision$ */
21
22
// Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
23
24
/**
25
* @file
26
* @brief install the ... (SKEL plugin)
27
*
28
*/
29
class
SKEL_Install
30
{
31
32
function
__construct
(
$cn
)
33
{
34
$this->db =
$cn
;
35
}
36
37
function
install
()
38
{
39
$file
= dirname(__FILE__);
40
$this->db->execute_script(
$file
.
'/../sql/install.sql'
);
41
}
42
43
function
upgrade
($p_version)
44
{
45
global
$cn
;
46
$cur_version = $cn->get_value(
'select max(version_id) from skel.version'
);
47
$cur_version++;
48
$file
= dirname(__FILE__);
49
for
($e = $cur_version; $e <= $p_version; $e++)
50
{
51
$this->db->execute_script(
$file
.
'/../sql/upgrade'
. $e .
'.sql'
);
52
}
53
}
54
55
}
56
57
?>
SKEL_Install
Definition:
class_install_plugin.php:29
SKEL_Install\__construct
__construct($cn)
Definition:
class_install_plugin.php:32
SKEL_Install\install
install()
Definition:
class_install_plugin.php:37
SKEL_Install\upgrade
upgrade($p_version)
Definition:
class_install_plugin.php:43
$file
$file
Definition:
import_bank.php:60
$cn
global $cn
Definition:
amortis_constant.php:12
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6