本文整理匯總了PHP中EmailUI::getDraftAttachments方法的典型用法代碼示例。如果您正苦於以下問題:PHP EmailUI::getDraftAttachments方法的具體用法?PHP EmailUI::getDraftAttachments怎麽用?PHP EmailUI::getDraftAttachments使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類EmailUI
的用法示例。
在下文中一共展示了EmailUI::getDraftAttachments方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getQuotesRelatedData
function getQuotesRelatedData($bean)
{
$return = array();
$emailId = $_REQUEST['recordId'];
require_once "modules/Emails/EmailUI.php";
$email = new Email();
$email->retrieve($emailId);
$return['subject'] = $email->name;
$return['body'] = from_html($email->description_html);
$return['toAddress'] = $email->to_addrs;
$ret = array();
$ret['uid'] = $emailId;
$ret = EmailUI::getDraftAttachments($ret);
$return['attachments'] = $ret['attachments'];
$return['email_id'] = $emailId;
return $return;
}
示例2: getQuotesRelatedData
function getQuotesRelatedData($data)
{
$return = array();
$emailId = $data['recordId'];
require_once "modules/Emails/EmailUI.php";
$email = new Email();
$email->retrieve($emailId);
$return['subject'] = $email->name;
$return['body'] = from_html($email->description_html);
$return['toAddress'] = $email->to_addrs;
$ret = array();
$ret['uid'] = $emailId;
$ret = EmailUI::getDraftAttachments($ret);
$return['attachments'] = $ret['attachments'];
$return['email_id'] = $emailId;
$return['parent_type'] = $email->parent_type;
$return['parent_id'] = $email->parent_id;
$return['parent_name'] = '';
if (isset($return['parent_type']) && !empty($return['parent_type']) && isset($return['parent_id']) && !empty($return['parent_id'])) {
global $beanList;
global $beanFiles;
$class = $beanList[$return['parent_type']];
require_once $beanFiles[$class];
$bean = new $class();
$bean->retrieve($return['parent_id']);
if (isset($bean->full_name)) {
$parentName = $bean->full_name;
} elseif (isset($bean->name)) {
$parentName = $bean->name;
} else {
$parentName = '';
}
$parentName = from_html($parentName);
$return['parent_name'] = $parentName;
$return['toAddress'] = from_html($bean->full_name) . " <" . from_html($bean->emailAddress->getPrimaryAddress($bean)) . ">";
}
return $return;
}
示例3: getQuotesRelatedData
function getQuotesRelatedData($bean, $data)
{
$return = array();
$emailId = $data['recordId'];
require_once "modules/Emails/EmailUI.php";
$email = BeanFactory::getBean('Emails', $emailId);
$return['subject'] = $email->name;
$return['body'] = from_html($email->description_html);
$return['toAddress'] = $email->to_addrs;
$ret = array();
$ret['uid'] = $emailId;
$ret = EmailUI::getDraftAttachments($ret);
$return['attachments'] = $ret['attachments'];
$return['email_id'] = $emailId;
return $return;
}