class CensusLine - jcobban/Genealogy GitHub Wiki

class CensusLine

Up: Object-Oriented Access to Database Records

Source Code

This class is derived from Record to implement the logical interface to a record in a Census Transcriptions tables (Census1831, Census1851, Census1861, Census1871, Census1881, Census1891, Census1901, Census1906, Census1911, Census1916, Census1921). Each entry in these tables contains the transcription of a single line from the population schedule of a Census.

Fields

This exact set of fields depends upon the particular census the following fields are present in most censuses:

Field Contents
province two character province code
district district number within the Census.
subdistrict sub-district identifier with the district
division enumeration division number within subdistrict
page page number within enumeration division
line line within page
family number used to group members of a household together
surname surname of the individual
surnamesoundex SOUNDEX code of the surname
givennames given names of the individual
sex sex of the individual, usually 'M', 'F', or '?'
sexclass sex of the individual as a CSS class name 'male', 'female', or 'other'
age age of the individual, usually number of years or number of months if followed by 'm'
byear birth year, calculated if census only includes age
bplace birth place

Each derived class provides access to the static attribute Censusyyyy::$info which describes the specific characteristics of each census including the primary key set, the default sort order for class CensusLineSet, and the initial row definition of the census.

Table of Contents

Next: new CensusLine($parms, $line)