Census::getName - jcobban/Genealogy GitHub Wiki

$census->getName()

Up: class Census

This method returns the descriptive name of the census from the current record. This exists to extend Record::getName. If there is no matching record in the database this returns "$yyyy Census of $domainName" where $yyyy and $domainName are defined by:

$domain        = $census->getDomain();
if ($domain)
{
    $domain       = $census->getDomain();
    $domainName   = $domain->getName();

}
else
{
    $country       = new Country(array('cc' => substr($censusid, 0, 2));
    $domainName   = $country->getName();
}
$yyyy          = substr($censusid, 2);

Next: $census->getCountry()