class District
James Cobban edited this page Nov 29, 2019
·
6 revisions
Up: Object-Oriented Access to Database Records
This class is derived from Record to implement the logical interface to a record in the Districts table (Districts). Each entry in this table contains the description of a District in a Census, which in Canada, post-Confederation, is a federal electoral district.
This record presents the following fields:
name | description | synonyms |
---|---|---|
'd_census' | census identifier | 'census','censusid' |
'd_id' | numeric identifier | 'id','distid','district' |
'd_name' | district name | 'name' |
'd_nom' | nom de la district | 'nom' |
'd_province' | province code | 'province','prov','provcode' |
'd_population' | population of district | 'population' |
'd_transcribed' | number of lines transcribed | 'transcribed' |
'd_sdcount' | count of sub-districts | 'sdcount' |
'd_fcount' | count of image frames | 'fcount' |
The last two fields are filled in by the constructor from information in the SubDistricts table.
- new District($parms)
- $district->get($fieldname)
- $district->set($fieldname, $value)
- $district->save($xml)
- $district->delete($xml)
- $district->getPrev()
- $district->getNext()
- $district->getCensus()
- $district->getDomain($lang)
- $district->getSubDistricts()
- $district->getStatistics()
- $district->getPrevDistrict()
- $district->getNextDistrict()
- $district->synchPopulation()
Next: new District($parms)