本文整理汇总了PHP中_civicrm_api3_basic_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP _civicrm_api3_basic_delete函数的具体用法?PHP _civicrm_api3_basic_delete怎么用?PHP _civicrm_api3_basic_delete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_civicrm_api3_basic_delete函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: civicrm_api3_membership_delete
/**
* Deletes an existing contact Membership.
*
* @param array $params
* Array array holding id - Id of the contact membership to be deleted.
*
* @return array
* API result array.
*/
function civicrm_api3_membership_delete($params)
{
if (isset($params['preserve_contribution'])) {
if (CRM_Member_BAO_Membership::del($params['id'], $params['preserve_contribution'])) {
return civicrm_api3_create_success(TRUE, $params);
} else {
throw new API_Exception(ts('Could not delete membership'));
}
} else {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
}
示例2: civicrm_api3_volunteer_assignment_delete
/**
* Delete any existing assignment activity.
* Activity id is required
*
* @param array $params (reference) array containing id of the group
* to be deleted
*
* @return array (referance) returns flag true if successfull, error
* message otherwise
* {@getfields assignment_delete}
* @access public
*/
function civicrm_api3_volunteer_assignment_delete($params)
{
return _civicrm_api3_basic_delete('CRM_Activity_BAO_Activity', $params);
}
示例3: civicrm_api3_activity_contact_delete
/**
* Deletes an existing ActivityContact record
*
* @param array $params
*
* @return array Api Result
*
* @example ActivityContact.php
* @access public
*/
function civicrm_api3_activity_contact_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例4: civicrm_api3_location_type_delete
/**
* Deletes an existing Location Type
*
* @param array $params
*
* @example LocationTypeDelete.php Standard Delete Example
*
* @return boolean | error true if successfull, error otherwise
* {@getfields LocationType_delete}
* @access public
*/
function civicrm_api3_location_type_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例5: civicrm_api3_h_r_job_pension_delete
/**
* HRJobPension.delete API
*
* @param array $params
* @return array API result descriptor
* @throws API_Exception
*/
function civicrm_api3_h_r_job_pension_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例6: civicrm_api3_message_template_delete
/**
* Delete message template.
*
* @param array $params
*
* @return bool
* API result array
*/
function civicrm_api3_message_template_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例7: civicrm_api3_sepa_mandate_delete
/**
* Deletes an existing Mandate
*
* @param array $params
*
* @return boolean | error true if successfull, error otherwise
* {@getfields sepa_mandate_delete}
* @access public
*/
function civicrm_api3_sepa_mandate_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例8: civicrm_api3_sms_provider_delete
/**
* Delete an sms_provider.
*
* @param array $params
*
* @return array
* Array of deleted values.
*/
function civicrm_api3_sms_provider_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例9: civicrm_api3_campaign_delete
/**
* Delete an existing campaign.
*
* This method is used to delete any existing campaign.
* Id of the campaign to be deleted is required field in $params array
*
* @param array $params
* array containing id of the group to be deleted
*
* @return array
*/
function civicrm_api3_campaign_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例10: civicrm_api3_uf_join_delete
/**
* Delete a CiviCRM UF_Join
*
* @param array $params
* Array of name/value pairs.
*/
function civicrm_api3_uf_join_delete($params)
{
return _civicrm_api3_basic_delete('CRM_Core_BAO_UFJoin', $params);
}
示例11: civicrm_api3_volunteer_project_contact_delete
/**
* Delete an existing project contact
*
* This method is used to delete the relationship(s) between a contact and a
* project.
*
* @param array $params array containing id of the project
* to be deleted
*
* @return array returns flag true if successfull, error
* message otherwise
* {@getfields volunteer_project_delete}
* @access public
*/
function civicrm_api3_volunteer_project_contact_delete($params)
{
$projectId = CRM_Core_DAO::getFieldValue("CRM_Volunteer_DAO_ProjectContact", $params['id'], "project_id");
if (!$params['check_permissions'] || CRM_Volunteer_Permission::checkProjectPerms(CRM_Core_Action::UPDATE, $projectId)) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
} else {
return civicrm_api3_create_error(ts('You do not have permission to modify contacts for this project'));
}
}
示例12: civicrm_api3_recurring_entity_delete
/**
* Deletes an existing ReportInstance.
*
* @param array $params
*
* @return array
*/
function civicrm_api3_recurring_entity_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例13: civicrm_api3_mail_settings_delete
/**
* Delete an existing MailSettings.
*
* @param array $params
* [id]
*
* @return array
* API result array.
*/
function civicrm_api3_mail_settings_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
示例14: civicrm_api3_country_delete
/**
* Deletes an existing Country.
*
* @param array $params
*
* @return array
*/
function civicrm_api3_country_delete($params)
{
return _civicrm_api3_basic_delete(_civicrm_api3_get_DAO(__FUNCTION__), $params);
}
示例15: civicrm_api3_membership_delete
/**
* Deletes an existing contact membership
*
* This API is used for deleting a contact membership
*
* @param $params array array holding id - Id of the contact membership to be deleted
*
* @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);
}