Line: 9 to 9 | ||||||||
---|---|---|---|---|---|---|---|---|
Global variables are avoided wherever possible to avoid problems with CGI accelerators such as mod_perl. | ||||||||
Changed: | ||||||||
< < | Public Data members | |||||||
> > | Public Data members | |||||||
| ||||||||
Line: 54 to 54 | ||||||||
Changed: | ||||||||
< < | ObjectMethod *writeCompletePage ($text,$pageType,$contentType) | |||||||
> > | ObjectMethod *writeCompletePage ($text,$pageType,$contentType,$status) | |||||||
Write a complete HTML page with basic header to the browser.
| ||||||||
Line: 62 to 62 | ||||||||
caching for 24 hours, to prevent BackFromPreviewLosesText bug, which caused
data loss with IE5 and IE6.
| ||||||||
Added: | ||||||||
> > |
| |||||||
This method removes noautolink and nop tags before outputting the page unless $contentType is text/plain. | ||||||||
Changed: | ||||||||
< < | ObjectMethod *generateHTTPHeaders ($pageType,$contentType,$contentLength) -> $header | |||||||
> > | ObjectMethod *generateHTTPHeaders ($pageType,$contentType,$status) -> $header | |||||||
All parameters are optional.
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Implements the post-Dec2001 release plugin API, which requires the writeHeaderHandler in plugin to return a string of HTTP headers, CR/LF | ||||||||
Line: 91 to 92 | ||||||||
Changed: | ||||||||
< < | ObjectMethod redirect ($url,$passthrough,$action_redirectto) | |||||||
> > | ObjectMethod redirect ($url,$passthrough,$action_redirectto,$viaCache) | |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Redirects the request to $url , unless
| ||||||||
Line: 116 to 119 | ||||||||
over a cache reference in the redirect GET. NOTE: Passthrough is only meaningful if the redirect target is on the same | ||||||||
Changed: | ||||||||
< < | server. | |||||||
> > | server. "$viaCache" is meaningful only if "$action_redirectto" is false and "$passthru" is true. | |||||||
Line: 161 to 165 | ||||||||
Changed: | ||||||||
< < | ObjectMethod *readOnlyMirrorWeb ($theWeb) -> ($mirrorSiteName,$mirrorViewURL,$mirrorLink,$mirrorNote)If this is a mirrored web, return information about the mirror. The info is returned in a quadruple: | |||||||
> > | ObjectMethod modeAndMaster ($web)Returns the following hash reference such as this:('', undef) | |||||||
Changed: | ||||||||
< < |
| |||||||
> > | and this:
('slave', { # master site data siteName => 'na', webScriptUrlTmpl => 'http://twiki.example.com/cgi-bin//Web', scriptSuffix => '', webViewUrl => 'http://twiki.example.com/Web', }) | |||||||
Added: | ||||||||
> > | The first value is the mode of the web: either 'local', 'master', 'slave', or 'read-only'. The second value is defined only when the master site is defined for the web. | |||||||
ObjectMethod getSkin () -> $string | ||||||||
Line: 185 to 201 | ||||||||
url-encoded and added to the url. The special parameter name '#' is reserved for specifying an anchor. e.g. getScriptUrl('x','y','view','#'=>'XXX',a=>1,b=>2) will give | ||||||||
Changed: | ||||||||
< < | .../view/x/y?a=1&b=2#XXX | |||||||
> > | .../view/x/y?a=1&b=2#XXX | |||||||
If $absolute is set, generates an absolute URL. $absolute is advisory only; TWiki can decide to generate absolute URLs (for example when run from the | ||||||||
Line: 203 to 219 | ||||||||
(including web and topic). Otherwise will generate only up to the script name. An undefined web will default to the main web name. | ||||||||
Added: | ||||||||
> > | The returned URL takes ReadOnlyAndMirrorWebs into account.
If the specified $web is slave on this site, with the scripts
edit , save , attach , upload , and rename , this method returns
the URLs on the master site because it does not make sense to execute
those scripts on the master site of the web.
Even with the other scripts, you may need to get the URLs on the master site.
You can get those URLs by providing $master => 1 as a name value pair.
ObjectMethod getDiskInfo ($web,$site,$diskID) -> ($dataDir,$pubDir,$diskID)You can specify either $web or $diskID, not both.ObjectMethod getDiskList () -> ('',1,2,...)ObjectMethod getDataDir ($web,$diskID) -> $dataDirYou can specify either $web or $diskID, not both.ObjectMethod getPubDir ($web,$diskID) -> $pubDirYou can specify either $web or $diskID, not both. | |||||||
ObjectMethod getPubUrl ($absolute,$web,$topic,$attachment) -> $url | ||||||||
Line: 502 to 548 | ||||||||
Added: | ||||||||
> > | StaticMethod topLevelWeb ($web) -> toplevelwebof$webIf $web is a top level web, it returns $web. If $web is a subweb, it returns the top level web of $web. | |||||||
StaticMethod *spaceOutWikiWord ($word,$sep) -> $stringSpaces out a wiki word by inserting a string (default: one space) between each word component. | ||||||||
Line: 623 to 676 | ||||||||
Changed: | ||||||||
< < | %<nop}RENDERHEAD% | |||||||
> > | %RENDERHEAD% | |||||||
== should be written where you want the sorted head tags to be generated. This will normally be in a template. The variable expands to a sorted list of the head blocks added up to the point the RENDERHEAD variable is expanded. Each expanded head block is preceded by an HTML comment that records the ID of the head block.
Head blocks are sorted to satisfy all their requires constraints. | ||||||||
Line: 666 to 719 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
|