]> git.koha-community.org Git - koha.git/commit
New C4 Modules
authorJohn Beppu <john.beppu@liblime.com>
Tue, 3 Feb 2009 22:02:03 +0000 (16:02 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:14:56 +0000 (21:14 +0200)
commitf6a552417961a8616044f7b63c93ae22aa449a04
treedf7d9d401bcc8247ee28e20b8b0b9e7166e1dbe4
parent2f549fedb52186222bcb8076746913ceff39b86b
New C4 Modules

* C4::Category
  - patron categories as objects
  - an all() method to return all the categories as a list
* C4::ItemType
  - itemtypes as objects
  - an all() method to return all the item types as a list
* C4::ItemCirculationAlertPreference
  - wrapper around the item_circulation_alert_preference table
  - create() and delete() methods for easy manipulation of the preferences
  - I regret giving it such a long name.
  - The item_type column should've been named itemtype to make it
    more similar to pre-existing tables.  Oh well.

(C4::Category and C4::ItemType were made so that I wouldn't have to
write SQL inside my CGI scripts.
Their main purpose is to provide an easy way to get a list of
patron categories and item types.
Do not be fooled by the amount of POD.
There's actually very little code in these modules.)

Signed-off-by: Daniel Sweeney <daniel.sweeney@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Category.pm [new file with mode: 0644]
C4/ItemCirculationAlertPreference.pm [new file with mode: 0644]
C4/ItemType.pm [new file with mode: 0644]