Kronolith_Attendee::matchesEmail PHP Method

matchesEmail() public method

Returns whether an email address matches this attendee.
public matchesEmail ( string $email, boolean $caseSensitive ) : boolean
$email string An email address.
$caseSensitive boolean Whether to match case-sensitive.
return boolean True if the email address matches this attendee.
    public function matchesEmail($email, $caseSensitive)
    {
        $email = new Horde_Mail_Rfc822_Address($email);
        return $caseSensitive && $email->match($this->email) || !$caseSensitive && $email->matchInsensitive($this->email);
    }