Previous | Up | |
Extensions | Introduction |
"Applications" are complete web applications that use the SWS framework. Examples are the MP3 webstreaming software, and the BCF network database.
Applications are like other webpages; they simply make use of the SWS functions like pre or post. Applications should be able to be placed in any directory on a site that's using SWS. Applications can also require the use of an existing database, or the creation of a new one. This should all be documented in a particular application's documentation.
SWS does have a few provisions for writing command line tools for use in applications. For now there is a perl library that provides access to databases, eases upgrading checks and provides standard error messages. Besides of course the obvious benefit of code reuse, an other reason for using this library is that SWS site administrators can become accustomed to just one style of administration.
The first thing you should do in an application tool is determine where the SWS library is installed, and add this path to perl's library path. You then have access to the perl library of SWS, which takes care of setting up access to databases using the standard SWS method etc. It is suggested that you store the location of SWS in the configuration file of your application.
You can then proceed to use one of the following SWS modules:
SWS::Cfg
SWS::DB
SWS::Error
SWS::Root
SWS::Update
Previous | Up | |
Extensions | Introduction |
Documentation generated on Fri, 30 Jun 2006 10:31:37 +0200 by phpDocumentor 1.3.0RC3