TopLevel CountriesEdit.php - jcobban/Genealogy GitHub Wiki

Up: Top Level Implementation

Source Code

This script displays a portion of the table of Countries. This provides a path to the genealogical information maintained about all Countries. You generally get to this page from the top level page genealogy.php.

When invoked by method='get' it supports the following parameter:

parameter description
'pattern' this option provides a means to limit the response to countries whose name matches the pattern. Technically the value is a regular expression as implemented by MySQL. In particular if this is a string that does not contain special characters then it matches anywhere in the country name.
'limit' this specifies the maximum number of entries that are displayed. The default is 20.
'offset' this specifies the starting offset within the set of matching countries.
'lang' the language selection as an IETF BCP 47 code

Each row of the display contains information from an instance of class Country. For example:

Example of Countries Display with Pattern

This is a version of the page displayed to casual visitors. It permits viewing, but not modifying, the information about the country. There are three buttons for each Country:

  1. Names displays a list of translations of the name of the Country into other supported languages. This is implemented by CountryNamesEdit.php.
  2. States displays a list of the top level administrative units below the country level. For example US states or Canadian provinces. This is implemented by DomainsEdit.php.
  3. The third button displays the main entry page for genealogical information about the Country. This is implemented by genCountry.php.

Next: getRecordCommon.php