Citation::getPerson - jcobban/Genealogy GitHub Wiki

Citation::getPerson

Up: class Citation

This method gets the instance of class Person that is associated with the fact or event documented by this Citation. If the fact or event is described by an instance of Person, then this method returns the same instance as $citation->getRecord(). If the fact is in an instance of class Name then this method returns the Person whose Name it is. If the fact is in an instance of class Child, which documents the relationship between a child and its parents, then this method returns the Person record for the child. If the fact is in an instance of class Family then this method returns the Person record for the male partner in the Family if there is one, otherwise for the female partner. If the fact is in an instance of class ToDo then this method returns the Person for whom the indicated research work is to be performed.

    $person          = $citation->getPerson();

Next: $citation->getSource