ブログ - XOOPS 2.0.x 互換性グローバル変数
■Legacy_Controller で定義された下位互換用グローバル変数
・基本オブジェクトの取得
$root = XCube_Root::getSingleton()
$controller =& $root->mController
・基本オブジェクトの取得
$root = XCube_Root::getSingleton()
$controller =& $root->mController
_
xoopsUser
=>$root->mContext->mXoopsUser
xoopsUserIsAdmin
=>$root->mContext-mXoopsUser->isAdmin(1)
xoopsMemberHandler
=>xoops_gethandler('member')
member_handler
=>xoopsMemberHandler
xoopsModule
=>$root->mContext->mModule->mXoopsModule
xoopsModuleConfig
=>$root->mContext->mModule->mModuleConfig
xoopsDB
=>$controller->mDB
($controller is XCube_Controller)
xoopsConfig
=>$root->mContext->mXoopsConfig
config_handler
=>xoops_gethandler('config')
module_handler
=>xoops_gethandler('module')
xoopsRequestUri
=>なし($_SERVER['REQUEST_URI'])
xoopsDebugger
=>$controller->mDebugger
(mDebugger は宣言されていないような気がする...)
xoopsLogger
=>$controller->mLogger
($controller as Legacy_Controller)
xoopsSecurity
=>なし?
xoopsTheme['thename']
=>なし(xoopsConfig['theme_set'])
xoopsUser
=>$root->mContext->mXoopsUser
xoopsUserIsAdmin
=>$root->mContext-mXoopsUser->isAdmin(1)
xoopsMemberHandler
=>xoops_gethandler('member')
member_handler
=>xoopsMemberHandler
xoopsModule
=>$root->mContext->mModule->mXoopsModule
xoopsModuleConfig
=>$root->mContext->mModule->mModuleConfig
xoopsDB
=>$controller->mDB
($controller is XCube_Controller)
xoopsConfig
=>$root->mContext->mXoopsConfig
config_handler
=>xoops_gethandler('config')
module_handler
=>xoops_gethandler('module')
xoopsRequestUri
=>なし($_SERVER['REQUEST_URI'])
xoopsDebugger
=>$controller->mDebugger
(mDebugger は宣言されていないような気がする...)
xoopsLogger
=>$controller->mLogger
($controller as Legacy_Controller)
xoopsSecurity
=>なし?
xoopsTheme['thename']
=>なし(xoopsConfig['theme_set'])