Difference: TWikiUIManageDotPm (1 vs. 4)

Revision 422 Jan 2008 - TWikiContributor

Line: 9 to 9
  manage command handler. This method is designed to be
Changed:
<
<
invoked via the TWiki::UI::run method.
>
>
invoked via the UI::run method.
 
Line: 17 to 17
  rename command handler. This method is designed to be
Changed:
<
<
invoked via the TWiki::UI::run method.
>
>
invoked via the UI::run method.
 Rename the given topic. Details of the new topic name are passed in CGI parameters:

Revision 201 Apr 2006 - TWikiContributor

Line: 30 to 30
 
Deleted:
<
<
!!!rename!!!
 

StaticMethod move ($session,$oldWeb,$oldTopic,$newWeb,$newTopic,$attachment,\@refs)

Move the given topic, or an attachment in the topic, correcting refs to the topic in the topic itself, and

Revision 101 Feb 2006 - TWikiContributor

Line: 1 to 1
Added:
>
>

Package TWiki::UI::Manage

UI functions for web, topic and user management

StaticMethod manage ($session)

manage command handler. This method is designed to be invoked via the TWiki::UI::run method.

StaticMethod rename ($session)

rename command handler. This method is designed to be invoked via the TWiki::UI::run method. Rename the given topic. Details of the new topic name are passed in CGI parameters:

skin skin(s) to use
newweb new web name
newtopic new topic name
breaklock  
attachment  
confirm if defined, requires a second level of confirmation
currentwebonly if defined, searches current web only for links to this topic
nonwikiword if defined, a non-wikiword is acceptable for the new topic name

!!!rename!!!

StaticMethod move ($session,$oldWeb,$oldTopic,$newWeb,$newTopic,$attachment,\@refs)

Move the given topic, or an attachment in the topic, correcting refs to the topic in the topic itself, and in the list of topics (specified as web.topic pairs) in the \@refs array.

  • $session - reference to session object
  • $oldWeb - name of old web - must be untained
  • $oldTopic - name of old topic - must be untained
  • $newWeb - name of new web - must be untained
  • $newTopic - name of new topic - must be untained
  • $attachment - name of the attachment to move (from oldtopic to newtopic) (undef to move the topic) - must be untaineted
  • \@refs - array of webg.topics that must have refs to this topic converted
Will throw TWiki::OopsException or TWiki::AccessControlException on an error.

StaticMethod getReferringTopics ($session,$web,$topic,$allWebs) -> \%matches

  • $session - the session
  • $web - web to search for
  • $topic - topic to search for
  • $allWebs - 0 to search $web only. 1 to search all webs except $web.
Returns a hash that maps the web.topic name to a summary of the lines that matched. Will not return $web.$topic in the list
 
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 Insights Collaboration TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiUIManageDotPm.