Package
The PrefsCache package holds a cache of topics that have been read in, using
the TopicPrefs class. These functions manage that cache.
We maintain 2 hashes of values: | ||||||||
Changed: | ||||||||
< < | ObjectMethod loadPrefsFromText ($text,$web,$topic) | |||||||
> > | ObjectMethod loadPrefsFromText ($text,$meta,$web,$topic) | |||||||
Changed: | ||||||||
< < | Loads preferences from a topic. All settings loaded are prefixed with the key prefix (default ''). | |||||||
> > | Loads preferences from text and optional metadata. All settings loaded
are prefixed with the key prefix (default ''). If $meta is defined, | |||||||
Added: | ||||||||
> > | then metadata will be taken from that object. Otherwise, $text will
be parsed to extract meta-data. | |||||||
ObjectMethod insert ($type,$key,$val)Adds a key-value pair of the given type to the object. Type is Set or Local. Callback used for the Prefs::Parser object, or can be used to add arbitrary new entries to a prefs cache. Note that attempts to redefine final preferences will be ignored.ObjectMethod stringify ($html,\%shown) -> $textGenerate an (HTML if $html) representation of the content of this cache. |
Package
The PrefsCache package holds a cache of topics that have been read in, using
the TopicPrefs class. These functions manage that cache.
We maintain 2 hashes of values: |