SubDistrict::get - jcobban/Genealogy GitHub Wiki
$subdistrict->get($fieldname)
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. 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 |
---|---|
'd_census' | Returns the value from the associated instance of class District |
'd_id' | Returns the value from the associated instance of class District |
'd_name' | Returns the value from the associated instance of class District |
'd_nom' | Returns the value from the associated instance of class District |
'd_province' | Returns the value from the associated instance of class District |
'd_population' | Returns the value from the associated instance of class District |
'd_transcribed' | Returns the value from the associated instance of class District |
'sd_pages' | if the value in the record is 0, null , or an empty string this returns 1. |
'sd_page1' | if the value in the record is 0, null , or an empty string this returns 1. |
'sd_bypage' | if the value in the record is 0, null , or an empty string this returns 1. |
'sd_ldsreel' | if the value in the record is null , or an empty string this returns 0. |
'sd_imagebase' | if the value in the record is null , or an empty string this returns 0. |
'sd_relframe' | if the value in the record is null , or an empty string this returns 0. |
This method returns the current value of the field. If the field normally contains a string but its value is null
the method returns an empty string. This method returns null
if the field name does not correspond to any field in the record, and generates a warning message if debugging is enabled.