<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
*
* This API is used for deleting a contact membership
*
- * @param $params
+ * @param array $params
* Array array holding id - Id of the contact membership to be deleted.
*
- * @return array api result
+ * @return array
+ * api result
* {@getfields membership_delete}
- * @access public
*/
function civicrm_api3_membership_delete($params) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
* @param array $params
* An associative array of name/value property values of civicrm_membership.
*
- * @return array of newly created membership property values.
+ * @return array
+ * Array of newly created membership property values.
* {@getfields membership_create}
- * @access public
*/
function civicrm_api3_membership_create($params) {
// check params for membership id during update
* options affecting the desired results; has legacy support
* for just passing the contact_id itself as the argument
*
- * @return Array of all found membership property values.
- * @access public
- * @todo needs some love - basically only a get for a given contact right now
- * {@getfields membership_get}
+ * @return array
+ * Array of all found membership property values.
*/
function civicrm_api3_membership_get($params) {
$activeOnly = $membershipTypeId = $membershipType = NULL;
* @param int $membershipTypeId
* @param $activeOnly
*
- * @return array result for calling function
+ * @return array
+ * result for calling function
*/
function _civicrm_api3_membership_get_customv2behaviour(&$params, $membershipTypeId, $activeOnly) {
// get the membership for the given contact ID
* @param $membershipValues
* @param int $contactID
*
- * @return array result for calling function
+ * @return array
+ * result for calling function
*/
function _civicrm_api3_membership_relationsship_get_customv2behaviour(&$params, $membershipValues, $contactID) {
$relationships = array();