本文整理汇总了PHP中Varien_Event_Observer::getEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Event_Observer::getEmail方法的具体用法?PHP Varien_Event_Observer::getEmail怎么用?PHP Varien_Event_Observer::getEmail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Varien_Event_Observer
的用法示例。
在下文中一共展示了Varien_Event_Observer::getEmail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: emailSendAfter
/**
* event observer called after emails are sent
*
* @param Varien_Event_Observer $observer
*/
public function emailSendAfter(Varien_Event_Observer $observer)
{
if (Mage::getStoreConfig('hackathon_mailguard/settings/logging') == self::LOGGING_ENABLED) {
$email = $observer->getEmail();
$email_to = $observer->getEmailTo();
if (!is_array($email_to)) {
$email_to = array($email_to);
}
if ($email->getDoNotSend()) {
Mage::log($email->getFilterName() . ", " . implode(", ", $email_to), null, 'mailguard.log');
}
}
}
示例2: recurringPaymentPlanReactivated
public function recurringPaymentPlanReactivated(Varien_Event_Observer $observer)
{
if ($this->_getHelper()->isEnabled()) {
$data = $this->_getRequestDataObject();
$data->setEmail($observer->getEmail());
$data->setCanceledPlan($observer->getSku());
$this->_getApi()->addLeadConversion(self::LEAD_RECURRINGPAYMENTPLANREACTIVATED, $data);
}
}