XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Module.class.php
1<?php
2
3if (!defined('XOOPS_ROOT_PATH')) {
4 exit();
5}
6
7class LegacyRender_Module extends Legacy_ModuleAdapter
8{
9 public $mGetAdminMenu; // Declare the property
10
11 public function LegacyRender_Module(&$xoopsModule)
12 {
13 self::__construct($xoopsModule);
14 }
15
16 public function __construct(&$xoopsModule)
17 {
18 parent::__construct($xoopsModule);
19 $this->mGetAdminMenu = new XCube_Delegate();
20 $this->mGetAdminMenu->register('LegacyRender_Module.getAdminMenu');
21 }
22
23 public function getAdminMenu()
24 {
25 $menu = parent::getAdminMenu();
26 $this->mGetAdminMenu->call(new XCube_Ref($menu));
27
28 ksort($menu);
29
30 return $menu;
31 }
32}
Used for adapting $xoopsModule to imitate XOOPS2 responses.
getAdminMenu()
Gets an array having menus for the side menu of the control panel.
[Final] Used for the simple mechanism for common delegation in XCube.