本文整理匯總了PHP中SugarEmailAddress::_cleanAddress方法的典型用法代碼示例。如果您正苦於以下問題:PHP SugarEmailAddress::_cleanAddress方法的具體用法?PHP SugarEmailAddress::_cleanAddress怎麽用?PHP SugarEmailAddress::_cleanAddress使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SugarEmailAddress
的用法示例。
在下文中一共展示了SugarEmailAddress::_cleanAddress方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: strtolower
$ie->email->status = 'read';
$ie->email->save();
$mod = strtolower($controller->module);
$ie->email->load_relationship($mod);
$ie->email->{$mod}->add($controller->bean->id);
if ($controller->bean->load_relationship('emails')) {
$controller->bean->emails->add($ie->email->id);
}
if ($controller->bean->module_dir == 'Cases') {
if ($controller->bean->load_relationship('contacts')) {
$emailAddressWithName = $ie->email->from_addr;
if (!empty($ie->email->reply_to_addr)) {
$emailAddressWithName = $ie->email->reply_to_addr;
}
// if
$emailAddress = SugarEmailAddress::_cleanAddress($emailAddressWithName);
$contactIds = $ie->email->emailAddress->getRelatedId($emailAddress, 'contacts');
if (!empty($contactIds)) {
$controller->bean->contacts->add($contactIds);
}
// if
}
// if
}
// if
echo $json->encode(array('id' => $ie->email->id));
}
break;
case "getImportForm":
$ie->retrieve($_REQUEST['ieId']);
// $ie->mailbox = $_REQUEST['mailbox'];