本文整理汇总了PHP中SugarBean::create_notification_email方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarBean::create_notification_email方法的具体用法?PHP SugarBean::create_notification_email怎么用?PHP SugarBean::create_notification_email使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarBean
的用法示例。
在下文中一共展示了SugarBean::create_notification_email方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: create_notification_email
/**
* Redefine method to attach ics file to notification email
*/
public function create_notification_email($notify_user)
{
$notify_mail = parent::create_notification_email($notify_user);
$path = SugarConfig::getInstance()->get('upload_dir', 'upload/') . $this->id;
require_once "modules/vCals/vCal.php";
$content = vCal::get_ical_event($this, $GLOBALS['current_user']);
if (file_put_contents($path, $content)) {
$notify_mail->AddAttachment($path, 'meeting.ics', 'base64', 'text/calendar');
}
return $notify_mail;
}
示例2: create_notification_email
/**
* Redefine method to attach ics file to notification email
*/
public function create_notification_email($notify_user)
{
// reset acceptance status for non organizer if date is changed
if ($notify_user->id != $GLOBALS['current_user']->id && $this->date_changed) {
$this->set_accept_status($notify_user, 'none');
}
$notify_mail = parent::create_notification_email($notify_user);
$path = SugarConfig::getInstance()->get('upload_dir', 'upload/') . $this->id;
require_once "modules/vCals/vCal.php";
$content = vCal::get_ical_event($this, $GLOBALS['current_user']);
if (file_put_contents($path, $content)) {
$notify_mail->AddAttachment($path, 'meeting.ics', 'base64', 'text/calendar');
}
return $notify_mail;
}