Skip to content

OcfaSet::getStatistics

James Cobban edited this page Dec 17, 2019 · 1 revision

$ocfaSet->getStatistics()

Up: class OcfaSet

This method gets the statistics for a specific set of OCFA transcriptions grouped by county. It returns an array with one row for each county in the set, which is an associative array containing the following fields:

field name contents
county county name.
count number of transcribed records

Examples:

$ocfas		= new OcfaSet(array('offset'	=> 0));
$result		= $ocfas->getStatistics();

To save reading the entire OCFA table these statistics are kept in a table `OcfaStats`.

Next: $set->getCountyStatistics()

Clone this wiki locally