<<

NAME

C4::UsageStats

DESCRIPTION

This package contains what is needed to report Koha statistics to hea hea.koha-community.org is the server that centralize Koha setups informations Koha libraries are encouraged to provide informations about their collections, their structure,...

NeedUpdate

  $needUpdateYN = C4::UsageStats::NeedUpdate;

Returns Y (1) if the last update is more than 1 month old This way, even if the cronjob is run every minute, the webservice will be called only once a month !

ReportToCommunity

  ReportToCommunity;

Send to hea.koha-community.org database informations

_shared_preferences

    my $preferences = C4::UsageStats::_shared_preferences

Returns an arreyref with the system preferences to be shared.

_count

  $data = _count($table);

Count the number of records in $table tables

<<