Bug 7785: (follow-up) standardize POD
authorGalen Charlton <gmc@esilibrary.com>
Tue, 13 Aug 2013 16:15:30 +0000 (16:15 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 13 Aug 2013 16:15:30 +0000 (16:15 +0000)
This makes the POD for the columns() function consistent
with the rest of C4/Members.pm.  It also removes a note
that can be relegated to the bug report and the Git
history.

Also, since C4::Members::columns() is not actually a
class method, this patch changes the invocation to
not call it that way.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Members.pm
t/db_dependent/Members_columns.t
tools/import_borrowers.pl

index f3dbebd..e678585 100644 (file)
@@ -698,22 +698,10 @@ sub GetMemberIssuesAndFines {
 
 =head2 columns
 
-  C4::Member->columns
+  my @columns = C4::Member::columns();
 
-=head3 USAGE
-
- use C4::Member;
- my @borrower_columns = C4::Member->columns;
-
-=head3 RETURNS
-
- The array of borrowers' table columns on success.
- An empty array on failure.
-
-=head3 NOTES
-
- This runs significantly faster than the previous code while
- being mostly SQL-agnostic.
+Returns an array of borrowers' table columns on success,
+and an empty array on failure.
 
 =cut
 
index 7a70ce4..5b7ffe0 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
     use_ok('C4::Members');
 }
 
-my @borrowers_columns = C4::Members->columns;
+my @borrowers_columns = C4::Members::columns;
 ok(
     $#borrowers_columns > 1,
     'C4::Member->column returned a reasonable number of columns ('
index 78353c9..5f65c97 100755 (executable)
@@ -58,7 +58,7 @@ use CGI;
 my (@errors, @feedback);
 my $extended = C4::Context->preference('ExtendedPatronAttributes');
 my $set_messaging_prefs = C4::Context->preference('EnhancedMessagingPreferences');
-my @columnkeys = C4::Members->columns;
+my @columnkeys = C4::Members::columns();
 if ($extended) {
     push @columnkeys, 'patron_attributes';
 }