<?php
-// $Id$
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* @package CiviCRM_APIv3
* @subpackage API_Participant
*
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* @version $Id: Participant.php 30486 2010-11-02 16:12:09Z shot $
*
*/
/**
* Files required for this package
*/
-require_once 'CRM/Event/BAO/ParticipantPayment.php';
/**
* Create a Event Participant Payment
function civicrm_api3_participant_payment_create($params) {
$ids = array();
- if (CRM_Utils_Array::value('id', $params)) {
+ if (!empty($params['id'])) {
$ids['id'] = $params['id'];
}
$participantPayment = CRM_Event_BAO_ParticipantPayment::create($params, $ids);
/**
* Adjust Metadata for Create action
- *
+ *
* The metadata is used for setting defaults, documentation & validation
* @param array $params array or parameters determined by getfields
*/
*
* This API is used for deleting a Participant Payment
*
- * @param Int $participantPaymentID Id of the Participant Payment to be deleted
+ * @param $params
+ *
+ * @internal param Int $participantPaymentID Id of the Participant Payment to be deleted
*
* @return array API result
* @example ParticipantPaymentDelete.php