new FieldComment - jcobban/Genealogy GitHub Wiki

new FieldComment($parms)

Up: class FieldComment

The constructor for an instance of FieldComment 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('fc_index' => $index) specifies the unique numeric key of the record in the table that is to be used to initialize the new instance.
  • array('census' => $census, 'distid' => $distid, 'sdid' => $sdid, 'div' => $div, 'page' => $page, 'line' => $line, 'fldname' => $fldname, 'userid' => $userid,) specifies the unique idenification of a possibly existing record in the table that is to be used to initialize the new instance. This is used to permit a proofreader to update an existing comment.

The constructor adds error messages to $record->msg if it is unable to complete due to bad parameters.

Next: class GraveStone