CitationSet::getWhere - jcobban/Genealogy GitHub Wiki
$recordSet->getWhere()
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'. It overloads the base implementation so that context specific primary record identifiers 'idir', 'idmr', 'ider', 'idnx', and 'idcr' can be used in place of 'idime' for clarity. Field names 'srcdetail', 'srcdettext', 'srcdetnote', 'filingref', 'content', and 'override' support regular expression pattern matches. The field 'enteredsd' supports being compared with a range between two values or an array or for equality to a single numeric value.
For example:
$citationSet = new CitationSet(array('idir' => $idir,
'enteredsd' => array(18710101,18810101)));
Next: $citationSet->rewind()