C4::UsageStats
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,...
$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;
Send to hea.koha-community.org database informations
my $preferences = C4::UsageStats::_shared_preferences
Returns an arreyref with the system preferences to be shared.
$data = _count($table);
Count the number of records in $table tables