1 | <?php |
||
2 | /* |
||
3 | You may not change or alter any portion of this comment or credits |
||
4 | of supporting developers from this source code or any supporting source code |
||
5 | which is considered copyrighted (c) material of the original comment or credit authors. |
||
6 | |||
7 | This program is distributed in the hope that it will be useful, |
||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
10 | */ |
||
11 | |||
12 | /** |
||
13 | * wgGitHub module for xoops |
||
14 | * |
||
15 | * @copyright 2020 XOOPS Project (https://xooops.org) |
||
16 | * @license GPL 2.0 or later |
||
17 | * @package wggithub |
||
18 | * @since 1.0 |
||
19 | * @min_xoops 2.5.10 |
||
20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
||
21 | */ |
||
22 | |||
23 | /** |
||
24 | * return object |
||
25 | */ |
||
26 | |||
27 | $moduleDirName = \basename(\dirname(__DIR__)); |
||
28 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
||
29 | return (object)[ |
||
30 | 'name' => \mb_strtoupper($moduleDirName) . ' Module Configurator', |
||
31 | 'paths' => [ |
||
32 | 'dirname' => $moduleDirName, |
||
33 | 'admin' => \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
34 | 'modPath' => \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
||
35 | 'modUrl' => \XOOPS_URL . '/modules/' . $moduleDirName, |
||
0 ignored issues
–
show
|
|||
36 | 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
||
0 ignored issues
–
show
|
|||
37 | 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
||
0 ignored issues
–
show
|
|||
38 | ], |
||
39 | 'uploadFolders' => [ |
||
40 | XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
||
41 | ], |
||
42 | 'copyBlankFiles' => [ |
||
43 | ], |
||
44 | 'copyTestFolders' => [ |
||
45 | [\XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
||
46 | XOOPS_UPLOAD_PATH . '/' . $moduleDirName], |
||
47 | ], |
||
48 | 'templateFolders' => [ |
||
49 | '/templates/', |
||
50 | ], |
||
51 | 'oldFiles' => [ |
||
52 | ], |
||
53 | 'oldFolders' => [ |
||
54 | ], |
||
55 | 'renameTables' => [ |
||
56 | //'tablename_old' => 'tablename_new' |
||
57 | ], |
||
58 | 'renameColumns' => [ |
||
59 | //'tablename' => ['columnname_old' => 'columnname_new'], |
||
60 | ], |
||
61 | 'moduleStats' => [ |
||
62 | ], |
||
63 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'><img src='" . \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . "/assets/images/logo/logoModule.png' alt='XOOPS Project'></a>", |
||
64 | ]; |
||
65 |