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:
parent
8cd87a2733
commit
f9b8582426
4 changed files with 109 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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' => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue