XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Module.class.php
1<?php
12
13if (!defined('XOOPS_ROOT_PATH')) {
14 exit();
15}
16
18{
19 public function __construct($xoopsModule)
20 {
21 parent::__construct($xoopsModule);
22 }
23
24 public function hasAdminIndex()
25 {
26 //return true;
27 $root = XCube_Root::getSingleton();
28 return $root->mController->getHelpViewUrl($this->mXoopsModule);
29 }
30
31 public function getAdminIndex()
32 {
33 $root = XCube_Root::getSingleton();
34 return $root->mController->getPreferenceEditUrl($this->mXoopsModule);
35 }
36
41 public function getAdminMenu()
42 {
43 if ($this->_mAdminMenuLoadedFlag) {
44 return $this->mAdminMenu;
45 }
46 $root = XCube_Root::getSingleton();
47 $this->mAdminMenu[] = [
48 'link' => $root->mController->getPreferenceEditUrl($this->mXoopsModule),
49 'title' => _PREFERENCES,
50 'show' => true,
51 ];
52 $this->mAdminMenu[] = [
53 'link' => $root->mController->getHelpViewUrl($this->mXoopsModule),
54 'title' => _HELP,
55 'absolute' => true
56 ];
57 $this->_mAdminMenuLoadedFlag = true;
58 return $this->mAdminMenu;
59 }
60
61}
Used for adapting $xoopsModule to imitate XOOPS2 responses.
$mAdminMenu
Complex Array - cached.
hasAdminIndex()
[Final] Gets a value indicating whether this module has the page controller in the control panel side...
getAdminIndex()
Gets an absolute URL indicating the top page of this module for the control panel side.