Temple::set - jcobban/Genealogy GitHub Wiki

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

Up: class Temple

This changes the value of the identified field and returns the former value. 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.

It overloads the base implementation as follows:

field name description
'idtr' The internal numeric key cannot be altered.
'code' the new value is validated.
'code2' the new value is validated.
'templestart' the new value must be empty or a 4 digit year.
'templeend' the new value must be empty or a 4 digit year.
'kind' The field is only altered if the new value is valid.
'latitude' The new value is ignored.
'longitude' The new value is ignored.
'zoom' The new value is ignored.
'preposition' The new value is ignored.
'notes' The new value is ignored.

Next: class ToDo