RecordSet::getWhere - jcobban/Genealogy GitHub Wiki

$recordSet->getWhere()

Up: class RecordSet

This method is called by the constructor to generate the WHERE clause and populate the parameter array for using PDO prepared statements. It updates $this->sqlParms and returns the WHERE clause as a string which the constructor stores in $this->where and uses to populate $this->information entries 'query' and 'where'. The default action of this method is suitable for most classes derived from Record. For columns which have integer values the method RecordSet::getWhereInt is called to construct the comparison expression. For columns which have string values the method RecordSet::getWherePattern is called. For other columns RecordSet::getWhereCommon is called. This is the only function typically overloaded in derived classes aside from the constructor.

Next: $recordset->getWhereCommon($fldname, $value)