Record::offsetExists - jcobban/Genealogy GitHub Wiki

$record->offsetExists($field)

Up: class Record

Part of the implementation of the interface ArrayAccess. This returns true if the field name is in use in either the record or the array of temporary fields. This method returns false if the field name does not correspond to any field in the record. 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 is called to implement array_key_exists($field, $record).

Next: $record->set()