$qillName = $name;
if (in_array($name, array(
- 'participant_status_id',
- 'participant_source',
- 'participant_id',
- 'participant_contact_id',
- 'participant_fee_amount',
- 'participant_fee_level',
- 'participant_is_pay_later',
- 'participant_campaign_id',
- ))) {
+ 'participant_status_id',
+ 'participant_source',
+ 'participant_id',
+ 'participant_contact_id',
+ 'participant_fee_amount',
+ 'participant_fee_level',
+ 'participant_is_pay_later',
+ 'participant_campaign_id',
+ ))
+ ) {
$name = str_replace('participant_', '', $name);
if ($name == 'is_pay_later') {
$qillName = $name;
$dataType = !empty($fields[$qillName]['type']) ? CRM_Utils_Type::typeToString($fields[$qillName]['type']) : 'String';
$tableName = empty($tableName) ? 'civicrm_participant' : $tableName;
- if (is_array($value) && in_array(key($value), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) {
- $op = key($value);
+ if (is_array($value) && in_array(key($value), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) {
+ $op = key($value);
$value = $value[$op];
- }
+ }
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("$tableName.$name", $op, $value, $dataType);
list($op, $value) = CRM_Contact_BAO_Query::buildQillForFieldValue('CRM_Event_DAO_Participant', $name, $value, $op);
case 'event_title':
$qillName = $name;
if (in_array($name, array(
- 'event_id',
- 'event_title',
- 'event_is_public',
- )
- )) {
+ 'event_id',
+ 'event_title',
+ 'event_is_public',
+ )
+ )
+ ) {
$name = str_replace('event_', '', $name);
}
$dataType = !empty($fields[$qillName]['type']) ? CRM_Utils_Type::typeToString($fields[$qillName]['type']) : 'String';
*
* @return array|null
*/
- public static function defaultReturnProperties(
+ public static function defaultReturnProperties(
$mode,
$includeCustomFields = TRUE
) {
$form->addElement('checkbox', "event_include_repeating_events", NULL, ts('Include participants from all events in the %1 series', array(1 => '<em>%1</em>')));
$form->addSelect('participant_status_id',
- array('entity' => 'participant', 'label' => ts('Participant Status'), 'multiple' => 'multiple', 'option_url' => NULL, 'placeholder' => ts('- any -'))
+ array(
+ 'entity' => 'participant',
+ 'label' => ts('Participant Status'),
+ 'multiple' => 'multiple',
+ 'option_url' => NULL,
+ 'placeholder' => ts('- any -')
+ )
);
$form->addSelect('participant_role_id',
- array('entity' => 'participant', 'label' => ts('Participant Role'), 'multiple' => 'multiple', 'option_url' => NULL, 'placeholder' => ts('- any -'))
+ array(
+ 'entity' => 'participant',
+ 'label' => ts('Participant Role'),
+ 'multiple' => 'multiple',
+ 'option_url' => NULL,
+ 'placeholder' => ts('- any -')
+ )
);
$form->addYesNo('participant_test', ts('Participant is a Test?'), TRUE);