See
PublishedAPI for packages intended to be used by Plugin and Contrib authors, or
browse all packages.
See also
Developing plugins,
Developer's Bible,
Technical Overview
SMELL / FIX / TODO count: 6
Inspects the system and makes guesses for the settings required for an
operational Foswiki.
workOutOS - Establish the OS and DetailsOS
These settings are saved into the configuration. However this method is made
public so that they can be set when missing from older configurations.
SMELL: the perlvar doc for $^O says "The value is identical
SMELL: is it really worth continuing if we still can't
StaticMethod setBootstrap()
This routine is called to initialize the bootstrap process. It sets the list of
configuration parameters that will need to be set and "protected" during bootstrap.
If any keys will be set during bootstrap / initial creation of
LocalSite.cfg, they
should be added here so that they are preserved when the %Foswiki::cfg hash is
wiped and re-initialized from the Foswiki spec.
StaticMethod bootstrapConfig()
This routine is called from Foswiki.pm BEGIN block to discover the mandatory
settings for operation when a
LocalSite.cfg could not be found.
SMELL: have to keep {Engine} as this is defined by the
StaticMethod _bootstrapSiteSettings()
Called by bootstrapConfig. This handles the {Site} settings.
StaticMethod _bootstrapStoreSettings()
Called by bootstrapConfig. This handles the store specific settings. This in turn
tests each Store Contib to determine if it's capable of bootstrapping.
SMELL: The fork to `grep goes into a loop in the unit tests
SMELL: Really this should be done per web, both in data and pub.
StaticMethod bootstrapWebSettings($script)
Called by bootstrapConfig. This handles the web environment specific settings only:
-
{DefaultUrlHost}
-
{ForceDefaultUrlHost}
-
{ScriptUrlPath}
-
{ScriptUrlPaths}{view}
-
{PubUrlPath}
|| '';SMELL Sometimes PATH_INFO appears to be undefined.