Line: 98 to 98 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < | getTextPreferencesValue( $key, $text, $web, $topic ) -> $valueGet a preference value from the settings in the text. The values are not cached. | |||||||
> > | getTextPreferencesValue( $key, $text, $meta, $web, $topic ) -> $valueGet a preference value from the settings in the text (and/or optional $meta). The values read are not cached. | |||||||
ObjectMethod getWebPreferencesValue ($key,$web) -> $value |
Line: 25 to 25 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | ObjectMethod finishComplete processing after the client's HTTP request has been responded to.
| |||||||
ObjectMethod pushGlobalPreferences ()Add global preferences to this preferences stack. |
Line: 91 to 91 | ||||||||
---|---|---|---|---|---|---|---|---|
getTextPreferencesValue( $key, $text, $web, $topic ) -> $value | ||||||||
Changed: | ||||||||
< < | Get a preference value from the settings in the text. The parsed values are cached against the web, topic. | |||||||
> > | Get a preference value from the settings in the text. The values are not cached. | |||||||
ObjectMethod getWebPreferencesValue ($key,$web) -> $value |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > | Package
The Prefs class is a singleton that implements management of preferences.
It uses a stack of TWiki::Prefs::PrefsCache objects to store the
preferences for global, web, user and topic contexts, and provides
the means to look up preferences in these.
Preferences from different places stack on top of each other, so there
are global preferences, then site, then web (and subweb and subsubweb),
then topic, included topic and so on. Each level of the stack is tagged with
a type identifier.
The module also maintains a separate of the preferences found in every topic
and web it reads. This supports the lookup of preferences for webs and topics
that are not on the stack, and must not be chained in (you can't allow
a user to override protections from their home topic!)
|