District::getStatistics - jcobban/Genealogy GitHub Wiki

$district->getStatistics()

Up: class District

This method is used to obtain statistical information about the SubDistricts in this District.

This returns an array each row of which is an associative array of statistics about an individual SubDistrict. Each row contains the following fields:

key contents
ir sequential row number
sd_distid district id
sd_id sub-district id
sd_div division id
sd_name sub-district name
sd_population population
namecount number of rows with name filled in
agecount number of rows with age filled in
idircount number of rows linked to family tree
$statistics              = $district->getStatistics();
foreach($statistics as $row)
{
    ...
}

Next: $district->getPrevDistrict()