forked from yakamara/ycom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.php
32 lines (24 loc) · 819 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
29
30
31
32
<?php
/**
* @var rex_addon $this
* @psalm-scope-this rex_addon
*/
rex_yform_manager_table::deleteCache();
$content = rex_file::get(rex_path::addon('ycom', 'install/tablesets/yform_user.json'));
if (is_string($content) && '' != $content) {
rex_yform_manager_table_api::importTablesets($content);
}
// old plugin docs still exists ? -> delete
$pluginDocs = __DIR__ . '/plugins/docs';
if (file_exists($pluginDocs)) {
rex_dir::delete($pluginDocs);
}
foreach ($this->getInstalledPlugins() as $plugin) {
// use path relative to __DIR__ to get correct path in update temp dir
$file = __DIR__ . '/plugins/' . $plugin->getName() . '/install.php';
if (file_exists($file)) {
$plugin->includeFile($file);
}
}
// rex_yform_manager_table_api::generateTablesAndFields();
rex_delete_cache();