MethodistBaptismSet::getDistrictStatistics - jcobban/Genealogy GitHub Wiki

$baptismSet->getDistrictStatistics()

Up: class MethodistBaptismSet

This method has no parameters. The set of baptisms that it reports statistics for is specified by the constructor.

Examples:

$baptisms	= new MethodistBaptismSet(array('district' => "^Middlesex$"));
$result         = $baptisms->getDistrictStatistics();

or

$baptisms	= new MethodistBaptismSet(array('district' => "Middlesex"));
$result         = $baptisms->getDistrictStatistics();

Returns an array each row of which is an associative array containing the following fields for each "Area" in the set. Note that the "district" parameter is a regular expression pattern match. The caret and dollar sign are used to indicate an exact match to district name, so the first example provides information on the single District whose name is 'Middlesex' while the second example provides information on all districts whose name contains the string 'Middlesex':

key value
area area name, for example town or township
count number of transcribed baptisms in the area
linkcount number of baptisms linked to the family tree

Next: $baptismSet->getVolumeStatistics()