Scratch filter tests in prep for WebGUI::Group->getScratchUsers

Small tweaks for User.pm scratch and Group.pm POD
Update scratchFilter docs to show how to place multiple name and value pairs
This commit is contained in:
Colin Kuskie 2006-04-06 22:02:54 +00:00
parent 8cd87a2733
commit f9b8582426
4 changed files with 109 additions and 9 deletions

View file

@ -459,7 +459,9 @@ sub getDatabaseUsers {
=head2 getKarmaUsers ( )
Get the set of users allowed to be in this group via their current karma setting
and this group's karmaThreshold. All users with
and this group's karmaThreshold. The set is returned as an array ref.
If karma is not enabled for this site, it will return a empty array ref.
=cut

View file

@ -287,8 +287,8 @@ sub isInGroup {
}
}
### Check Scratch Variables
if ($group->get("scratchFilter")) {
my $scratchFilter = $group->get("scratchFilter");
if ($group->scratchFilter()) {
my $scratchFilter = $group->scratchFilter();
$scratchFilter =~ s/\s//g;
my @vars = split(";",$scratchFilter);
foreach my $var (@vars) {

View file

@ -1757,8 +1757,13 @@ Having done that, when a user clicks on that link they will have a scratch varia
To set a scratch filter simply add a line to the scratch filter field that looks like:
<p>
<i>www_somename=somevalue</i>
<p>|,
lastUpdated => 1120448672,
<p>
Multiple filters can be set by joining name and value pairs with a semicolon:
<p>
<i>www_somename=somevalue;otherName=otherValue</i>
|,
lastUpdated => 1144345050,
},
'974 description' => {