當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EmailUI::getDraftAttachments方法代碼示例

本文整理匯總了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;
}
開發者ID:nerdystudmuffin,項目名稱:dashlet-subpanels,代碼行數:17,代碼來源:Compose.php

示例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;
}
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:38,代碼來源:Compose.php

示例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;
}
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:16,代碼來源:Compose.php


注:本文中的EmailUI::getDraftAttachments方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。