class Domain - jcobban/Genealogy GitHub Wiki

class Domain

Up: Object-Oriented Access to Database Records

Source Code

This class is derived from Record to implement the logical interface to a record in the Domain table (Domains). Each entry in this table contains the description of an administrative domain for vital statistics records.

Fields

This record presents the following fields:

name description synonyms
'domain' domain identifier string as specified by ISO 3166-2 with the hyphen omitted. 'code'
'countrycode' the first two characters in the domain identifier which is the ISO 3166-1 code. 'cc'
'state' the remaining characters after the country code, excluding the hyphen separator, which should be a unique code within the country code identifying a component state of a federal nation. 'statecode', 'prov', 'province'
'language' language code as defined by BCP 47 'lang'
'name' name of the Domain in the specified language
'resourcesurl' resources URL
'partof' If this is a first level domain under the country then this is null. Otherwise it contains the ISO 3166-2 domain code of the higher level domain that it is part of. For example 'GB-BKM' is part of 'GB-ENG'.
'category' The English term for the type of Domain, for example "province", "state", or "territory". A special value is 'Synonym' which indicates that this is not a real domain record, but rather that the 'name' field contains the actual code (excluding the country code and hyphen) of the record.

Table of Contents

Next: new Domain($parms)