Lines 15-20
package Koha::Database::Columns;
Link Here
|
15 |
# You should have received a copy of the GNU General Public License |
15 |
# You should have received a copy of the GNU General Public License |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
17 |
|
17 |
|
|
|
18 |
use Modern::Perl; |
19 |
use Koha::I18N qw( __ ); |
20 |
|
18 |
=head1 NAME |
21 |
=head1 NAME |
19 |
|
22 |
|
20 |
Koha::Database::Columns |
23 |
Koha::Database::Columns |
Lines 22-34
Koha::Database::Columns
Link Here
|
22 |
=head1 SYNOPSIS |
25 |
=head1 SYNOPSIS |
23 |
|
26 |
|
24 |
use Koha::Database::Columns; |
27 |
use Koha::Database::Columns; |
|
|
28 |
my $columns = Koha::Database::Columns->columns; |
25 |
|
29 |
|
26 |
=head1 FUNCTIONS |
30 |
=head1 API |
27 |
|
31 |
|
28 |
=cut |
32 |
=head2 Methods |
29 |
|
33 |
|
30 |
use Modern::Perl; |
34 |
=head3 columns |
31 |
use Koha::I18N qw( __ ); |
35 |
|
|
|
36 |
Static method that returns a hashref with mappings from column names |
37 |
to descriptions, for several tables. Currently |
38 |
|
39 |
=over |
40 |
|
41 |
=item biblio |
42 |
|
43 |
=item biblioitems |
44 |
|
45 |
=item borrowers |
46 |
|
47 |
=item items |
48 |
|
49 |
=item statistics |
50 |
|
51 |
=item subscription |
52 |
|
53 |
=item suggestion |
54 |
|
55 |
=back |
56 |
|
57 |
=cut |
32 |
|
58 |
|
33 |
sub columns { |
59 |
sub columns { |
34 |
return { |
60 |
return { |
35 |
- |
|
|