internal package Foswiki::Attach
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
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.

Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Wiki?
Send feedback