Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Main
Sandbox
TWiki
You are here:
FS
>
TWiki Web
>
TWikiAttachDotPm
r1 - 17 Dec 2005 - 13:33 -
TWikiContributor
E
dit
A
ttach
P
rintable
Start of topic |
Skip to actions
Package
TWiki::Attach
A singleton object of this class is used to deal with attachments to topics.
Package TWiki::Attach
ClassMethod new
($session)
ObjectMethod renderMetaData
($web,$topic,$meta,$args) -> $text
ObjectMethod formatVersions
($web,$topic,$attrs) -> $text
ObjectMethod getAttachmentLink
($user,$web,$topic,$name,$meta) -> $html
ObjectMethod migrateToFileAttachmentMacro
($meta,$text) -> $text
ObjectMethod upgradeFrom1v0beta
($meta) -> $text
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?
End of topic
Skip to actions
|
Back to top
E
dit
|
A
ttach
|
P
rintable
|
R
aw view
|
Backlinks:
We
b
,
A
l
l webs
|
H
istory
: r1
|
M
ore topic actions
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding FS?
Send feedback