TopLevel CountriesEdit.php - jcobban/Genealogy GitHub Wiki
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:
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:
Names
displays a list of translations of the name of the Country into other supported languages. This is implemented by CountryNamesEdit.php.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.- The third button displays the main entry page for genealogical information about the Country. This is implemented by genCountry.php.
Next: getRecordCommon.php