本文整理汇总了PHP中Utils_RecordBrowserCommon::delete_addon方法的典型用法代码示例。如果您正苦于以下问题:PHP Utils_RecordBrowserCommon::delete_addon方法的具体用法?PHP Utils_RecordBrowserCommon::delete_addon怎么用?PHP Utils_RecordBrowserCommon::delete_addon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utils_RecordBrowserCommon
的用法示例。
在下文中一共展示了Utils_RecordBrowserCommon::delete_addon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uninstall
public function uninstall() {
Utils_RecordBrowserCommon::delete_addon('company', 'Tests/Bugtrack', 'company_bugtrack_addon');
Utils_AttachmentCommon::delete_addon('bugtrack');
Utils_RecordBrowserCommon::uninstall_recordset('bugtrack');
Utils_CommonDataCommon::remove('Bugtrack_Status');
return true;
}
示例2: uninstall
public function uninstall()
{
Base_ThemeCommon::uninstall_default_theme('CRM/Contacts/Activities');
Utils_RecordBrowserCommon::delete_addon('company', 'CRM/Contacts/Activities', 'company_activities');
Utils_RecordBrowserCommon::delete_addon('contact', 'CRM/Contacts/Actitivies', 'contact_activities');
return true;
}
示例3: uninstall
public function uninstall()
{
Base_ThemeCommon::uninstall_default_theme($this->get_type());
Utils_RecordBrowserCommon::delete_addon('contact', 'CRM/Contacts/NotesAggregate', 'contact_addon');
Utils_RecordBrowserCommon::delete_addon('company', 'CRM/Contacts/NotesAggregate', 'company_addon');
Utils_RecordBrowserCommon::delete_addon('premium_salesopportunity', 'CRM/Contacts/NotesAggregate', 'salesopportunity_addon');
return true;
}
示例4: uninstall
public function uninstall()
{
Utils_AttachmentCommon::delete_addon('crm_meeting');
Utils_RecordBrowserCommon::delete_addon('crm_meeting', CRM_MeetingInstall::module_name(), 'messanger_addon');
CRM_RoundcubeCommon::delete_addon('crm_meeting');
CRM_CalendarCommon::delete_event_handler('Meetings');
Base_ThemeCommon::uninstall_default_theme(CRM_MeetingInstall::module_name());
Utils_RecordBrowserCommon::uninstall_recordset('crm_meeting');
Utils_RecordBrowserCommon::unregister_processing_callback('crm_meeting', array('CRM_MeetingCommon', 'submit_meeting'));
return true;
}
示例5: uninstall
public function uninstall()
{
Base_ThemeCommon::uninstall_default_theme($this->get_type());
Utils_CommonDataCommon::remove('crm_assets_category');
Utils_CommonDataCommon::remove('crm_assets_monitor_type');
Utils_CommonDataCommon::remove('crm_assets_printer_type');
Utils_RecordBrowserCommon::delete_addon('company', 'CRM/Assets', 'assets_addon');
Utils_AttachmentCommon::delete_addon('crm_assets');
Utils_AttachmentCommon::persistent_mass_delete('crm_assets');
Utils_RecordBrowserCommon::uninstall_recordset('crm_assets');
Utils_RecordBrowserCommon::unregister_processing_callback('crm_assets', array('CRM_AssetsCommon', 'process_request'));
return true;
}
示例6: uninstall
public function uninstall()
{
Utils_RecordBrowserCommon::delete_addon('company', 'CRM_Contacts_ParentCompany', 'parent_company_addon');
Utils_RecordBrowserCommon::delete_record_field('company', 'Parent Company');
return true;
}
示例7: delete_addon
/**
* Delete addon from this RecordSet.
* @param string $module Callback module name
* @param string $method Callback method name
*/
public function delete_addon($module, $method)
{
Utils_RecordBrowserCommon::delete_addon($this->tab, $module, $method);
}
示例8: delete_addon
public static function delete_addon($table)
{
Utils_RecordBrowserCommon::delete_addon($table, CRM_Tasks::module_name(), 'addon');
}
示例9: unset
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', 'assoc_addon');
示例10: uninstall
public function uninstall()
{
Base_AclCommon::remove_clearance_callback(array('CRM_ContactsCommon', 'crm_clearance'));
Base_ThemeCommon::uninstall_default_theme(CRM_ContactsInstall::module_name());
Utils_RecordBrowserCommon::unregister_datatype('crm_company');
Utils_RecordBrowserCommon::unregister_datatype('crm_contact');
Utils_RecordBrowserCommon::unregister_datatype('crm_company_contact');
Utils_RecordBrowserCommon::unregister_datatype('email');
Utils_RecordBrowserCommon::delete_addon('company', CRM_ContactsInstall::module_name(), 'company_addon');
Utils_AttachmentCommon::delete_addon('company');
Utils_AttachmentCommon::delete_addon('contact');
Utils_RecordBrowserCommon::uninstall_recordset('company');
Utils_RecordBrowserCommon::uninstall_recordset('contact');
Utils_CommonDataCommon::remove('Contacts_Groups');
Utils_CommonDataCommon::remove('Companies_Groups');
Utils_RecordBrowserCommon::unregister_processing_callback('contact', array('CRM_ContactsCommon', 'submit_contact'));
return true;
}
示例11: uninstall
public function uninstall()
{
$this->drop_all_rc_tables();
Utils_RecordBrowserCommon::delete_addon('rc_mails', 'CRM/Roundcube', 'attachments_addon');
Utils_RecordBrowserCommon::delete_addon('contact', 'CRM/Roundcube', 'addon');
Utils_RecordBrowserCommon::delete_addon('company', 'CRM/Roundcube', 'addon');
DB::DropTable('rc_mails_attachments');
DB::DropTable('rc_mails_attachments_download');
Utils_RecordBrowserCommon::uninstall_recordset('rc_mails');
Utils_RecordBrowserCommon::uninstall_recordset('rc_accounts');
Utils_RecordBrowserCommon::uninstall_recordset('rc_multiple_emails');
Utils_CommonDataCommon::remove('CRM/Roundcube/Security');
Utils_RecordBrowserCommon::unregister_processing_callback('rc_accounts', array('CRM_RoundcubeCommon', 'submit_account'));
Utils_RecordBrowserCommon::unregister_processing_callback('rc_mails', array('CRM_RoundcubeCommon', 'submit_mail'));
Base_ThemeCommon::uninstall_default_theme($this->get_type());
Variable::delete('crm_roundcube_global_signature');
return true;
}
示例12:
if (Utils_RecordBrowserCommon::delete_addon('premium_ecommerce_pages_data', 'Premium/Warehouse/eCommerce', 'attachment_page_addon')) {
Utils_AttachmentCommon::new_addon('premium_ecommerce_pages_data');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_ecommerce_pages_data', 'Premium/Warehouse/eCommerce', 'attachment_page_desc_addon')) {
Utils_AttachmentCommon::new_addon('premium_ecommerce_pages_data');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_ecommerce_products', 'Premium/Warehouse/eCommerce', 'attachment_product_addon')) {
Utils_AttachmentCommon::new_addon('premium_ecommerce_products');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_ecommerce_descriptions', 'Premium/Warehouse/eCommerce', 'attachment_product_desc_addon')) {
Utils_AttachmentCommon::new_addon('premium_ecommerce_descriptions');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_warehouse_items', 'Premium/Warehouse/Items', 'attachment_addon')) {
Utils_AttachmentCommon::new_addon('premium_warehouse_items');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_warehouse_items_orders', 'Premium/Warehouse/Items/Orders', 'attachment_addon')) {
Utils_AttachmentCommon::new_addon('premium_warehouse_items_orders');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_warehouse', 'Premium/Warehouse', 'attachment_addon')) {
Utils_AttachmentCommon::new_addon('premium_warehouse');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_warehouse_distributor', 'Premium/Warehouse/Wholesale', 'attachment_addon')) {
Utils_AttachmentCommon::new_addon('premium_warehouse_distributor');
}
if (Utils_RecordBrowserCommon::delete_addon('bugtrack', 'Tests/Bugtrack', 'bugtrack_attachment_addon')) {
Utils_AttachmentCommon::new_addon('bugtrack');
}
if (Utils_RecordBrowserCommon::delete_addon('premium_schoolregister_lesson', 'Premium/SchoolRegister', 'lesson_notes_addon')) {
Utils_AttachmentCommon::new_addon('premium_schoolregister_lesson');
DB::Execute('UPDATE utils_attachment_link SET local=' . DB::Concat(DB::qstr('premium_schoolregister_lesson/'), 'local') . ' WHERE local NOT LIKE ' . DB::Concat(DB::qstr('%'), DB::qstr('/'), DB::qstr('%')));
}
示例13: delete_addon
public static function delete_addon($rs)
{
Utils_RecordBrowserCommon::delete_addon($rs, CRM_Roundcube::module_name(), 'addon');
}
示例14: delete_addon
public static function delete_addon($table)
{
Utils_RecordBrowserCommon::delete_addon($table, Utils_Attachment::module_name(), 'body');
}
示例15: unset
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');