Line: 5 to 5 | ||||||||
---|---|---|---|---|---|---|---|---|
Official list of stable TWiki functions for Plugin developers | ||||||||
Changed: | ||||||||
< < | This module defines official functions that Plugins | |||||||
> > | This module defines official functions that TWiki plugins | |||||||
can use to interact with the TWiki engine and content. | ||||||||
Changed: | ||||||||
< < | Refer to EmptyPlugin and lib/TWiki/Plugins/EmptyPlugin.pm for a template Plugin and documentation on how to write a Plugin. | |||||||
> > | Refer to EmptyPlugin and lib/TWiki/Plugins/EmptyPlugin.pm for a template plugin and documentation on how to write a plugin. | |||||||
Plugins should only use functions published in this module. If you use functions in other TWiki libraries you might create a security hole and | ||||||||
Changed: | ||||||||
< < | you will probably need to change your Plugin when you upgrade TWiki. | |||||||
> > | you will probably need to change your plugin when you upgrade TWiki. | |||||||
Deprecated functions will still work in older code, though they should | ||||||||
Changed: | ||||||||
< < | not be called in new Plugins and should be replaced in older Plugins | |||||||
> > | not be called in new plugins and should be replaced in older plugins | |||||||
as soon as possible.
The version of the TWiki::Func module is defined by the VERSION number of the | ||||||||
Line: 611 to 612 | ||||||||
Tip if you want, you can use this method to check your own access control types. For example, if you:
| ||||||||
Changed: | ||||||||
< < | in ThatWeb.ThisTopic , then a call to checkAccessPermissions('SPIN', 'IncyWincy', undef, 'ThisTopic', 'ThatWeb', undef) will return true . | |||||||
> > | in ThatWeb.ThisTopic , then a call to checkAccessPermission('SPIN', 'IncyWincy', undef, 'ThisTopic', 'ThatWeb', undef) will return true . | |||||||
Since: TWiki::Plugins::VERSION 1.000 (27 Feb 2001) | ||||||||
Line: 912 to 913 | ||||||||
release, or can be inspected in the lib/TWiki/Meta.pm file.
This method ignores topic access permissions. You should be careful to use | ||||||||
Changed: | ||||||||
< < | checkAccessPermissions to ensure the current user has read access to the | |||||||
> > | checkAccessPermission to ensure the current user has read access to the | |||||||
topic.
Since: TWiki::Plugins::VERSION 1.000 (7 Dec 2002) | ||||||||
Line: 1087 to 1088 | ||||||||
file. See the documentation on TWiki templates for more information. | ||||||||
Changed: | ||||||||
< < | writeHeader( $query, $contentLength ) | |||||||
> > | writeHeader( ) | |||||||
Changed: | ||||||||
< < | Prints a basic content-type HTML header for text/html to standard out
| |||||||
> > | Print a basic content-type HTML header for text/html to standard out. No return value.
Note: In TWiki versions earlier than TWiki::Plugins::VERSION 1.3, this function used to have | |||||||
Since: TWiki::Plugins::VERSION 1.000 (7 Dec 2002) | ||||||||
Line: 1132 to 1132 | ||||||||
Since: TWiki::Plugins::VERSION 1.000 (7 Dec 2002) | ||||||||
Changed: | ||||||||
< < | addToHEAD( $id, $header ) | |||||||
> > | addToHEAD( $id, $header, $requires ) | |||||||
Adds $header to the HTML header (the tag).
This is useful for Plugins that want to include some javascript custom css.
| ||||||||
Added: | ||||||||
> > |
| |||||||
All TWiki variables present in $header will be expanded before being inserted into the section. | ||||||||
Line: 1147 to 1148 | ||||||||
example: | ||||||||
Changed: | ||||||||
< < | TWiki::Func::addToHEAD('PATTERN_STYLE','') | |||||||
> > | TWiki::Func::addToHEAD('PATTERN_STYLE',''); | |||||||
Line: 1542 to 1543 | ||||||||
Added: | ||||||||
> > | buildWikiWord( $text ) -> $textConverts arbitrary text to a WikiWord.
$text
Since: TWiki::Plugins::VERSION 1.3 (18 Jan 2010) | |||||||
spaceOutWikiWord( $word, $sep ) -> $textSpaces out a wiki word by inserting a string (default: one space) between each word component. | ||||||||
Line: 1786 to 1796 | ||||||||
Since: TWiki::Plugins::VERSION 1.025 (01 Aug 2004) | ||||||||
Added: | ||||||||
> > |
TWiki API History
TWiki-2001-09-01 (Athens Release)$TWiki::Plugins::VERSION 1.000EmptyPlugin.pm
Func.pm
TWiki-2003-02-01 (Beijing Release)$TWiki::Plugins::VERSION 1.010EmptyPlugin.pm
Func.pm
TWiki-2004-09-02 (Cairo Release)$TWiki::Plugins::VERSION 1.025EmptyPlugin.pm
Func.pm
TWiki-4.0.0 (Dakar Release)$TWiki::Plugins::VERSION 1.1EmptyPlugin.pm
Func.pm
TWiki-4.0.1 (Dakar Patch Release)$TWiki::Plugins::VERSION 1.1EmptyPlugin.pm
Func.pm
TWiki-4.1 (Edinburgh Release)$TWiki::Plugins::VERSION 1.11EmptyPlugin.pm
Func.pmNo changes
TWiki-4.2 (Freetown Release)$TWiki::Plugins::VERSION 1.2EmptyPlugin.pm
Func.pm
TWiki-4.3 (Georgetown Release)$TWiki::Plugins::VERSION 1.2EmptyPlugin.pmNo changesFunc.pmNo changes
TWiki-5.0 (Helsinki Release)$TWiki::Plugins::VERSION 1.3EmptyPlugin.pmNo changesFunc.pm
|