Package TWiki::UI
Coordinator of execution flow and service functions used by the UI packages
On this page:
- StaticMethod handleRequest ($req) -> $res
- StaticMethod execute ($req,$sub,%initialContext) -> $res
- StaticMethod logon ($session)
- StaticMethod checkWebExists ($session,$web,$topic,$op)
- StaticMethod topicExists ($session,$web,$topic,$op)=>boolean
- StaticMethod checkWebWritable ($session)
- StaticMethod checkAccess ($web,$topic,$mode,$user)
- StaticMethod readTemplateTopic ($session,$theTopicName) -> ($meta,$text)
- StaticMethod run ($method)
- StaticMethod verifyCryptToken ($session,$crypt_token)
Main coordinator of request-process-response cycle.
Creates a TWiki session object with %initalContext and calls
$sub method. Returns the TWiki::Response object generated
Handler to "logon" action.
-
$session
is a TWiki session object
Check if the web exists. If it doesn't, will throw an oops exception.
$op is the user operation being performed.
Check if the given topic exists, throwing an
OopsException
if it doesn't. $op is the user operation being performed.
Checks if this web is writable on this site, Throwing an exception
if it is not.
Check if the given mode of access by the given user to the given
web.topic is permissible, throwing a TWiki::OopsException if not.
Search for a template topic in current web, Main web, and TWiki web, in that order.
Supported for bin scripts that were written for TWiki < 5.0. The
parameter is a function reference to the UI method to call, and is ignored
in TWiki >= 5.0, where it should be replaced by a Config.spec entry such as:
#
*PERL H*
# Bin script registration - do not modify
$TWiki::cfg{SwitchBoard}{publish} = [ "TWiki::Contrib::Publish", "publish", { publishing => 1 } ];