<<

NAME

Koha::ERM::EUsage::UsageObject - Base class for ERM usage report entities

SYNOPSIS

This is the base class for the usage report entities (titles, platforms, items and databases). Each entity has monthly usage records stored in the erm_usage_mus table. Yearly usage is read from the erm_usage_yus table, which holds the monthly usage summed per year.

Subclasses must implement _type.

API

Class Methods

erm_usage_muses

Method to embed erm_usage_muses to this usage object for report formatting

erm_usage_yuses

Method to embed erm_usage_yuses to this usage object for report formatting

yearly_usages

Getter for yearly_usages for this usage object

Yearly usage is read-only. The erm_usage_yus table is rebuilt from the monthly usage by Koha::ERM::EUsage::YearlyUsages->rebuild, so there is nothing to store here.

monthly_usages

Getter/setter for monthly_usages for this usage object Skips adding monthly_usage if it already exists

<<