Example #1
0
 /**
  * @param AW_Helpdesk3_Model_Gateway_Mail_Attachment $attach
  *
  * @return $this
  */
 public function addMailAttach($attach)
 {
     $historyAttach = Mage::getModel('aw_hdu3/ticket_history_attachment');
     $historyAttach->setStoreId($this->getTicket()->getStoreId())->setFile($attach->getFileRealName(), file_get_contents($attach->getFilePath()));
     $this->addAttachment($historyAttach);
     return $this;
 }
Example #2
0
 /**
  * @param AW_Helpdesk3_Model_Gateway_Mail_Attachment $attachment
  *
  * @return $this
  */
 public function removeAttachment($attachment)
 {
     $attachment->delete();
     return $this;
 }