本文整理匯總了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
////////////////////////////////////////////////////////////////////////////////