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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Can civicrm_participant_search() accept conditions?
Pages: [1]

Author Topic: Can civicrm_participant_search() accept conditions?  (Read 1806 times)

rob123

  • Guest
Can civicrm_participant_search() accept conditions?
January 22, 2008, 02:19:14 am
I need to search participants using a condition with the event_end_date parameter:

Code: [Select]
$params['event_end_date'] > $todays_date
As far as I can tell, civicrm_participant_search() only accepts parameters for exact matching.

At the moment I'm returning all results and going through them using the date condition in a loop.

Is there a way of specifiying the condition in civicrm_participant_search() so I can save on resources?

Thanks

Rob


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can civicrm_participant_search() accept conditions?
January 22, 2008, 05:20:16 am
Can you check:

http://svn.civicrm.org/civicrm/trunk/test-new/SimpleTest/api-v2/ParticipantSearch.php

HTH

Kurund
Found this reply helpful? Support CiviCRM

rob123

  • Guest
Re: Can civicrm_participant_search() accept conditions?
January 25, 2008, 09:53:30 am
Thanks Kurund,

I haven't had a chance to study the file you've forwarded me to but since the svn file looks like it extends the current search function I presume the capability isn't present in 1.9.

Rob

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Can civicrm_participant_search() accept conditions?

This forum was archived on 2017-11-26.