3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 * This api exposes CiviCRM MembershipLog records.
15 * @package CiviCRM_APIv3
19 * API to Create or update a MembershipLog.
21 * @param array $params
22 * Values of MembershipLog.
27 function civicrm_api3_membership_log_create($params) {
28 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params, 'MembershipLog');
32 * Adjust Metadata for Create action.
34 * The metadata is used for setting defaults, documentation & validation.
36 * @param array $params
37 * Array of parameters determined by getfields.
39 function _civicrm_api3_membership_log_create_spec(&$params) {
40 $params['membership_id']['api.required'] = TRUE;
44 * Get a Membership Log.
46 * This api is used for finding an existing membership log.
48 * @param array $params
49 * An associative array of name/value property values of civicrm_membership_log.
50 * {getfields MembershipLog_get}
55 function civicrm_api3_membership_log_get($params) {
56 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
60 * Deletes an existing membership log.
62 * This API is used for deleting a membership log
63 * Required parameters : id of a membership log
65 * @param array $params
70 function civicrm_api3_membership_log_delete($params) {
71 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);