Address::get - jcobban/Genealogy GitHub Wiki

$address->get($fieldname)

Up: class Address

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
'idar' the unique identifier of the instance. This returns zero if the the instance does not correspond to a record in the database. That is if $address->isExisting() is false.
'latitude' returns the external floating point value in degrees.
'longitude' returns the external floating point value in degrees.
'zoom' returns 12
'preposition' 'at'

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.

Next: $address->set($fieldname, $value)