new Township - jcobban/Genealogy GitHub Wiki
new Township($parms)
Up: class Township
The constructor for an instance of Township takes one parameter:
parameter | description |
---|---|
$parms | identifies the database record to be associated with this instance. This is an associative array. |
$parms may be:
- An associative array containing all of the fields in a record as obtained by a database SELECT.
array('domain' => string, 'county' => string, 'code' => string )
specifies the unique compound key of the record in the table that is to be used to initialize the new instance. The value of the 'domain' may also be an instance of class Domain.array('county' => instance of class County, 'code' => string )
specifies the unique compound key of the record in the table that is to be used to initialize the new instance.
The constructor adds error messages to $record->msg
if it is unable to complete due to bad parameters.