Bug 15632: Koha::Patron::Messages - Add new classes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Jan 2016 17:31:50 +0000 (17:31 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 3 Mar 2016 21:22:12 +0000 (21:22 +0000)
commitdd31253441d99c4b2a2feba6d505c6a44e5584ce
treea65270147b8a3e31c997c86ea40ab39cd8b30799
parente88457a9fab442979a7422ce33970b60753cfc06
 Bug 15632: Koha::Patron::Messages - Add new classes

The following 4 CRUD subroutines in C4::Members:
- AddMessage
- DeleteMessage
- GetMessagesCount
- GetMessages

could be replaced with a new package based on Koha::Objets.
This patchset will add the 2 Koha::Patron::Message[s] classes, then use
it to replace the different calls to these subroutine.
It will slightly reduce the size of C4::Members

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Koha/Patron/Message.pm [new file with mode: 0644]
Koha/Patron/Messages.pm [new file with mode: 0644]
t/db_dependent/Koha/Patron/Messages.t [new file with mode: 0644]