Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Pages
rapport_avance
include
class_rapav_install.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 rapport_advanced (RAPAV plugin)
27
*
28
*/
29
class
RAPAV_Install
30
{
31
function
__construct
(
$cn
)
32
{
33
$this->db=
$cn
;
34
}
35
function
install
()
36
{
37
$file
=dirname(__FILE__);
38
$this->db->execute_script(
$file
.
'/../sql/install.sql'
);
39
}
40
function
upgrade
($p_version)
41
{
42
global
$cn
;
43
$cur_version=$cn->get_value(
'select max(version_id) from rapport_advanced.version'
);
44
$cur_version++;
45
$file
=dirname(__FILE__);
46
for
($e=$cur_version;$e<=$p_version;$e++) {
47
$this->db->execute_script(
$file
.
'/../sql/upgrade'
.$e.
'.sql'
);
48
}
49
}
50
}
51
52
?>
RAPAV_Install\install
install()
Definition:
class_rapav_install.php:35
RAPAV_Install\upgrade
upgrade($p_version)
Definition:
class_rapav_install.php:40
RAPAV_Install\__construct
__construct($cn)
Definition:
class_rapav_install.php:31
$file
$file
Definition:
import_bank.php:60
RAPAV_Install
Definition:
class_rapav_install.php:29
$cn
global $cn
Definition:
amortis_constant.php:12
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6