new Death - jcobban/Genealogy GitHub Wiki
new Death($parms)
Up: class Death
The constructor for an instance of Death 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('regdomain' => domainid, 'regyear' => year,'regnum' => integer)
specifies the unique key of the record in the table that is to be used to initialize the new instance. The value assigned to 'regdomain' may either be a string containing the identifier of the Domain, for example 'CAON', or an instance of class Domain.
The constructor adds error messages to $record->msg
if it is unable to complete due to bad parameters.
Next: $death->getName()