-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.php
28 lines (23 loc) · 906 Bytes
/
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
<?php
/* Tablesets aktualisieren */
rex_yform_manager_table_api::importTablesets(rex_file::get(rex_path::addon('qanda', 'install/rex_qanda.tableset.json')));
rex_yform_manager_table::deleteCache();
/*
$modules = scandir(rex_path::addon('qanda').'module');
foreach ($modules as $module) {
if ('.' == $module || '..' == $module) {
continue;
}
$module_array = json_decode(rex_file::get(rex_path::addon('qanda').'module/'.$module), 1);
rex_sql::factory()->setDebug(0)->setTable('rex_module')
->setValue('name', $module_array['name'])
->setValue('key', $module_array['key'])
->setValue('input', $module_array['input'])
->setValue('output', $module_array['output'])
->setValue('createuser', '')
->setValue('updateuser', 'qanda')
->setValue('createdate', date('Y-m-d H:i:s'))
->setValue('updatedate', date('Y-m-d H:i:s'))
->insertOrUpdate();
}
*/