Skip to content

Citation::$recType

James Cobban edited this page Sep 14, 2023 · 3 revisions

Citation::$recType

Up: class Citation

This static array contains a translation from the value of the 'type' field to the name of the field in the instance of the class derived from of class Record containing the details of the fact or Event which is documented by this Citation. Each element in this array contains a string:

value Record Class
'IDCR' class Child
'IDER' class Event
'IDIR' class Person
'IDMR' class Family
'IDNX' class Name
'IDTD' class ToDo
    $recType           = Citation::$recType;
    if (array_key_exists($type, $recType))
        $keyname       = $recType[$type];
    else
        $keyname       = null;

This is seldom used because it is private to the class Citation and in most cases the application wants access to the actual record, which is obtained using $citation->getRecord() or to the name of the class, which is obtained using $citation->getRecordType().

Next: class CitationSet

Clone this wiki locally