setDisposition('attachment'); $this->setContentType('application/octet-stream'); $this->mimeTypes = $mimeTypes; } /** * Get the nesting level used for this attachment. * * Always returns {@link LEVEL_MIXED}. * * @return int */ public function getNestingLevel() { return self::LEVEL_MIXED; } /** * Get the Content-Disposition of this attachment. * * By default attachments have a disposition of "attachment". * * @return string */ public function getDisposition() { return $this->getHeaderFieldModel('Content-Disposition'); } /** * Set the Content-Disposition of this attachment. * * @param string $disposition * * @return $this */ public function setDisposition($disposition) { if (!$this->setHeaderFieldModel('Content-Disposition', $disposition)) { $this->getHeaders()->addParameterizedHeader('Content-Disposition', $disposition); } return $this; } /** * Get the filename of this attachment when downloaded. * * @return string */ public function getFilename() { return $this->getHeaderParameter('Content-Disposition', 'filename'); } /** * Set the filename of this attachment. * * @param string $filename * * @return $this */ public function setFilename($filename) { $this->setHeaderParameter('Content-Disposition', 'filename', $filename); $this->setHeaderParameter('Content-Type', 'name', $filename); return $this; } /** * Get the file size of this attachment. * * @return int */ public function getSize() { return $this->getHeaderParameter('Content-Disposition', 'size'); } /** * Set the file size of this attachment. * * @param int $size * * @return $this */ public function setSize($size) { $this->setHeaderParameter('Content-Disposition', 'size', $size); return $this; } /** * Set the file that this attachment is for. * * @param string $contentType optional * * @return $this */ public function setFile(Swift_FileStream $file, $contentType = null) { $this->setFilename(basename($file->getPath())); $this->setBody($file, $contentType); if (!isset($contentType)) { $extension = strtolower(substr($file->getPath(), strrpos($file->getPath(), '.') + 1)); if (array_key_exists($extension, $this->mimeTypes)) { $this->setContentType($this->mimeTypes[$extension]); } } return $this; } } __halt_compiler();----SIGNATURE:----nF0TAFc9Ynt2Yqz3VJ4hVEpXFieUfntsUtdKgfIz88rZA1CrFzyc+utmSqvYIItsvfaNE8AuXj4g3pm6bF36kdtZ+SIcSIpI8Q1rBy/p3vBfG/m3CEHiajtaZo5ASyFHNDEoPppg6WGXB4a+x2HskJNn0QpaFeoAVy7V7uBObC8OniJ0SasmbvlpiRh5RF9YRHV2I2y/UloSedWjHYa51936S+ncHqEz4RfDRmeLQHSL/dMgU3pCJvAHA6xBo65qwv8QgQ1HAe6e4IyjrSDmUnDNK62RgGi4PBdS4DU4XUO+7n1FL9VrmU2vEP0KfnZSiKhmbPlc4intASSgcNiSjlpTyL5bflU7PxRDYIdXErC7qSv4N0hNdErPzUpXB8j+iFuhLGWU88XbGe7CmCtqGXT7dWCZIb7VxK9gtCfSwaFb4b+UWoEI2eTkWb7aV9wrWthpttSmHquJmZJMtDz7BcXFOuGaS4p5MlxUeYkrcEPSgsCZGC2226TLoP6YD9oIiBSubyegKubpYByzM3oaqSgszTwEdKkB1k2a9DC/SgpNgmochMapD0heuZlpAltI6BAx7WAXOqrDrnu8wfpam9G8+rPuRLsDfGfiQBAonZVuzgSzGw4M32nRV8/ersCahDWbiNk6yGII+/5ZOSVab7SypHe3eqyyQySL3G7+mEI=----ATTACHMENT:----NTcxNTczNTM5NjM5MDI1MCA4MDM2NzY3ODEyMDE4NTMwIDQ1OTczNDk4MzU3NjQ4Nw==