$first_name
$first_name : string
first name
This class handles the process of finding a Contact.
$matches : \Blackpulp\MinistryPlatform\StoredProcedureResult
Results from the FindMatchingContact stored procedure
$mp : \Blackpulp\MinistryPlatform\MinistryPlatform
An instance of the core MinistryPlatform object
__construct(\Blackpulp\MinistryPlatform\MinistryPlatform $mp, string $first_name, string $last_name, array $optional_fields)
Construct Method
| \Blackpulp\MinistryPlatform\MinistryPlatform | $mp | |
| string | $first_name | |
| string | $last_name | |
| array | $optional_fields |
getMatches() : \Blackpulp\MinistryPlatform\StoredProcedureResult
Returns the FindContact matches
getUserAndAuthenticate() : \Blackpulp\MinistryPlatform\MinistryPlatform\Blackpulp\User
Authenticate a uniquely matched user.
As long as there is exactly one match and that match has a valid User Account, go ahead and process authentication for them.