TWiki home TWiki.Tukro > TWiki > TWikiFuncModule (r1.2 vs. r1.3) TWiki.Tukro webs:
Main | TWiki | Know | Sandbox
TWiki . { Welcome | Register | Changes | Topics | Index | Search | Go }
 <<O>>  Difference Topic TWikiFuncModule (r1.3 - 02 Feb 2003 - PeterThoeny)
Line: 1 to 1
Changed:
<
<
META TOPICINFO PeterThoeny date="1041321837" format="1.0" version="1.2"
>
>
META TOPICINFO PeterThoeny date="1044147759" format="1.0" version="1.3"

META TOPICPARENT TWikiPlugins
TOC: No TOC in "TWiki.TWikiFuncModule"
Line: 157 to 157

Functions: User Handling and Access Control

Changed:
<
<

getDefaultUserName( ) ==> $user

>
>

getDefaultUserName( ) ==> $loginName


Description: Get default user name as defined in TWiki.cfg's $defaultUserName
Changed:
<
<
Return: $user Default user name, e.g. "guest"
>
>
Return: $loginName Default user name, e.g. "guest"

getWikiName( ) ==> $wikiName

Line: 196 to 196

Parameter: $web Web name, required, e.g. "Sandbox"
Return: $flag "1" if yes, "0" if no
Changed:
<
<

checkAccessPermission( $type, $user, $text, $topic, $web ) ==> $flag

>
>

checkAccessPermission( $type, $wikiName, $text, $topic, $web ) ==> $flag


Description: Check access permission for a topic based on the TWiki.TWikiAccessControl rules
Parameter: $type Access type, e.g. "VIEW", "CHANGE", "CREATE"
Changed:
<
<
Parameter: $user WikiName of remote user, i.e. "Main.PeterThoeny"
>
>
Parameter: $wikiName WikiName of remote user, i.e. "Main.PeterThoeny"

Parameter: $text Topic text, optional. If empty, topic $web.$topic is consulted
Parameter: $topic Topic name, required, e.g. "PrivateStuff"
Parameter: $web Web name, required, e.g. "Sandbox"
Line: 221 to 221

Parameter: $topic Topic name, required, e.g. "TokyoOffice", or "Main.TokyoOffice"
Return: $flag "1" if topic exists, "0" if not
Changed:
<
<

getRevisionInfo( $web, $topic ) ==> ( $date, $user, $rev )

>
>

getRevisionInfo( $web, $topic ) ==> ( $date, $loginName, $rev )


Description: Get revision info of a topic
Parameter: $web Web name, optional, e.g. "Main"
Parameter: $topic Topic name, required, e.g. "TokyoOffice"
Changed:
<
<
Return: ( $date, $user, $rev ) List with: ( last update date, WikiName of last user, minor part of top revision number ), e.g. ( "01 Jan 2003", "PeterThoeny", "5" )
>
>
Return: ( $date, $loginName, $rev ) List with: ( last update date, login name of last user, minor part of top revision number ), e.g. ( "01 Jan 2003", "phoeny", "5" )

checkTopicEditLock( $web, $topic ) ==> ( $oopsUrl, $loginName, $unlockTime )

Line: 274 to 274

    TWiki::Func::redirectCgiQuery( $query, $text );
    return;
}
Changed:
<
<
# do topic manipulation like:
>
>
# do topic text manipulation like:

$text =~ s/old/new/g;
Added:
>
>
# do meta data manipulation like:
$text =~ s/(META\:FIELD.*?name\=\"TopicClassification\".*?value\=\")[^\"]*/$1BugResolved/;

$oopsUrl = TWiki::Func::saveTopicText( $web, $topic, $text ); # save topic text
TWiki::Func::setTopicEditLock( $web, $topic, 0 );             # unlock topic
if( $oopsUrl ) {


Topic TWikiFuncModule . { View | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.2 - 31 Dec 2002 - 08:03 - PeterThoeny
Revision r1.3 - 02 Feb 2003 - 01:02 - PeterThoeny
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki.Tukro? Send feedback.