Campaign Entity
Method
Notes
getBannerImage (banner_image_url)
Returns link.
getDescriptionShort (description_short)
getDescription (description)
getCampaignAmountCurrent (campaign_amount_current)
Returns currency amount.
getCampaignGoal (campaign_goal)
getCurrency (currency)
Returns three-letter currency code (<http://www.xe.com/iso4217.php>_\
getStartDate (start_date)
getDuration (duration)
Donor Entity
Method
Notes
getDonorID (donor_id; auto_increment)
getUserID() (uid)
Drupal User: user id
Non-drupal user: blank
Non-drupal user: blank
getLastName() (last_name)
getFirstName() (first_name)
Primary Index
- field_donor_id
Secondary Indices
- uid
- field_last_name
Donation Entity
Method
Notes
getDonationID() (donation_id; auto increment)
getDonorID() (donor_id)
getUserID() (uid)
getAmount() (amount)
getCurrency() (currency)
Returns three-letter code.
Primary Index
- field_donation_id
Secondary Indices
- field_donor_id
- uid
Update Entity
Method
Notes
getUpdateID() (update_id; auto increment)
getDonorID() (donor_id)
getNote() (note)
CampaignController
Method
Notes
getDonorListWithCampaignID()
Return list of donors obtained in real time from GF (call GF API)
getDonationListWithCampaignID()
Return list of Donation entities obtained in real time from GF (call GF API). Convert JSON response from GivingFuel into Donation entities.
getDonationWithID()
Return donation amount, currency for a specific donation (call GF API)
getDonorWithID()
Return donor name, amount for a specific donor (call GF API)
getUpdateList()
Return a list of updates
getUpdateWithID()
Return an update given an ID.
getCampaignWithCampaignID()
Return the campaign name, description and goal amount from GF.
donationSuccessful()
Thank You page
Method
Notes
getDescription()
Description of campaign
getCampaignAmountCurrent()
(campaign_current)
getCampaignGoal()
(campaign_goal) Campaign goal.
Team Entity
Method
Notes
getCampaignId
(campaign_id)
getUserID() (uid)
Drupal User: user id
Non-drupal user: blank
Non-drupal user: blank