<<

NAME

C4::Category - objects from the categories table

SYNOPSIS

    use C4::Category;
    my @categories = C4::Category->all;
    print join("\n", map { $_->description } @categories), "\n";

DESCRIPTION

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.

API

Class Methods

C4::Category->new(\%opts)

Given a hashref, a new (in-memory) C4::Category object will be instantiated. The database is not touched.

C4::Category->all

This returns all the categories as objects. By default they're ordered by description.

Object Methods

These are read-only accessors for attributes of a C4::Category object.

$category->categorycode

$category->description

$category->enrolmentperiod

$category->upperagelimit

$category->dateofbirthrequired

$category->finetype

$category->bulk

$category->enrolmentfee

$category->overduenoticerequired

$category->issuelimit

$category->reservefee

$category->category_type

SEE ALSO

The following modules make reference to the categories table.

C4::Members, C4::Overdues, C4::Reserves

AUTHOR

John Beppu <john.beppu@liblime.com>

<<