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


PHP EEM_Base::delete_permanently方法代码示例

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


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

示例1: delete_permanently

 /**
  * Permanently deletes the selected rows. When selecting rows for deletion, ignores
  * whether they've been soft-deleted or not. (ie, you don't have to soft-delete objects
  * before you can permanently delete them).
  * Because this will cause a real deletion, related models may block this deletion (ie, add an error
  * and abort the delete)
  * @param array $query_params like EEM_Base::get_all
  * @param boolean $allow_blocking if TRUE, matched objects will only be deleted if there is no related model info
  * that blocks it (ie, there' sno other data that depends on this data); if false, deletes regardless of other objects
  * which may depend on it. Its generally advisable to always leave this as TRUE, otherwise you could easily corrupt your DB
  * @return boolean success
  */
 public function delete_permanently($query_params = array(), $allow_blocking = true)
 {
     $query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
     return parent::delete_permanently($query_params, $allow_blocking);
 }
开发者ID:adrianjonmiller,项目名称:hearts-being-healed,代码行数:17,代码来源:EEM_Soft_Delete_Base.model.php


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