new Temple - jcobban/Genealogy GitHub Wiki
new Temple($parms)
Up: class Temple
The constructor for an instance of Temple 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('idtr' => integer)
specifies the unique numeric key of the record in the table that is to be used to initialize the new instance. Note that IDTR = 1 is reserved to point at a blank record. Use of this key is deprecated in favor of'code'
.array('code' => string)
specifies the unique 6 character code of the record in the table that is to be used to initialize the new instance. An empty string returns the reserved entry with IDTR = 1.array('code2' => string)
specifies the unique 2 character code of the record in the table that is to be used to initialize the new instance. Not allTemples
have a 2 character code.array('temple' => string)
specifies the name of the temple identifying 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.
Next: $temple->getIdtr()