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