Birth::set - jcobban/Genealogy GitHub Wiki
$birth->set($fieldname, $value)
Up: class Birth
This method changes the value of a specified field and returns the former value of the 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. 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 this method. This method creates a trace entry if the field name does not correspond to any field in the record and debugging is enabled. |
$value | The new value to assign to the field. |
This is overloaded as follows:
field name | action |
---|---|
'regdomain' | throw exception. Cannot be changed. |
'regyear' | throw exception. Cannot be changed. |
'regnum' | throw exception. Cannot be changed. |
'surnamesoundex' | throw exception. Cannot be changed. |
'changedby' | throw exception. Cannot be changed. |
'changedate' | throw exception. Cannot be changed. |
'calcbirth' | throw exception. Cannot be changed. |
'birthdate' | computes 'b_calcbirth' |
'msvol' | If supplied value is not numeric, set to 0. |
'idir' | If supplied value is not numeric, set to 0. |
'originalvolume' | If supplied value is not numeric, set to 0. |
'originalpage' | If supplied value is not numeric, set to 0. |
'originalitem' | If supplied value is not numeric, set to 0. |
Next: $birth->save($xml)