Difference: TWikiDotPm (8 vs. 9)

Revision 929 Nov 2015 - TWikiContributor

Line: 308 to 308
 
Added:
>
>

ObjectMethod *determineWebTopic ($pathInfo,$web,$topic) -> ($web,$topic,$requestedWeb)

Determine the web and topic names from PATH_INFO and web and topic names explicitly provided. And then sanitize them.

 

ClassMethod new ($loginName,$query,\%initialContext)

Constructs a new TWiki object. Parameters are taken from the query object.

Line: 557 to 565
 

StaticMethod *spaceOutWikiWord ($word,$sep) -> $string

Changed:
<
<
Spaces out a wiki word by inserting a string (default: one space) between each word component. With parameter $sep any string may be used as separator between the word components; if $sep is undefined it defaults to a space.
>
>
Spaces out a wiki word by inserting a string between each word component. Word component boundaries are transitions from lowercase to uppercase or numeric, from numeric to uppercase or lowercase, and from uppercase to numeric characters.
 
Added:
>
>
Parameter $sep defines the separator between the word components, the default is a space.
 
Added:
>
>
Example: "ABC2015ProjectCharter" results in "ABC 2015 Project Charter"
 
Line: 707 to 720
 WARNING: Never, ever use this for accessing topics or attachments! Use the Store API for that. This is for global control files only, and should be used only if there is absolutely no alternative.
Added:
>
>

StaticMethod *suffixToMimeType ($filename) -> $mimeType

Returns the MIME type corresponding to the extension of the $filename based on the file specified by {MimeTypesFileName}. If there is no extension or the extension is not found in the {MimeTypesFileName} file, 'text/plain' is returned.

 
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 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.TWikiDotPm.