当前位置: 首页>>代码示例>>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;未经允许,请勿转载。