当前位置: 首页>>代码示例>>PHP>>正文


PHP _civicrm_api3_basic_delete函数代码示例

本文整理汇总了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);
    }
}
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:21,代码来源:Membership.php

示例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);
}
开发者ID:adam-edison,项目名称:org.civicrm.volunteer,代码行数:16,代码来源:VolunteerAssignment.php

示例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);
}
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:14,代码来源:ActivityContact.php

示例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);
}
开发者ID:hguru,项目名称:224Civi,代码行数:15,代码来源:LocationType.php

示例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);
}
开发者ID:JoeMurray,项目名称:civihr,代码行数:11,代码来源:HRJobPension.php

示例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);
}
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:12,代码来源:MessageTemplate.php

示例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);
}
开发者ID:scardinius,项目名称:org.project60.sepa,代码行数:13,代码来源:SepaMandate.php

示例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);
}
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:12,代码来源:SmsProvider.php

示例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);
}
开发者ID:kidaa30,项目名称:yes,代码行数:15,代码来源:Campaign.php

示例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);
}
开发者ID:rameshrr99,项目名称:civicrm-core,代码行数:10,代码来源:UFJoin.php

示例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'));
    }
}
开发者ID:adam-edison,项目名称:org.civicrm.volunteer,代码行数:23,代码来源:VolunteerProjectContact.php

示例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);
}
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:11,代码来源:RecurringEntity.php

示例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);
}
开发者ID:nielosz,项目名称:civicrm-core,代码行数:13,代码来源:MailSettings.php

示例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);
}
开发者ID:nielosz,项目名称:civicrm-core,代码行数:11,代码来源:Country.php

示例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);
}
开发者ID:archcidburnziso,项目名称:civicrm-core,代码行数:15,代码来源:Membership.php


注:本文中的_civicrm_api3_basic_delete函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。