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 Account

Account interface for the iGivefirst Donation API Allows creating and updating of account objects on a Donor

Located at iGivefirst/Account.php
Methods summary
public
# __construct( mixed $api )
public
# create( AccountInfo $account )

Create an account with the given information

Create an account with the given information

Throws

iGivefirst_AccountInformationIncomplete
if the account information was not complete enough
iGivefirst_AccountNotCreated
if the parameters were not valid

Params

AccountInfo $account Object containing the account information

Returns

Array a hash containing the guid of the newly created account
public
# update( mixed $accountid, AccountInfo $account )

Update an existing account with the given information. You must provide all account information.

Update an existing account with the given information. You must provide all account information.

Throws

iGivefirst_AccountInformationIncomplete
if the account information was not complete enough
iGivefirst_AccountNotUpdated
if the parameters were not valid

Params

string $accountid guid of the account to update
AccountInfo $account Object containing the account information

Returns

void
public
# disable( mixed $accountid )

Disable an eixsting account

Disable an eixsting account

Throws

iGivefirst_AccountNotUpdated
if the parameters were not valid

Params

string $accountid guid of the account to disable
API documentation generated by ApiGen 2.8.0