User Login    
 + Register
  • Main navigation
Login
Username:

Password:


Lost Password?

Register now!
Documentation
Who's Online
121 user(s) are online (9 user(s) are browsing XoopsWiki)

Members: 3
Guests: 118

julius-leo, trabis, bravo, more...
[Main Page]

Dev:$XoopsModule

From XOOPS Project

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

Printable version | Disclaimers | Privacy policy
Category: 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://www.xoops.org/modules/mediawiki/index.php/Dev:%24XoopsModule"

This page has been accessed 559 times. This page was last modified 16:53, 15 December 2007. Content is available under XOOPS Project.


Local Support Sites
Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Developers for Hire