本文整理匯總了PHP中InboundEmail::deletePersonalEmailAccount方法的典型用法代碼示例。如果您正苦於以下問題:PHP InboundEmail::deletePersonalEmailAccount方法的具體用法?PHP InboundEmail::deletePersonalEmailAccount怎麽用?PHP InboundEmail::deletePersonalEmailAccount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類InboundEmail
的用法示例。
在下文中一共展示了InboundEmail::deletePersonalEmailAccount方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: InboundEmail
}
}
}
///////////////////////////////////////////////////////////////////////////
//// INBOUND EMAIL SAVES
if (isset($_REQUEST['server_url']) && !empty($_REQUEST['server_url'])) {
$ie = new InboundEmail();
if (false === $ie->savePersonalEmailAccount($return_id, $focus->user_name)) {
header("Location: index.php?action=Error&module=Users&error_string=&ie_error=true&id=" . $return_id);
die;
// die here, else the header redirect below takes over.
}
} elseif (isset($_REQUEST['ie_id']) && !empty($_REQUEST['ie_id']) && empty($_REQUEST['server_url'])) {
// user is deleting their I-E
$ie = new InboundEmail();
$ie->deletePersonalEmailAccount($_REQUEST['ie_id'], $focus->user_name);
}
//// END INBOUND EMAIL SAVES
///////////////////////////////////////////////////////////////////////////
if ($newUser && !$focus->is_group && !$focus->portal_only && isset($sugar_config['passwordsetting']['SystemGeneratedPasswordON']) && $sugar_config['passwordsetting']['SystemGeneratedPasswordON']) {
$new_pwd = '2';
require_once 'modules/Users/GeneratePassword.php';
}
}
//handle navigation from user wizard
if (isset($_REQUEST['whatnext'])) {
if ($_REQUEST['whatnext'] == 'import') {
header("Location:index.php?module=Import&action=step1&import_module=Administration");
return;
} elseif ($_REQUEST['whatnext'] == 'users') {
header("Location:index.php?module=Users&action=index");
示例2: deletePersonalEmailAccount
public function deletePersonalEmailAccount($id)
{
$inboundEmail = new InboundEmail();
//test with invalid username
$result = $inboundEmail->deletePersonalEmailAccount($id, 'test');
$this->assertEquals(false, $result);
//test with valid username
$result = $inboundEmail->deletePersonalEmailAccount($id, 'admin');
$this->assertEquals(true, $result);
}