Package TWiki::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 ($web,$topic,$meta,$args) -> $text

Generate a table of attachments suitable for the bottom of a topic view, using templates for the header, footer and each row.

  • $web the web
  • $topic the topic
  • $meta meta-data hash for the topic
  • $args hash of attachment arguments

ObjectMethod formatVersions ($web,$topic,$attrs) -> $text

Generate a version history table for a single attachment

  • $web - the web
  • $topic - the topic
  • $attrs - Hash of meta-data attributes

ObjectMethod getAttachmentLink ($user,$web,$topic,$name,$meta) -> $html

  • $user - User doing the reading
  • $web - Name of the web
  • $topic - Name of the topic
  • $name - Name of the attachment
  • $meta - Meta object that contains the meta info

Build a link to the attachment, suitable for insertion in the topic.

r3 - 22 Jan 2008 - 03:21:31 - TWikiContributor
 
Linux & Open Source for AT91 Microchip Microprocessors

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Microchip® and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries. This site is powered by the TWiki collaboration platform

Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM