Difference: TWikiUIDotPm (1 vs. 2)

Revision 22007-01-16 - TWikiContributor

 

Package =TWiki::UI

Service functions used by the UI packages

Changed:
<
<

StaticMethod run (\&method)

>
>

StaticMethod run (\&method,...)

  Entry point for execution of a UI function. The parameter is a reference to the method.
Added:
>
>
... is a list of name-value pairs that define initial context identifiers that must be set during initPlugin. This set will be extended to include command_line if the script is detected as being run outside the browser.
 
Added:
>
>
 

StaticMethod checkWebExists ($session,$web,$topic,$op)

Check if the web exists. If it doesn't, will throw an oops exception. $op is the user operation being performed.

StaticMethod topicExists ($session,$web,$topic,$op)=>boolean

Added:
>
>
 Check if the given topic exists, throwing an OopsException if it doesn't. $op is the user operation being performed.

StaticMethod checkMirror ($session,$web,$topic)

Added:
>
>
 Checks if this web is a mirror web, throwing an OopsException if it is.

StaticMethod checkAccess ($web,$topic,$mode,$user)

Added:
>
>
 Check if the given mode of access by the given user to the given web.topic is permissible, throwing a TWiki::OopsException if not.

StaticMethod *readTemplateTopic ($session,$theTopicName) -> ($meta,$text)

Read a topic from the TWiki web, or if that fails from the current web.

Revision 12006-02-01 - TWikiContributor

 

Package =TWiki::UI

Service functions used by the UI packages

StaticMethod run (\&method)

Entry point for execution of a UI function. The parameter is a reference to the method.

StaticMethod checkWebExists ($session,$web,$topic,$op)

Check if the web exists. If it doesn't, will throw an oops exception. $op is the user operation being performed.

StaticMethod topicExists ($session,$web,$topic,$op)=>boolean

Check if the given topic exists, throwing an OopsException if it doesn't. $op is the user operation being performed.

StaticMethod checkMirror ($session,$web,$topic)

Checks if this web is a mirror web, throwing an OopsException if it is.

StaticMethod checkAccess ($web,$topic,$mode,$user)

Check if the given mode of access by the given user to the given web.topic is permissible, throwing a TWiki::OopsException if not.

StaticMethod *readTemplateTopic ($session,$theTopicName) -> ($meta,$text)

Read a topic from the TWiki web, or if that fails from the current web.

 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 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.TWikiUIDotPm.