本文整理汇总了PHP中SugarFolder::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarFolder::delete方法的具体用法?PHP SugarFolder::delete怎么用?PHP SugarFolder::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarFolder
的用法示例。
在下文中一共展示了SugarFolder::delete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SugarFolder
if (isset($_REQUEST['is_auto_import']) && $_REQUEST['is_auto_import'] == 'on') {
if (empty($focus->groupfolder_id)) {
$groupFolderId = $focus->createAutoImportSugarFolder();
$focus->groupfolder_id = $groupFolderId;
}
$stored_options['isAutoImport'] = true;
} else {
$focus->groupfolder_id = "";
//If the user is turning the auto-import feature off then remove all previous subscriptions.
if (!empty($focus->fetched_row['groupfolder_id'])) {
$GLOBALS['log']->debug("Clearining all subscriptions to folder id: {$focus->fetched_row['groupfolder_id']}");
$f = new SugarFolder();
$f->clearSubscriptionsForFolder($focus->fetched_row['groupfolder_id']);
//Now delete the old group folder.
$f->retrieve($focus->fetched_row['groupfolder_id']);
$f->delete();
}
$stored_options['isAutoImport'] = false;
}
if (!empty($focus->groupfolder_id)) {
if ($_REQUEST['leaveMessagesOnMailServer'] == "1") {
$stored_options['leaveMessagesOnMailServer'] = 1;
} else {
$stored_options['leaveMessagesOnMailServer'] = 0;
}
}
$focus->stored_options = base64_encode(serialize($stored_options));
$GLOBALS['log']->info('----->InboundEmail now saving self');
////////////////////////////////////////////////////////////////////////////////
//// SEND US TO SAVE DESTINATION
////////////////////////////////////////////////////////////////////////////////