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) »
  • Participant Status ID
Pages: [1]

Author Topic: Participant Status ID  (Read 835 times)

Siv

  • I post occasionally
  • **
  • Posts: 94
  • Karma: -17
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7.44
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
Participant Status ID
May 05, 2011, 11:22:47 pm
How to get Participant Status ID by Participant Status name?

Thanks in advance........

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Participant Status ID
May 05, 2011, 11:45:18 pm
Simple way is to by using PseudoConstants.

Code: [Select]
require_once 'CRM/Event/PseudoConstant.php';
$requiredParticipantStatusId = array_search( 'targetParticipantStatusName', CRM_Event_PseudoConstant::participantStatus( ));

Rajan

Siv

  • I post occasionally
  • **
  • Posts: 94
  • Karma: -17
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7.44
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
Re: Participant Status ID
May 06, 2011, 12:25:14 am
Thanks..............

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Participant Status ID

This forum was archived on 2017-11-26.