Module-related functions

module_function

mixed module_function(string module, string function);

Execute an arbitrary method from module, specified by function. If the module does not exist or the method does not exist, module_function will return false. (This is in phpwebtools)

freemed::module_check

boolean freemed::module_check(string module_name, string minimum_version);

If passed without minimum_version, it returns whether or not the specified module is loaded in FreeMED's module registry. If minimum_version is present, it only returns true if module is installed with a specific minimum version. (The minimum_version is optional.)

freemed::module_get_value

mixed freemed::module_get_value(string module, string key);

Returns a key from phpwebtools' GLOBAL_MODULES cached information. Examples of valid keys are MODULE_NAME, MODULE_CLASS, MODULE_VERSION.

freemed::module_get_meta

mixed freemed::module_get_meta(string module, string key);

Similar to freemed::module_get_value, but extracts information from the stored meta information.

freemed::module_handler

array freemed::module_handler(string handler);

Returns an associative array of all modules registered with a particular handler.

freemed::module_lookup

string freemed::module_lookup(string module);

Returns the module name of a specific class. This can also be accomplished by using freemed::module_get_value(), so this function is depreciated.

freemed::module_register

boolean freemed::module_register(string module, string version);

This function is only used internally by superclasses to register modules with FreeMED's internal module registry. It should not be used in standard modules.

freemed::module_version

string freemed::module_version(string module);

Returns the proper version of the named module, or NULL if it is not registered. This is different from using freemed::module_get_version($module, 'MODULE_VERSION') because it queries the SQL server, not the module cache.