|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cs.msu.ru/System/PerlDoc?module=Foswiki::Render::Anchors
Дата изменения: Unknown Дата индексирования: Mon Apr 11 15:46:55 2016 Кодировка: koi8-r |
internal package Foswiki::Render::Anchors internal package Foswiki::Render::Anchors Support for rendering anchors. Objects of this class represent a set of generated anchor names, which must be unique in a rendering context (topic). The renderer maintains a set of these objects, one for each topic, to ensure that anchor names are not re-used.
ClassMethod new() Construct a new anchors set.
ObjectMethod clear() Clear the anchor set. Clearing the anchor set will cause it to forget any anchors generated to date.
ObjectMethod add($text) → $name ObjectMethod addUnique($text [,$alreadyMade]) → $uniqueName $alreadyMade, then $text is assumed to be a valid anchor name
that was made by make.
Return the name that was added.
StaticMethod make( $text ) → $name The making process tranforms an arbitrary text string to a string that can legally be used for an HTML anchor.
ObjectMethod makeHTMLTarget($name) → $html
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.