C4::Category - objects from the categories table
use C4::Category; my @categories = C4::Category->all; print join("\n", map { $_->description } @categories), "\n";
Objects of this class represent a row in the categories
table.
Currently, the bare minimum for using this as a read-only data source has been implemented. The API was designed to make it easy to transition to an ORM later on.
Given a hashref, a new (in-memory) C4::Category object will be instantiated. The database is not touched.
This returns all the categories as objects. By default they're ordered by description
.
These are read-only accessors for attributes of a C4::Category object.
The following modules make reference to the categories
table.
C4::Members, C4::Overdues, C4::Reserves
John Beppu <john.beppu@liblime.com>