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)

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.

Topic revision: r1 - 19 Apr 2011, ProjectContributor
 
This site is powered by FoswikiCopyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki? Send feedback