Notes Pulled from Code
family_get_subfacts
* The multidimensional arrays allow us to quickly retrieve the desired code by name without clobering
* duplicates at the cost of preserving order among sub facts.
* The only special case requiring order is CONT & CONC. (see family_get_cont)
* I left value as an associative array to allow attaching further subfacts to the array
Privacy
// Update privacy information
// Privacy is stored in fact _PRV (family module defined tag)
// 0 or none: Auto (public until estimation is run), 1: Always public (overide auto), 2: Always private (overide auto)
// 3: Public (set by estimation algorithm), 4: Private (set by estimation algorithm)
-- FACTS Table
-- fid: fact id (incremental index)
-- nid: node id. NULL if it is not a node
-- fact_code: a code of 3-4 letters that define the fact type. It uses the standard GEDCOM tag types
-- (e.g. INDI, BIRT, NAME, SEX, PLAC). We might define more options for our needs.
-- xref: XREF_ID record identifier from GEDCOM
-- fact_value: The value of the fact, depend on fact_code. e.g. a name for NAME fact or a date for a date fact.
-- gedcom_source: The GEDCOM source code that defines the fact, typically a single line.
--
-- RELATIONS Table
-- rid: relation id (incremental index)
-- fid1, fid2: fact id's of the two facts
-- relation_description: the relation of fid1 to fid2
-- gedcom_source: The GEDCOM source code that defines the relation, typically a single line.
-- Used only for a code that only defines a relation, such as CHIL,WIFE,HUSB.
-- Otherwise the source code is included in the fact record.
* Implementation of hook_insert().
* Insert All the facts and relationships
* Update Node and revision to replace data not in form
*
* RELATIONSHIPS: Base facts are related to INDI (fact, INDI)
* Subfacts are related to super fact (sub, super)
* NOTE:
* Should we generate the gedcom code at the same time,
* or leave that for exporting?
family_view_source
* Implements showing sources. (NOT source citations, they use the same code (SOUR), but
* sourcecs have xrefs, citations don't, and a slightly different structure.
* See family_view_citation)
