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


PHP CRM_Core_DAO_Mapping::delete方法代码示例

本文整理汇总了PHP中CRM_Core_DAO_Mapping::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_DAO_Mapping::delete方法的具体用法?PHP CRM_Core_DAO_Mapping::delete怎么用?PHP CRM_Core_DAO_Mapping::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CRM_Core_DAO_Mapping的用法示例。


在下文中一共展示了CRM_Core_DAO_Mapping::delete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: del

 /**
  * Delete the mapping.
  *
  * @param int $id
  *   Mapping id.
  *
  * @return bool
  */
 public static function del($id)
 {
     // delete from mapping_field table
     $mappingField = new CRM_Core_DAO_MappingField();
     $mappingField->mapping_id = $id;
     $mappingField->delete();
     // delete from mapping table
     $mapping = new CRM_Core_DAO_Mapping();
     $mapping->id = $id;
     if ($mapping->find(TRUE)) {
         $result = $mapping->delete();
         return $result;
     }
     return FALSE;
 }
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:23,代码来源:Mapping.php

示例2: del

 /**
  * Delete the mapping.
  *
  * @param int $id
  *   Mapping id.
  *
  * @return bool
  */
 public static function del($id)
 {
     // delete from mapping_field table
     $mappingField = new CRM_Core_DAO_MappingField();
     $mappingField->mapping_id = $id;
     $mappingField->find();
     while ($mappingField->fetch()) {
         $mappingField->delete();
     }
     // delete from mapping table
     $mapping = new CRM_Core_DAO_Mapping();
     $mapping->id = $id;
     $mapping->delete();
     CRM_Core_Session::setStatus(ts('Selected mapping has been deleted successfully.'), ts('Deleted'), 'success');
     return TRUE;
 }
开发者ID:riyadennis,项目名称:my_civicrm,代码行数:24,代码来源:Mapping.php

示例3: mappingDelete

 /**
  * Delete a Mapping
  *
  * @param int $mappingId
  */
 public function mappingDelete($mappingId)
 {
     $mapping = new CRM_Core_DAO_Mapping();
     $mapping->id = $mappingId;
     $mapping->delete();
 }
开发者ID:nielosz,项目名称:civicrm-core,代码行数:11,代码来源:CiviUnitTestCase.php

示例4: del

 /**
  * Function to delete the mapping 
  *
  * @param int $id   mapping id
  *
  * @return boolean
  * @access public
  * @static
  *
  */
 static function del($id)
 {
     // delete from mapping_field table
     require_once "CRM/Core/DAO/MappingField.php";
     $mappingField = new CRM_Core_DAO_MappingField();
     $mappingField->mapping_id = $id;
     $mappingField->find();
     while ($mappingField->fetch()) {
         $mappingField->delete();
     }
     // delete from mapping table
     $mapping = new CRM_Core_DAO_Mapping();
     $mapping->id = $id;
     $mapping->delete();
     CRM_Core_Session::setStatus(ts('Selected Mapping has been Deleted Successfuly.'));
     return true;
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:27,代码来源:Mapping.php


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