TWiki
>
TWiki Web
>
TWikiAttachDotPm
(2008-01-22,
TWikiContributor
)
(raw view)
---+ Package =TWiki::Attach= A singleton object of this class is used to deal with attachments to topics. %TOC% ---++ ClassMethod *new* <tt>($session)</tt> Constructor. ---++ ObjectMethod *finish* <tt>()</tt> Break circular references. ---++ ObjectMethod *renderMetaData* <tt>($web,$topic,$meta,$args) -> $text</tt> 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* <tt>($web,$topic,$attrs) -> $text</tt> Generate a version history table for a single attachment * =$web= - the web * =$topic= - the topic * =$attrs= - Hash of meta-data attributes ---++ ObjectMethod *getAttachmentLink* <tt>($user,$web,$topic,$name,$meta) -> $html</tt> * =$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.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2008-01-22
-
TWikiContributor
Home
Site map
Badania web
Dydaktyka web
Galeria web
Main web
MainPage web
Ogloszenia web
Pracownicy web
Publikacje web
Sandbox web
StronaGlowna web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
E
dit
A
ttach
Copyright © 1999-2025 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
.