API - XOOPS 2.5.11 Beta 2
By monxoops.fr
menu.php File Reference

Namespaces

namespace  pm
 

Variables

 $path = dirname(dirname(dirname(__DIR__)))
 
 $dirname = basename(dirname(__DIR__))
 
 $module_handler = xoops_getHandler('module')
 
 $module = $module_handler->getByDirname($dirname)
 
 $pathIcon32 = $module->getInfo('icons32')
 
 $pathModuleAdmin = $module->getInfo('dirmoduleadmin')
 
 $pathLanguage = $path . $pathModuleAdmin
 
 if (!file_exists( $fileinc=$pathLanguage . '/language/' . $GLOBALS[ 'xoopsConfig'][ 'language'] . '/' . 'main.php'))
 
 $adminmenu = array()
 
 $i = 1
 
 $adminmenu [$i]['title'] = _PM_MI_INDEX
 
 $adminmenu [$i]['link'] = 'admin/admin.php'
 
 $adminmenu [$i]['icon'] = $pathIcon32 . '/home.png'
 
 $adminmenu [$i]['title'] = _PM_MI_PRUNE
 
 $adminmenu [$i]['link'] = 'admin/prune.php'
 
 $adminmenu [$i]['icon'] = $pathIcon32 . '/prune.png'
 
 $adminmenu [$i]['title'] = _PM_MI_ABOUT
 
 $adminmenu [$i]['link'] = 'admin/about.php'
 
 $adminmenu [$i]['icon'] = $pathIcon32 . '/about.png'
 

Variable Documentation

◆ $adminmenu [1/10]

$adminmenu = array()

◆ $adminmenu [2/10]

$adminmenu[ $i][ 'icon'] = $pathIcon32 . '/home.png'

◆ $adminmenu [3/10]

$adminmenu[ $i][ 'icon'] = $pathIcon32 . '/prune.png'

◆ $adminmenu [4/10]

$adminmenu[ $i][ 'icon'] = $pathIcon32 . '/about.png'

◆ $adminmenu [5/10]

$adminmenu[ $i][ 'link'] = 'admin/admin.php'

◆ $adminmenu [6/10]

$adminmenu[ $i][ 'link'] = 'admin/prune.php'

◆ $adminmenu [7/10]

$adminmenu[ $i][ 'link'] = 'admin/about.php'

◆ $adminmenu [8/10]

$adminmenu[ $i][ 'title'] = _PM_MI_INDEX

◆ $adminmenu [9/10]

$adminmenu[ $i][ 'title'] = _PM_MI_PRUNE

◆ $adminmenu [10/10]

$adminmenu[ $i][ 'title'] = _PM_MI_ABOUT

◆ $dirname

$dirname = basename(dirname(__DIR__))

◆ $i

$i = 1

◆ $module

XoopsModule $module = $module_handler->getByDirname($dirname)

◆ $module_handler

$module_handler = xoops_getHandler('module')

◆ $path

$path = dirname(dirname(dirname(__DIR__)))

◆ $pathIcon32

$pathIcon32 = $module->getInfo('icons32')

◆ $pathLanguage

$pathLanguage = $path . $pathModuleAdmin

◆ $pathModuleAdmin

$pathModuleAdmin = $module->getInfo('dirmoduleadmin')

◆ if

if(!file_exists($fileinc=$pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) ( file_exists $fileinc=$pathLanguage . '/language/' . $GLOBALS[ 'xoopsConfig'][ 'language'] . '/' . 'main.php')