示例#1
0
 /**
  * Send mail notification to customer that his products return has been rejected
  *
  * @param \XLite\Module\XC\CanadaPost\Model\ProductsReturn $return Canada Post products return model
  *
  * @return void
  */
 public static function sendProductsReturnRejected(\XLite\Module\XC\CanadaPost\Model\ProductsReturn $return)
 {
     if ($return->getOrder() && $return->getOrder()->getProfile()) {
         static::register(array('productsReturn' => $return, 'notes' => nl2br($return->getAdminNotes(), false)));
         static::compose(static::TYPE_PRODUCTS_RETURN_REJECTED, static::getOrdersDepartmentMail(), $return->getOrder()->getProfile()->getLogin(), 'modules/XC/CanadaPost/return_rejected', array(), true, \XLite::CUSTOMER_INTERFACE, static::getMailer()->getLanguageCode(\XLite::CUSTOMER_INTERFACE, $return->getOrder()->getProfile()->getLanguage()));
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getAdminNotes()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAdminNotes', array());
     return parent::getAdminNotes();
 }