The WFWebApplication object is a singleton object that manages the running of the any Phocoa request, be it CLI or HTTP.
Right now it doesn't do a whole lot besides manage the shared application object and provide access to a few application defaults via the delegate. Eventually it can be used to manage application-wide settings and state.
Located in /framework/WFWebApplication.php (line 31)
WFObject | --WFWebApplication
Get the absolute path of one of the application directories.
NOTE: this function should only return things inside of APP_ROOT.. presently DIR_SMARTY is an exception b/c we haven't yet implemented userland smarty templates...
Determine if the current execution environment is the result of a WEB request (as oppopsed to a CLI script).
Helper function for encoding URL's in a fashion suitable for passing around as an invocationPath parameter.
This is just base64 modified for URL.
Get a reference to the shared application object.
Decode data encoded with serializeURL.
Get the www-absolute path of one of the application's public www directories.
Constructor
If you have installed modules outside of your project's modules directory, you can tell PHOCOA where to look for them with this function.
Examples:
Autoload callback for WFWebApplication.
Will allow the app delegate to autoload classes if autoload() is declared in the app delegate.
Get the default invocationPath for this web application. The default module is the module that will be run if the web root is accessed.
The default module is provided by the WFWebApplicationDelegate::defaultInvocationPath().
Get the default Skin delegate for the application.
The default skin delegate is provided by the WFWebApplicationDelegate.
Get the delegate for the WFWebApplication.
Hook to call the initialize method fo the web application.
Applications will typically initialize DB stuff here.
Get the list of extra modules activates for this webapp.
Bootstrap control of the application to the RequestController.
The web framework's normal cycle is to instantiate the WFWebApplication then pass control to the WFRequestController to handle the request.
Hook to provide opportunity for the web application to munge the session data after php's session_start() is called.
Hook to provide opportunity for the web application to munge the session config before php's session_start() is called.
Inherited From WFObject
WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForUndefinedKey()
WFObject::__toString()
Documentation generated on Thu, 07 Aug 2008 10:37:07 -0400 by phpDocumentor 1.4.1