SubDistrict::set - jcobban/Genealogy GitHub Wiki

$subdistrict->set($fieldname, $value)

Up: class SubDistrict

This sets the current value of the identified field. It has two parameters:

parameter description
$field The field name is case insensitive and may be a synonym defined by the derived class to facilitate readability. If this does not correspond to a field in the table record a temporary field is defined.

It overloads the base implementation as follows:

field name description
'sd_census' the combination of these identifiers is checked for uniqueness
'sd_distid' the combination of these identifiers is checked for uniqueness
'sd_id' the combination of these identifiers is checked for uniqueness
'sd_div' the combination of these identifiers is checked for uniqueness
'sd_sched' the combination of these identifiers is checked for uniqueness

This method returns the former 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.

Next: $subdistrict->getCensus()