You are here: Foswiki>System Web>Category>DeveloperDocumentationCategory>PerlDoc (2024-12-23, UnknownUser)Edit Attach
See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview
internal package
Foswiki::Attach A singleton object of this class is used to deal with attachments to topics.
ClassMethod
new($session) Constructor.
ObjectMethod
finish() Break circular references.
ObjectMethod
renderMetaData( $topicObject, $args ) → $text Generate a table of attachments suitable for the bottom of a topic view, using templates for the header, footer and each row.
$topicObject
the topic $args
hash of attachment arguments Renders these tokens for each attachment:
%ICON{}%
macro around file extension Renders these row helper tokens:
ObjectMethod
formatVersions ( $topicObject, $attrs ) → $text Generate a version history table for a single attachment
$topicObject
- the topic $attrs
- Hash of meta-data attributes ObjectMethod
getAttachmentLink( $topicObject, $name ) → $html $topicObject
- The topic $name
- Name of the attachment Build a link to the attachment, suitable for insertion in the topic.
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback