PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
load database infor for a module
bool pnModDBInfoLoad(module, directory);
pnModDBInfoLoad() loads the database table information for a module. This information is merged with the
The well-known name of a module for which to load the database table information
The directory name of the module for which to load the database table information, if known
This function returns true. This function returns void if an exception was raised.
This function raises BAD_PARAM if you pass an invalid parameter. This function raises DATABASE_ERROR if an error occurs while querying data. This function raises MODULE_NOT_EXIST if the module doesn't exist.
If there is no database table information present then it is assumed that the module uses tables defined elsewhere, or no database tables at all, hence the function always returns true.
// Load the table information for the News module
pnModDBInfoLoad('News'
// Get the table information, now including the news tables
$pntable = pnDBGetTables();
Previous |
Next |