GetPlugin("MetricsRecorder"); $Reporter = $GLOBALS["G_PluginManager"]->GetPlugin("MetricsReporter"); $ViewCountData = $Recorder->GetFullRecordViewCounts(NULL, NULL, 0, 30, NULL, implode(", ",$Reporter->ConfigSetting("PrivsToExcludeFromCounts"))); # retrieve URL field click counts $Schema = new MetadataSchema(); $UrlField = $Schema->GetFieldByMappedName("Url"); if (isset($UrlField)) { $ClickCountData = $Recorder->GetUrlFieldClickCounts($UrlField->Id(), NULL, NULL, 0, 30, NULL, implode(", ",$Reporter->ConfigSetting("PrivsToExcludeFromCounts"))); } function PrintRecordTable($CountData, $Caption) { ?>

##

Resource | Count
--- | ---
$Count) { $Resource = new Resource($Id); if ( $Resource->Status() == 1) { ?>
GetMapped("Title"); ?> |
| Period: " .date("M j Y", strtotime($CountData["StartDate"]))." - " .date("M j Y", strtotime($CountData["EndDate"])) .""; ?>

# Collection Usage Metrics