Overview

Namespaces

  • None
  • PHP

Classes

  • Account
  • AccountContactInfo
  • AccountInfo
  • Donation
  • DonationInfo
  • Donor
  • DonorInfo
  • iGivefirst

Exceptions

  • iGivefirst_AccountInformationIncomplete
  • iGivefirst_AccountNotCreated
  • iGivefirst_AccountNotUpdated
  • iGivefirst_AuthenticationError
  • iGivefirst_DonationInformationIncomplete
  • iGivefirst_DonationNotCreated
  • iGivefirst_DonorAlreadyExists
  • iGivefirst_DonorInformationIncomplete
  • iGivefirst_DonorNotCreated
  • iGivefirst_Error
  • iGivefirst_HttpError
  • iGivefirst_ObjectAlreadyExists
  • iGivefirst_ObjectNotFound
  • Overview
  • Namespace
  • Class
  • Tree

Class Donor

Donor interface for the iGivefirst Donation API Allows the lookup and creation of Donors

Located at iGivefirst/Donor.php
Methods summary
public
# __construct( mixed $api )
public
# create( DonorInfo $donor )

Create a donor with the given information

Create a donor with the given information

Parameters

$donor
DonorInfo
$donor Object containing the donor information

Throws

iGivefirst_DonorInformationIncomplete
if the donor information was not complete enough
iGivefirst_DonorNotCreated
if the parameters were not valid
iGivefirst_DonorAlreadyExists
if the donor already exists

Returns

Array a hash containing the guid of the newly created donor
public
# lookup( mixed $email )

Look up a donor by email address

Look up a donor by email address

Throws

iGivefirst_HttpError
if an error occured

Params

string $email email address of the donor

Returns

Array a hash containing all the donor information or null
public
# get( mixed $guid )

Get a donor by guid

Get a donor by guid

Throws

iGivefirst_HttpError
if an error occured

Params

string $guid guid of the donor to look up

Returns

Array a hash containing all the donor information or null
API documentation generated by ApiGen 2.8.0