/** * Create a voter with the given parameters. Assumes the voter does not exist, * and inserts it into the database. * * The row needs to be locked before this function is called, to avoid * duplicate key errors. */ function createVoter( $params ) { return SecurePoll_Voter::createVoter( $this, $params ); }