Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cmc.msu.ru/System/PerlDoc?module=Foswiki::Configure::Item
Дата изменения: Unknown Дата индексирования: Tue Apr 12 02:13:21 2016 Кодировка: koi8-r |
internal package
Foswiki::Configure::Item Objects of this class are intended to form a tree with references in both directions, circular references ahead. But configure isn't supposed to be run in a persistent environment anyway.
ObjectMethod
getDepth() → $integer Get the depth of the item in the item tree, where the root is at depth 0, it's children at depth 1, etc.
ObjectMethod
addToDesc($str) Concatenate $str to the description of this item.
ObjectMethod
isExpertsOnly() → $boolean Is the item tagged EXPERT?
By default, no node is expert.
ObjectMethod
set(%params) Accept an attribute setting for this item (e.g. a key name). Sort of a generic write accessor.
ObjectMethod
inc($key) Increment a numeric value identified by $key, recursing up the tree to the root.
AssumptionsThis is used for counting the numbers of warnings, errors etc found in subtrees of the configuration structure.
ObjectMethod
getSectionObject($head, $depth) → $item This gets the section object that has the heading $head and getDepth() == $depth below this item.
Subclasses must provide an implementation.
ObjectMethod
getValueObject($keys) → $value Subclasses must define this method.
ObjectMethod
needsSaving() → $integer The default implementation always returns 0
ObjectMethod
visit($visitor) → $boolean The default implementation just visits this item, and returns 1 if both the startVisit and the endVisit returned true.