Package TWiki::UI

Coordinator of execution flow and service functions used by the UI packages

StaticMethod handleRequest ($req) -> $res

Main coordinator of request-process-response cycle.

StaticMethod execute ($req,$sub,%initialContext) -> $res

Creates a TWiki session object with %initalContext and calls $sub method. Returns the TWiki::Response object generated

StaticMethod logon ($session)

Handler to "logon" action.

  • $session is a TWiki session object

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 checkWebWritable ($session)

Checks if this web is writable on this site, Throwing an exception if it is not.

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)

Search for a template topic in current web, Main web, and TWiki web, in that order.

StaticMethod run ($method)

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 } ];

StaticMethod verifyCryptToken ($session,$crypt_token)

r6 - 14 Oct 2013 - 08:02:47 - TWikiContributor
Linux & Open Source for AT91 Microchip Microprocessors

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Microchip® and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries. This site is powered by the TWiki collaboration platform

Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.

Ideas, requests, contributions ? Connect to LinksToCommunities page.

Syndicate this siteRSS ATOM