internal package
Foswiki::Configure::LoadSpec cfg ::= ( setting | section | extension )* ; setting ::= BOL typespec EOL comment* BOL def ; typespec ::= "**" typeid options "**" ; def ::= "$" ["Foswiki::"] "cfg" keys "=" value ";" ; keys ::= ( "{" id "}" )+ ; value is any perl value not including ";" comment ::= BOL "#" string EOL ; section ::= BOL "#--+" string ( "--" options )? EOL comment* ; extension ::= BOL " *" id "*" EOL ::= end of line BOL ::= beginning of line typeid ::= id ; id ::= a \w+ word (legal Perl bareword)A section is simply a divider used to create blocks. It can have varying depth depending on the number of + signs and may have options after -- e.g. #---+ Section -- TABS EXPERT A setting is the sugar required for the setting of a single configuration value. An extension is a pluggable UI extension that supports some extra UI functionality, such as the menu of languages or the menu of plugins. Each setting has a typespec and a def. The typespec consists of a type id and some options. A def is a specification of a field in the $Foswiki::cfg hash, together with a perl value for that hash. Each field can have an associated Checker which is loaded from the Foswiki::Configure::Checkers hierarchy. Checkers are responsible for specific checks on the value of that variable. For example, the checker for $Foswiki::cfg{Banana}{Republic} will be expected to be found in Foswiki::Configure::Checkers::Banana::Republic. Checkers are subclasses of Foswiki::Configure::Checker. See that class for more details. An extension is a placeholder for a Foswiki::Configure::Pluggable.
StaticMethod
readSpec($root, $reporter) $root
- Foswiki::Configure::Root of the model
StaticMethod
parse($file, $root, $reporter [, $cant_enhance]) StaticMethod
protectKeys($keystring) → $keystring StaticMethod
protectKey($keystring) → $keystring StaticMethod
addSpecDefaultsToCfg($spec, \%cfg, \%added) $spec
- ref to a Foswiki::Configure::Item
\%cfg
ref to a cfg hash e.g. Foswiki::cfg
\%added
(optional) ref to a hash to receive keys that were added
StaticMethod
addCfgValuesToSpec(\%cfg, $spec) \%cfg
ref to a cfg hash e.g. Foswiki::cfg
$spec
- ref to a Foswiki::Configure::Item
![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |