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 Donation

Donation interface for the iGivefirst Donation API Allows the lookup and creation of Donations

Located at iGivefirst/Donation.php
Methods summary
public
# __construct( mixed $api )
public
# create( DonationInfo $donation )

Create a donation with the given information

Create a donation with the given information

Parameters

$donation
DonationInfo
$donation Object containing the donation information

Throws

iGivefirst_DonationInformationIncomplete
if the donation information was not complete enough
iGivefirst_DonationNotCreated
if the parameters were not valid

Returns

Array a hash containing the guid of the newly created donation
public
# get( mixed $guid )

Get a donation by guid

Get a donation by guid

Throws

iGivefirst_HttpError
if an error occured

Params

string $guid guid of the donation to look up

Returns

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