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


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.

This topic: System > WebHome > ReferenceManual > DeveloperDocumentationCategory > PerlDoc
Topic revision: 19 Apr 2011, ProjectContributor
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding FAIR Wiki? Send feedback