PerlDoc

26 August 2025 - 17:41 | Version 1 |
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


Parent package: Foswiki
Child packages:

    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.

    Renders these tokens for each attachment:

    Renders these row helper tokens:

    ObjectMethod formatVersions ( $topicObject, $attrs ) → $text

    Generate a version history table for a single attachment

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