本文整理匯總了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);
}
}