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


PHP Utils_RecordBrowserCommon::delete_record方法代码示例

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


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

示例1: persistent_mass_delete

	/**
	 * Example usage:
	 * Utils_AttachmentCommon::persistent_mass_delete('CRM/Contact'); // deletes all entries located in CRM/Contact*** group
	 */
	public static function persistent_mass_delete($group,$group_starts_with=true,array $selective=null) {
        $ids = self::get_where($group,$group_starts_with);
        if(isset($selective) && !empty($selective))
            $ids = array_intersect($ids,$selective);
        foreach($ids as $id) {
            $mids = DB::GetCol('SELECT id FROM utils_attachment_file WHERE attach_id=%d',array($id));
            $file_base = self::Instance()->get_data_dir().$id.'/';
            foreach($mids as $mid) {
                @unlink($file_base.$mid);
                DB::Execute('DELETE FROM utils_attachment_download WHERE attach_file_id=%d',array($mid));
            }
            DB::Execute('DELETE FROM utils_attachment_file WHERE attach_id=%d',array($id));
            DB::Execute('DELETE FROM utils_attachment_local WHERE attachment=%d',array($id));
            Utils_RecordBrowserCommon::delete_record('utils_attachment',$id,true);
        }
	}
开发者ID:62BRAINS,项目名称:EPESI,代码行数:20,代码来源:AttachmentCommon_0.php

示例2: crm_event_delete

 public static function crm_event_delete($id)
 {
     if (!Utils_RecordBrowserCommon::get_access('task', 'delete', self::get_task($id))) {
         return false;
     }
     Utils_RecordBrowserCommon::delete_record('task', $id);
     return true;
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:8,代码来源:TasksCommon_0.php

示例3: mobile_rb_delete

 public static function mobile_rb_delete($tab, $id)
 {
     if (!isset($_GET['del_ok'])) {
         print '<a ' . (IPHONE ? 'class="button green" ' : '') . ' href="mobile.php?' . http_build_query($_GET) . '&del_ok=0">' . __('Cancel deletion') . '</a>';
         print '<a ' . (IPHONE ? 'class="button red" ' : '') . ' href="mobile.php?' . http_build_query($_GET) . '&del_ok=1">' . __('Delete') . '</a>';
     } else {
         if ($_GET['del_ok']) {
             Utils_RecordBrowserCommon::delete_record($tab, $id);
         }
         return 2;
         return false;
     }
     return true;
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:14,代码来源:RecordBrowserCommon_0.php

示例4: crm_event_delete

 public static function crm_event_delete($id)
 {
     $id = explode('_', $id);
     $id = reset($id);
     if (!Utils_RecordBrowserCommon::get_access('crm_meeting', 'delete', self::get_meeting($id))) {
         return false;
     }
     Utils_RecordBrowserCommon::delete_record('crm_meeting', $id);
     $r = Utils_RecordBrowserCommon::get_record('crm_meeting', $id);
     if ($r['recurrence_type'] > 0) {
         print 'Epesi.updateIndicatorText("Updating calendar");Epesi.request("");';
     }
     return true;
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:14,代码来源:MeetingCommon_0.php

示例5: delete_record

 public function delete_record($id, $pop_main = true) {
     Utils_RecordBrowserCommon::delete_record($this->tab, $id);
     if ($pop_main) {
         return $this->back();
     }
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:6,代码来源:RecordBrowser_0.php

示例6: delete_record

 public function delete_record($id, $permanent = false)
 {
     return Utils_RecordBrowserCommon::delete_record($this->tab, $id, $permanent);
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:4,代码来源:Recordset.php

示例7: array

        Utils_RecordBrowserCommon::new_record('rc_related', array('recordset' => $r['recordset']));
        unset($old[$i]);
        $old_checkpoint->set('old', $old);
    }
    $old_checkpoint->done();
}
Patch::set_message('Processing related');
$related_checkpoint = Patch::checkpoint('related');
if (!$related_checkpoint->is_done()) {
    while (1) {
        $related = $related_checkpoint->get('related', array());
        if (empty($related)) {
            $related = Utils_RecordBrowserCommon::get_records('rc_mails_assoc', array(), array(), array(), 10);
            if (empty($related)) {
                break;
            }
        }
        foreach ($related as $i => $r) {
            $related_checkpoint->require_time(5);
            $mail = Utils_RecordBrowserCommon::get_record('rc_mails', $r['mail']);
            $mail['related'][] = $r['recordset'] . '/' . $r['record_id'];
            Utils_RecordBrowserCommon::update_record('rc_mails', $r['mail'], array('related' => $mail['related']));
            Utils_RecordBrowserCommon::delete_record('rc_mails_assoc', $r['id']);
            unset($related[$i]);
            $related_checkpoint->set('related', $related);
        }
    }
    $related_checkpoint->done();
}
Utils_RecordBrowserCommon::uninstall_recordset('rc_mails_assoc');
Utils_RecordBrowserCommon::delete_addon('rc_mails', CRM_Roundcube::module_name(), 'assoc_addon');
开发者ID:cretzu89,项目名称:EPESI,代码行数:31,代码来源:20150119_related.php


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