<<

NAME

C4::ItemType - objects from the itemtypes table

SYNOPSIS

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

DESCRIPTION

Objects of this class represent a row in the itemtypes 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::ItemType->new(\%opts)

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

C4::ItemType->all

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

C4::ItemType->get

Return the itemtype indicated by the itemtype given as argument, as an object.

Object Methods

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

$itemtype->itemtype

$itemtype->description

$itemtype->renewalsallowed

$itemtype->rentalcharge

$itemtype->notforloan

$itemtype->imageurl

$itemtype->checkinmsg

$itemtype->summary

SEE ALSO

The following modules make reference to the itemtypes table.

C4::Biblio, C4::Circulation, C4::Context, C4::Items, C4::Koha, C4::Labels, C4::Overdues, C4::Reserves, C4::Search, C4::VirtualShelves::Page, C4::VirtualShelves, C4::XSLT

AUTHOR

John Beppu <john.beppu@liblime.com>

<<