XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_HttpContext.class.php
1<?php
10
11if (!defined('XOOPS_ROOT_PATH')) {
12 exit();
13}
14
15require_once XOOPS_ROOT_PATH . '/modules/legacy/kernel/Legacy_Module.class.php';
16
25{
30 public $mXoopsUser = null;
31
36 public $mModule = null;
37
44 public $mXoopsModule = null;
45
57 public $mXoopsConfig = [];
58
65 public $mModuleConfig = [];
66
74 public $mBaseRenderSystemName = '';
75
82 public function getXoopsConfig($id = null)
83 {
84 if (null != $id) {
85 //return isset($this->mXoopsConfig[$id]) ? $this->mXoopsConfig[$id] : null;
86 // null coalescing operator
87 return $this->mXoopsConfig[$id] ?? null;
88 }
89
91 }
92
102 // @disable-parser-inspector
103 // Note: X-app themes must use Base System Render version 2.3.0 !
104 public function setThemeName($name)
105 {
106 parent::setThemeName($name);
107 $this->mXoopsConfig['theme_set'] = $name;
108 $GLOBALS['xoopsConfig']['theme_set'] = $name;
109 }
110}
[Secret Agreement] The context class for Legacy which extends to keep Legacy-module-specific informat...
$mXoopsUser
[READ ONLY] XoopsUser - The current user profile object.
setThemeName($name)
Sets the name of the current theme.
$mXoopsConfig
[READ ONLY] Map Array - std::map<string, mixed>
$mModule
[READ ONLY] Legacy_AbstractModule - The current module instance.
getXoopsConfig($id=null)
Gets a value of XoopsConfig by $id.
$mXoopsModule
[READ ONLY] XoopsModule - The current Xoops Module object.