Class ModuleApplication

Object
  |
  +--Application
        |
        +--WebApplication
              |
              +--PBEApplication
                    |
                    +--ModuleApplication

public class ModuleApplication
extends PBEApplication


Fields inherited from class PBEApplication
actions, iInActive, objects, tags
 
Fields inherited from class WebApplication
cookieValue, debugOn, iCurrentPage, iReturnFile, iReturnType, thisURL, traceOn, webID
 
Constructor Summary
ModuleApplication()
           
 
Method Summary
 procedure declareModule(varchar clazz, varchar title, generic arg1, generic arg2, generic arg3, generic arg4, generic arg5)
           
 procedure declareObject(varchar clazz, varchar name, generic arg1, generic arg2, generic arg3, generic arg4, generic arg5)
           
 void disable(varchar page)
           
 void enable()
           
 Module findModule(varchar obj)
          Find the module of an object.
 varchar getCurrentModule()
           
 Module getIndexModule()
           
 Module getModule(generic x)
           
 integer getModuleCount()
           
 varchar getModuleDir()
           
 void init()
           
 void loaded()
           
 void loadModule(varchar name)
           
 void loadModuleFile(varchar name)
           
 void loadModuleFile(varchar path, varchar name)
           
 void loadModules()
           
protected  void performGoto()
          This method handles module relative GOTO and REDIRECT commands. If the path begins with a '/' then the path is considered global to the application server.
 void preparePage(varchar page)
           
 
Methods inherited from class PBEApplication
activate, activateAll, attributeEvent, createAction, createTag, declareAttribute, declareMethod, displayHidden, fieldValue, getActive, ifTag, input, liveTag, liveTagEnd, objectEvent, resetHidden, returnFile, selectTag, selectTagEnd, setActive, tagForm, useObject, whileTag
 
Methods inherited from class WebApplication
debug, error, getCookie, getCurrentPage, gotoPage, randomCookie, redirect, setGotoFile, trace
 
Methods inherited from class Application
catch, getLastError, try
 

Constructor Detail

ModuleApplication

public ModuleApplication()
Method Detail

performGoto

protected void performGoto()
This method handles module relative GOTO and REDIRECT commands.

If the path begins with a '/' then the path is considered global to the application server. References to modules files, in this case, must use the exact directory name of the module. This can be a problem because the administrator is not required to install a module uses any particular directory name.

If the path begins with "./" then it is considered to be relative to the current module.

In all other cases the path is condired to be relative to the current page. ".." is evaluated correctly.

Overrides:
performGoto in class WebApplication

preparePage

public void preparePage(varchar page)
Overrides:
preparePage in class PBEApplication

getModuleDir

public varchar getModuleDir()

loadModuleFile

public void loadModuleFile(varchar name)

loadModuleFile

public void loadModuleFile(varchar path,
                           varchar name)

loadModule

public void loadModule(varchar name)

loadModules

public void loadModules()

getModuleCount

public integer getModuleCount()

getModule

public Module getModule(generic x)

findModule

public Module findModule(varchar obj)
Find the module of an object.

getIndexModule

public Module getIndexModule()

getCurrentModule

public varchar getCurrentModule()

disable

public void disable(varchar page)
Overrides:
disable in class PBEApplication

enable

public void enable()
Overrides:
enable in class PBEApplication

init

public void init()
Overrides:
init in class PBEApplication

loaded

public void loaded()

declareModule

public procedure declareModule(varchar clazz,
                               varchar title,
                               generic arg1,
                               generic arg2,
                               generic arg3,
                               generic arg4,
                               generic arg5)

declareObject

public procedure declareObject(varchar clazz,
                               varchar name,
                               generic arg1,
                               generic arg2,
                               generic arg3,
                               generic arg4,
                               generic arg5)
Overrides:
declareObject in class PBEApplication