function getExistingPersonInfo($person, $idString)
{
    $existing = getHistoryString($person);
    if (strrpos($existing, $idString) === FALSE) {
        $s = mysql_query("SELECT cand.college, parties.name " . "FROM results_2008_candidates AS cand " . "LEFT JOIN results_2008_parties AS parties " . "ON parties.id = cand.idpartid " . "WHERE nume = '{$person->displayName}'");
        $r = mysql_fetch_array($s);
        return $existing . " ({$r['name']})";
    }
    return 'match ok';
}
Exemplo n.º 2
0
/**
 * Prints the matching decision between a name and a person. The method
 * attempts to print extra information about the person that we thing this
 * matches so we can make a good decision about whether this is the right
 * match.
 */
function printMatchDecision($name, $person)
{
    info(getResolveString($name, $person->name) . " " . $person->toString());
    info("        " . getHistoryString($person));
}