r3 - 13 Jun 2006 - 11:11:13 - MeredithLeslyYou are here: TWiki >  Plugins Web > MoreFuncContrib
Tags:
, create new tag

MoreFuncContrib

This contrib contains basic functionality needed by many plugins that is not included in Dakar's TWiki::Func. Some or all of these will probably be merged into the TWiki::Func at some point.

Webs, Topics, and Attachments

readTopicMeta($web, $topic, $rev) -> $metadata

Returns the metadata for a topic.

getTopicPreferenceValue($web, $topic, $prefName) -> $pref

Returns the value of a topic's preference.

getChildWebs($web) -> $listOfWebs

Returns a list of a web's child webs

Plugin-specific file handling

readWorkFile($pluginName, $fileName) -> $data

Returns the contents of a file in a particular plugin's work area

saveWorkFile($pluginName, $fileName, $data)

Saves $data to a file in a plugin's work area

deleteWorkFile($pluginName, $fileName)

Delete a file in a plugin's work area

General Utilities

buildMimeHash($session) -> $hash

Return a mapping of extention to mime type

suffixToMimeType ( $session, $theFilename ) -> $mimetype

Returns the mime type of a file based on its suffix

Installation Instructions

  • Download the ZIP file from the Plugin web (see below)
  • Unzip MoreFuncContrib.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/MoreFuncContrib.txt Plugin doc page
    lib/TWiki/Contrib/MoreFuncContrib.pm Plugin Perl module

  • Run MoreFuncContrib_installer.pl to automatically check and install other modules that this module depends on. You can also do this step manually. Dependencies: None

Contrib Info

Author: TWiki:Main.MeredithLesly
Copyright ©: 2006 Meredith Lesly based on code from other TWiki contributors
License: GPL (GNU General Public License)
Dependencies: None
Version: 10562
Change History:  
22 Aug 2008: Initial version
Home: http://TWiki.org/cgi-bin/view/Plugins/MoreFuncContrib
Feedback: http://TWiki.org/cgi-bin/view/Plugins/MoreFuncContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/MoreFuncContribAppraisal

Related Topics: TWikiFuncDotPm

-- TWiki:Main.MeredithLesly - 22 Aug 2008

Topic attachments
I Attachment Action Size Date Who Comment
elsemd5 MoreFuncContrib.md5 manage 0.2 K 13 Jun 2006 - 11:11 MeredithLesly md5 checksums
ziptgz MoreFuncContrib.tgz manage 9.1 K 13 Jun 2006 - 11:11 MeredithLesly Untar and run the installer script, if there is one
zipzip MoreFuncContrib.zip manage 10.7 K 13 Jun 2006 - 11:11 MeredithLesly unzip, correct the permissions, and run the installer script, if there is one
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo