(1 vs. 3) TWikiAttachDotPm < TWiki < TWiki

Home - this site is powered by TWiki(R)
TWiki  TWikiAttachDotPm (1 vs. 3)

Welcome | Register | Changes | Topics | Index | Search | Go

 <<O>>  Difference Topic TWikiAttachDotPm (3 - 2008-01-22 - TWikiContributor)
 

Package =TWiki::Attach

A singleton object of this class is used to deal with attachments to topics.

ClassMethod new ($session)

Changed:
<
<
Constructor
>
>
Constructor.
 
Added:
>
>

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.

Deleted:
<
<

ObjectMethod *migrateToFileAttachmentMacro ($meta,$text) -> $text

Migrate old HTML format

ObjectMethod *upgradeFrom1v0beta ($meta) -> $text

CODE_SMELL: Is this really necessary? upgradeFrom1v0beta?

 

 <<O>>  Difference Topic TWikiAttachDotPm (2 - 2007-01-16 - TWikiContributor)
 

Package =TWiki::Attach

A singleton object of this class is used to deal with attachments to topics.

ClassMethod new ($session)

Added:
>
>
 Constructor

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.

ObjectMethod *migrateToFileAttachmentMacro ($meta,$text) -> $text

Migrate old HTML format

ObjectMethod *upgradeFrom1v0beta ($meta) -> $text

CODE_SMELL: Is this really necessary? upgradeFrom1v0beta?


 <<O>>  Difference Topic TWikiAttachDotPm (1 - 2006-02-01 - TWikiContributor)
 

Package =TWiki::Attach

A singleton object of this class is used to deal with attachments to topics.

ClassMethod new ($session)

Constructor

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.

ObjectMethod *migrateToFileAttachmentMacro ($meta,$text) -> $text

Migrate old HTML format

ObjectMethod *upgradeFrom1v0beta ($meta) -> $text

CODE_SMELL: Is this really necessary? upgradeFrom1v0beta?


View | History: r3 < r2 < r1 | More

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiAttachDotPm.

Revision r3 - 2008-01-22 - 03:21:31 - TWikiContributor Edit

(%REVTITLE2% vs. %REVTITLE1%) TWikiAttachDotPm < TWiki < TWiki