Fact Functions
Fact Accessor Functions
function family_check_privacy($fid)
* Check if record $fid is private.
function family_get_subfid_by_code($fact_code, $fid)
function family_get_subfact_by_code($fact_code, $fid)
function family_get_subvalue_by_code($fact_code, $fid)
function family_get_value_by_fid($fid)
function family_get_fact_by_fid($fid)
function family_get_fact_by_xref($xref)
function family_getfacts($fid)
**Depreciated**
This function by nature does not allow sub facts with identical fact codes. With most of an individuals facts (birth, death) this works fine. This breaks down if you have other facts that allow multiple of the same subfacts. I would change it, but the individual include requires this returned data structure and I don't want to rewrite it right now. It is badly named anyway. Therefore it is depreciated in favor of a better named function returning a slightly revised data structure: family_get_subfacts.
function family_get_subfacts($fid)
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.
function family_get_parent_fact($fid)
function family_get_fact_root($fid)
Find the individual node owning a given fact (fid), i.e. root of a tree
Return an array of fact values
function family_get_cont($fid)
Retrieves and combines CONT & CONC fact texts
Fact/Relationship Modifiers
function family_insert_fact($fact_code, $value)
Insert new fact to Family database.
@param $fact_code
A 3-4 characters string containing a valid GEDCOM tag or a user defined tag.
A user defined tag must start with underscore.
@param $value
The value to be inserted for the new fact. Value format depend on the fact.
@return
fid (fact id) of the new fact.
