Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki xoops XoopsEngine ZendFramework

Top Tags

module (1) rmcommon (1)

New Users

Registering user

# 133030

cheapsalgcom

Welcome to XOOPS!
[Main Page]

Dev:$XoopsModule

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Categories: DevWiki | Development

$xoopsModule is an array that allows you to access some module-wide configuration data within your programming.

The most common one is the name of the directory or the 'dirname' variable so that you can make a module easily renameable (one of the most common FAQs).

Using

usage is as simple as this:

   $xoopsModule->getVar('varname')

where varname is the name of one of the variables below.

Note: When you try to get dirname of a module, use $xoopsModule->getVar('dirname', 'n') instead of $xoopsModule->getVar('dirname') to skip unnecessary text sanitizing.

Variables

   * mid - number, unknown usage
   * name - text
   * version - number
   * last_update - date (number)
   * weight - number (for module priority)
   * isactive - number
   * dirname - text, name of directory (unclear if this comes from the xoops_version file or from the path)
   * hasmain - number (main menu?)
   * hasadmin - number
   * hassearch - number, assumed boolean for search usage
   * hasconfig - number
   * hascomments - number, assumed boolean for comments usage
   * hasnotification - number, assumed boolean for notifications usage

Retrieved from "http://xoops.org/modules/mediawiki/index.php/Dev:%24XoopsModule"

This page has been accessed 4,262 times. This page was last modified 16:37, 20 July 2009. Content is available under XOOPS Web Application System.