Name::get - jcobban/Genealogy GitHub Wiki
$name->get($fieldname)
Up: class Name
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. 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 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 |
---|---|
'idnr' | Returns the 'idnr' value from the instance of class Surname for the 'surname' |
'soundslike' | Returns the 'soundslike' value from the instance of class Surname for the 'surname' |
'birthd' | Returns the 'birthd' from the birth event of the instance of class Person for the 'idir' |
'birthsd' | Returns the 'birthsd' from the birth event of the instance of class Person for the 'idir' |
'deathd' | Returns the 'deathd' from the birth event of the instance of class Person for the 'idir' |
'deathsd' | Returns the 'deathsd' from the birth event of the instance of class Person for the 'idir' |
If the requested column does not exist in the record the function returns null.
Next: $name->set()