1: <?php
2: 3: 4: 5:
6: if (!defined('XOOPS_ROOT_PATH')) exit();
7: class Message_Module extends Legacy_ModuleAdapter
8: {
9: public function __construct(&$xoopsModule)
10: {
11: parent::Legacy_ModuleAdapter($xoopsModule);
12: }
13:
14: public function hasAdminIndex()
15: {
16: return true;
17: }
18:
19: public function getAdminIndex()
20: {
21:
22: $root = XCube_Root::getSingleton();
23: return $root->mController->getPreferenceEditUrl($this->mXoopsModule);
24: }
25:
26: public function getAdminMenu()
27: {
28: if ($this->_mAdminMenuLoadedFlag) {
29: return $this->mAdminMenu;
30: }
31: $root = XCube_Root::getSingleton();
32: $this->mAdminMenu[] = array(
33: 'link' => $root->mController->getPreferenceEditUrl($this->mXoopsModule),
34: 'title' => _PREFERENCES,
35: 'show' => true
36: );
37: $this->_mAdminMenuLoadedFlag = true;
38: return $this->mAdminMenu;
39: }
40: }
41: ?>