コード例 #1
0
     * Setup the Page Modules Table to include a proper entry for this app.
     */
    $module = new RowManager_siteModuleManager();
    $module->loadByKey(module[ModuleName]::MODULE_KEY);
    $module->setKey(module[ModuleName]::MODULE_KEY);
    $module->setPath('[RAD_PATH_MODULE_ROOT][RAD_CORE_PRE_NAME][ModuleName]/');
    $module->setApplicationFile('app_[ModuleName].php');
    $module->setIncludeFile('incl_[ModuleName].php');
    $module->setName('module[ModuleName]');
    $module->setParameters('');
    $module->setSystemAccessFile('objects_bl/obj_SystemAccess.php');
    $module->setSystemAccessObj(module[ModuleName]::MODULE_KEY . 'Access');
    // if module entry already exists then
    if ($module->isLoaded()) {
        // update current entry
        $module->updateDBTable();
    } else {
        // create new entry
        $module->createNewEntry();
    }
} else {
    echo 'Skipping Module Table ... <br>';
}
// check to see if the parameter 'skipTables' was provided
$skipTables = isset($_REQUEST['skipTables']);
// if NOT then reset the tables...
if (!$skipTables) {
    /*[RAD_DAOBJ_TABLE]*/
} else {
    echo 'Skipping Tables ... <br>';
}