Bug 16889: Add Koha::Objects->columns
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 9 Jul 2016 13:32:40 +0000 (14:32 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 15 Jul 2016 18:12:12 +0000 (18:12 +0000)
commit5eba0ab027b7cb7c7bc9f3973c0700d4d64e5b12
tree5d45ab9718159ab3d9ed54d8205056840c59338b
parent59d8f3f8617070ec29159ee3c2e0400e9214e4d4
Bug 16889: Add Koha::Objects->columns

Currently we have 3 subroutines to retrieve the columns of tables:
C4::Members::columns, C4::Items::columns and
C4::Items::biblioitems_columns.
It is easier to have a Koha::Objects->columns method to provide the
different classes to retrieve their related column names.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Objects.pm
t/db_dependent/Koha/Objects.t