CensusLine::get - jcobban/Genealogy GitHub Wiki
$line->get($fieldname)
Up: class CensusLine
This gets the current value of the identified field. It has one parameter:
parameter | description |
---|---|
$field | The field name is case insensitive and may be a synonym defined by the derived class to facilitate readability. Late static binding is used so this method takes advantage of field name definitions in the derived class. The field name may also be a temporary field defined by assigning a value to it in the set method. This method creates a trace entry if the field name does not correspond to any field in the record and debugging is enabled. |
It overloads the base implementation as follows:
field name | description |
---|---|
'district' | The district number is returned either as an integer or as a number with a non-zero fractional part |
'line' | The line number is padded to a two digit value. |
'numhands' | This returns a numeric value if it is greater than zero or if field 'employer' is not empty. |
'absent' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'blind' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'canread' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'cantread' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'cantwrite' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'canwrite' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'coloured' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'deaf' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'employee' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'employer' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'french' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'illiterate' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'indian' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'insane' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'lunatic' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'lunatics' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'member' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'negro' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'ownacct' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'ownmeans' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'spkenglish' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'spkfrench' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'unemployed' | 'Y' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'school' | value of 'gender if the internal value is 1, '' if the internal value is 0, or the value. |
'birth' | value of 'gender' if the internal value is 1, 'N' if the internal value is 0, or the value. |
'monthsfact' | If the value is 0 then an empty string, otherwise the value. |
'monthshome' | If the value is 0 then an empty string, otherwise the value. |
'monthsother' | If the value is 0 then an empty string, otherwise the value. |
'incomeemp' | If the value is 0 then an empty string, otherwise the value. |
'incomeoth' | If the value is 0 then an empty string, otherwise the value. |
'monthsschool' | If the value is 0 then an empty string, otherwise the value. |
'horses' | If the value is 0 then an empty string, otherwise the value. |
'milkcows' | If the value is 0 then an empty string, otherwise the value. |
'cattle' | If the value is 0 then an empty string, otherwise the value. |
'sheep' | If the value is 0 then an empty string, otherwise the value. |
'pigs' | If the value is 0 then an empty string, otherwise the value. |
'wksemp' | If the value is 0 then an empty string, otherwise the value. |
'wksoth' | If the value is 0 then an empty string, otherwise the value. |
'hpwemp' | If the value is 0 then an empty string, otherwise the value. |
'hpwoth' | If the value is 0 then an empty string, otherwise the value. |
'incomeemp' | If the value is 0 then an empty string, otherwise the value. |
'incomeoth' | If the value is 0 then an empty string, otherwise the value. |
'hourlyrate' | If the value is 0 then an empty string, otherwise the value. |
'lifeinsurance' | If the value is 0 then an empty string, otherwise the value. |
'accinsurance' | If the value is 0 then an empty string, otherwise the value. |
'costinsurance' | If the value is 0 then an empty string, otherwise the value. |
'schoolmons' | If the value is 0 then an empty string, otherwise the value. |
'ownertenant' | If the value is 0 then an empty string, otherwise the value. |
'houserent' | If the value is 0 then an empty string, otherwise the value. |
'houserooms' | If the value is 0 then an empty string, otherwise the value. |
'weeksunemp' | If the value is 0 then an empty string, otherwise the value. |
'weeksill' | If the value is 0 then an empty string, otherwise the value. |
'numfamilies' | If the value is 0 then an empty string, otherwise the value. |
'nofamilies' | If the value is 0 then an empty string, otherwise the value. |
If the requested column does not exist in the record the function returns null.
Next: $line->set()