All pastes #456038 Raw Edit

Someone

public text v1 · immutable
#456038 ·published 2007-04-24 17:09 UTC
rendered paste body
=cut

sub lookupLoginName {
    my ($this, $loginUser) = @_;
    $this->_loadMapping();
    return $this->{U2W}{$loginUser};
}

=pod

---++ Objectmethod lookupWikiName($wikiname) -> $username

Map a wikiname to the corresponding username. This is used for lookups during
user resolution, and should be as fast as possible.

=cut

sub lookupWikiName {
    my ($this, $wikiName) = @_;

    $this->_loadMapping();
    return $this->{W2U}{$wikiName};

}