New C4 Modules
authorJohn Beppu <john.beppu@liblime.com>
Tue, 3 Feb 2009 22:02:03 +0000 (16:02 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 4 Feb 2009 19:55:48 +0000 (13:55 -0600)
commit5991cdd33acb7a6205edc084db1cdc17e67577f1
tree90fa559c776f4a038de30f3831daa6fe632ea08d
parent233010f451730ded94d09b6ec842d37f8fbe93d0
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>
C4/Category.pm [new file with mode: 0644]
C4/ItemCirculationAlertPreference.pm [new file with mode: 0644]
C4/ItemType.pm [new file with mode: 0644]