forked from thielpeter/flexshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.php
39 lines (32 loc) · 1.1 KB
/
install.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
<?php
/**
* FlexShop.
*
* @author jpeter.thiel@gmail.com
* @package redaxo\flex_shop
*
* @var rex_addon $this
*/
$content = rex_file::get(rex_path::addon('flexshop', 'install/tablesets/rex_flexshop_object.json'));
if ($content) {
rex_yform_manager_table_api::importTablesets($content);
}
$content = rex_file::get(rex_path::addon('flexshop', 'install/tablesets/rex_flexshop_category.json'));
if ($content) {
rex_yform_manager_table_api::importTablesets($content);
}
$content = rex_file::get(rex_path::addon('flexshop', 'install/tablesets/rex_flexshop_order.json'));
if ($content) {
rex_yform_manager_table_api::importTablesets($content);
}
$content = rex_file::get(rex_path::addon('flexshop', 'install/tablesets/rex_flexshop_country.json'));
if ($content) {
rex_yform_manager_table_api::importTablesets($content);
$file = rex_path::addon('flexshop').'install/sql/countries.sql';
rex_sql_util::importDump($file);
}
rex_yform_manager_table::deleteCache();
if (!class_exists('rex_flexshop_settings')) {
require_once 'lib/rex_flexshop_settings.php';
}
rex_flexshop_settings::install();