PostNuke Help

Previous
pnModGetUserMods

Home
up

Next
pnModLoad


pnModGetVar

get module variable

Synopsis

mixed pnModGetVar(module, name);

Description

pnModGetVar() obtains a module-specific variable from the PostNuke system.

Parameters

module

The well-known name of a module from which to obtain the variable

name

The name of the module variable to obtain

Return Values

This function returns the requested variable if the variable exist. If the variable does not exist then this function will return void. This function returns void if an exception was raised.

Exceptions

This function raises BAD_PARAM if you pass an invalid parameter. This function raises DATABASE_ERROR if an error occurs while querying data.

Notes

A module's well-known name is the uniquely assigned name by which the module is know throughout the PostNuke community. The well-known name normally corresponds to the directory in which the module code is placed; module information can be found from any PostNuke system by going to the modules administration section. Examples of well-known names are 'News', 'FAQ', and 'Comments'.

This function does not get the configuration information of the module itself. To obtain information such as the module ID or its current status you must the other PostNuke API calls available.

Examples

// Get the version information for the 'News' module
$newsmodver = pnModGetVar('News', 'Version');
       

See Also

pnModSetVar(), pnModDelVar()


Previous
pnModGetUserMods

Home
up

Next
pnModLoad