internal package Foswiki::Contrib::MailerContrib::Change

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::Contrib::MailerContrib::Change

Object that represents a change to a topic.

new($web, $topic, $author, $time, $rev)

  • $web - Web name
  • $topic - Topic name
  • $author - String author of change
  • $time - String time of change
  • $rev - Revision identifier
Construct a new change object.


  • $change - Change record to merge
Merge another change record with this one, so that the combined record is a reflection of both changes.

expandHTML($html) -> string

  • $html - Template to expand keys within
Expand an HTML template using the values in this change. The following keys are expanded: %TOPICNAME%, %AUTHOR%, %TIME%, %REVISION%, %BASE_REV%, %CUR_REV%, %TEXTHEAD%.

Returns the expanded template.

expandPlain() -> string

Generate a plaintext version of this change.

expandDiff() -> string

Generate a unified diff version of this change.

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