internal package
Foswiki::Configure::Pluggable internal package
Foswiki::Configure::Pluggable Pluggables are used for blocks in the configuration that cannot be handled by the configuration abstraction, for example blocks used for downloading extensions, managing plugins, and managing languages.
A pluggable block will normally inject programatically generated configuration entries (subclasses of Foswiki::Configure::Item) into the configuration, usually by appending to the $open configuration item (which will normally be a Foswiki::Configure::Section). Pluggable implementations are loaded by the parser by calling theload
static method in this class. The implementations are packages
in Foswiki::Configure::Pluggables, and must provide at least the following
function:
StaticMethod
construct( \@settings, $file, $line ) \@settings
- ref to the top level array of settings
$file
, $line
- file and line in the .spec that triggered the pluggable
Foswiki::Configure::Section
objects to @$settings and
populate them using →addChild
.
Note also that values added by pluggables should NOT have defined_at
set. The presence of this field is used to indicate whether a field was
defined explicitly, or in a pluggable.
StaticMethod
load($id) Foswiki::Configure::Pluggables::$id
Will die if there's a problem.
Returns the result from the Pluggable class'sconstruct