Você está aqui: pimentel.pro.br - TWiki > Web TWiki > TWikiPrefsParserDotPm r1 - 07 Feb 2006 - 15:09 - TWikiGuest


Final do tópico | Pular para ações

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.

Editar | Anexar | Impressão | Texto Puro | Referências: Web, Global | Histórico: r1 | Mais ações de tópico
This site is powered by the TWiki collaboration platformCopyright © pelos autores contribuintes. Todo material nessa plataforma colaborativa é propriedade dos autores contribuintes.
Idéias, solicitações, problemas com relação ao pimentel.pro.br - TWiki? Nos dê um retorno
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiPrefsParserDotPm