Skip to content

Commit

Permalink
Tasks.Item8030: a little more cleaning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/RackPlannerPlugin@1447 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
LarsEik authored and LarsEik committed Dec 17, 2008
1 parent f015d0b commit 3f1d2f4
Showing 1 changed file with 0 additions and 83 deletions.
83 changes: 0 additions & 83 deletions lib/Foswiki/Plugins/RackPlannerPlugin.pm
Expand Up @@ -111,89 +111,6 @@ sub initPlugin {
return 1;
}

# The function used to handle the %EXAMPLETAG{...}% tag
# You would have one of these for each tag you want to process.
sub _TIMETABLE {
my ( $session, $params, $theTopic, $theWeb ) = @_;

# $session - a reference to the TWiki session object (if you don't know
# what this is, just ignore it)
# $params= - a reference to a Foswiki::Attrs object containing parameters.
# This can be used as a simple hash that maps parameter names
# to values, with _DEFAULT being the name for the default
# parameter.
# $theTopic - name of the topic in the query
# $theWeb - name of the web in the query
# Return: the result of processing the tag

# For example, %EXAMPLETAG{'hamburger' sideorder="onions"}%
# $params->{_DEFAULT} will be 'hamburger'
# $params->{sideorder} will be 'onions'
}

=cut

---++ earlyInitPlugin()

May be used by a plugin that requires early initialization. This handler
is called before any other handler.

If it returns a non-null error string, the plugin will be disabled.

=cut

sub DISABLE_earlyInitPlugin {
return undef;
}

=pod
---++ initializeUserHandler( $loginName, $url, $pathInfo )
* =$loginName= - login name recovered from $ENV{REMOTE_USER}
* =$url= - request url
* =$pathInfo= - pathinfo from the CGI query
Allows a plugin to set the username, for example based on cookies.
Return the user name, or =guest= if not logged in.
This handler is called very early, immediately after =earlyInitPlugin=.
__Since:__ Foswiki::Plugins::VERSION = '1.010'
=cut

sub DISABLE_initializeUserHandler {

# do not uncomment, use $_[0], $_[1]... instead
### my ( $loginName, $url, $pathInfo ) = @_;

Foswiki::Func::writeDebug(
"- ${pluginName}::initializeUserHandler( $_[0], $_[1] )")
if $debug;
}

=pod
---++ registrationHandler($web, $wikiName, $loginName )
* =$web= - the name of the web in the current CGI query
* =$wikiName= - users wiki name
* =$loginName= - users login name
Called when a new user registers with this TWiki.
__Since:__ Foswiki::Plugins::VERSION = '1.010'
=cut

sub DISABLE_registrationHandler {

# do not uncomment, use $_[0], $_[1]... instead
### my ( $web, $wikiName, $loginName ) = @_;

Foswiki::Func::writeDebug(
"- ${pluginName}::registrationHandler( $_[0], $_[1] )")
if $debug;
}

=pod
Expand Down

0 comments on commit 3f1d2f4

Please sign in to comment.