Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r1
TWikiPrefsParserDotPm 1 - 01 Feb 2006 - Main.TWikiContributor
Line: 1 to 1
Added:
>
>

Package TWiki::Prefs::Parser

This Prefs-internal class is used to parse * Set and * Local statements from arbitrary text, and extract settings from meta objects. It is used by TopicPrefs? to parse preference settings from topics.

This class does no validation or duplicate-checking on the settings; it simply returns the recognized settings in the order it sees them in.

ClassMethod new () -> topicparserobject

Construct a new parser object.

ObjectMethod parseText ($text,$prefs)

Parse settings from text and add them to the preferences in $prefs

ObjectMethod parseMeta ($metaObject,$prefs)

Traverses through all PREFERENCE attributes of the meta object, creating one setting named with $settingPrefPrefix . 'title' for each. It also creates an entry named with the field 'name', which is a cleaned-up, space-removed version of the title.

Settings are added to the $prefs passed.


Revision 1r1 - 01 Feb 2006 - 12:01:25 - TWikiContributor
This site is powered by the TWiki collaboration platform.
All material on this collaboration platform is the property of the contributing authors.
All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.
Syndicate this site RSSATOM