Record::$initRow - jcobban/Genealogy GitHub Wiki
static Record::$initRow
Up: class Record
This protected static attribute contains an associative array which is re-defined in each derived class to contain the default types and values for all of the fields in the associated database table record. In the base class Record it is an empty array. It is used by static method Record::getRealFieldName to validate supplied field names. In each derived class this is used to initialize new records in the constructor, and in various other methods such as get and set to validate supplied field names. It is used by RecordSet::getWhere to determine the default expression to compare supplied comparison values to field values. In particular if the default value of a field is an integer then comparisons are done by value comparison, typically equality. If the default value is a string then comparisons are done by pattern match. If the default value is null then comparison is always done by equality. See RecordSet::getWhereInt, RecordSet::getWherePattern, and RecordSet::getWhereCommon , for details.