CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution Pages API?
Pages: [1]

Author Topic: Contribution Pages API?  (Read 1152 times)

davo

  • Guest
Contribution Pages API?
February 14, 2008, 12:57:32 pm
Is there an API for accessing contribution pages? I've found the API for accessing custom groups, membership types, etc. But I can't find one for looking up what contribution pages are defined. I've found the Contribution.php module. But this seems only to list actual contributions. I'd like to be able to print a list of all the contribution pages I've defined (as well as there attributes, title, settings, membership types, etc.) Is this possible?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution Pages API?
February 14, 2008, 02:51:23 pm

There is no api to access contribution page data. You can use the BAO functions to get most / all of the data you need or you can query the database directly.

Check: CRM/Contribute/Page/ContributionPage.php for an example on how to do so

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution Pages API?

This forum was archived on 2017-11-26.