本文整理汇总了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'];