@@ 43-59 (lines=17) @@ | ||
40 | * |
|
41 | * @return bool true if ready to install, false if not |
|
42 | */ |
|
43 | function xoops_module_pre_install_xoopspartners(XoopsModule $xoopsModule) |
|
44 | { |
|
45 | if (!class_exists('XoopspartnersUtilities')) { |
|
46 | xoops_load('utilities', 'xoopspartners'); |
|
47 | } |
|
48 | ||
49 | //check for minimum XOOPS version |
|
50 | if (!XoopspartnersUtilities::checkXoopsVer($xoopsModule)) { |
|
51 | return false; |
|
52 | } |
|
53 | // check for minimum PHP version |
|
54 | if (!XoopspartnersUtilities::checkPHPVer($xoopsModule)) { |
|
55 | return false; |
|
56 | } |
|
57 | ||
58 | return true; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * |
|
@@ 92-108 (lines=17) @@ | ||
89 | * |
|
90 | * @return bool true if successfully ready to update module, false if not |
|
91 | */ |
|
92 | function xoops_module_pre_update_xoopspartners(XoopsModule $module) |
|
93 | { |
|
94 | if (!class_exists('XoopspartnersUtilities')) { |
|
95 | xoops_load('utilities', 'xoopspartners'); |
|
96 | } |
|
97 | ||
98 | //check for minimum XOOPS version |
|
99 | if (!XoopspartnersUtilities::checkXoopsVer($xoopsModule)) { |
|
100 | return false; |
|
101 | } |
|
102 | // check for minimum PHP version |
|
103 | if (!XoopspartnersUtilities::checkPHPVer($xoopsModule)) { |
|
104 | return false; |
|
105 | } |
|
106 | ||
107 | return true; |
|
108 | } |
|
109 | ||
110 | /** |
|
111 | * |