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:----O6Mpxw6aSpqxLd6zIVtEsK7D5havxs8BZ8pwKRAIGXlorsRLjIVtl3AIr1OOmIgZngk7/G1ApR2do55FALwu/zNe9UNStdT/0v/+9zgHWZKUZN4edYzqLeo0+uxqqDkUnvWp3kz3Cw4DHeGEkG/hjUTTrwpbfUN/I0/G3QkxnptjQlNw2+yoQnoyiiNNKKiqIoPswWCbzHvA/uhEMBrJdLJxEOdEy5dk1/73TaaDuBxywzMg/cvtS1tu/juVSo65KGp9grj19iC9X83i52nwvmuNYOCDdQUcApPje2pAlj1ogjH6NNMSjecQoB+OkOM2T7fMdG3x+t+n7+qtMrwkuSj69iJLMRjfk4LI0AgyAhDMlGGhx/XQsUSyD2i+kZkfhTM+T3kxGpSKGcuEldVtLrpGZfPmOmvZh3bz02BFxN0+gmFO40kU99alD+h4dZD31bVMoc9I1NIqNODjhgmrqXMOrtHcNAwU5JL0AqRPoI/TK5kDEC6xjZRB6HFBMyNL8mFnKMW6NDrHR145RDguRLn0iajWHjj759I5qFoJlyXkhSxbMu6WKqEEbpJ4DmwtJ7Mav6qkT2HBxC0P+sS1Ctyd3NB9f5s8SXCfkquypxQKw6l3tacJzSXg4leZVEu6u7f3tVsBoPJJYqqQPTsHjvjvEWIWazphJ0QlRk0x+E8=----ATTACHMENT:----Mjk3MDczMTIxMzk5MDEyOSAyMjc0OTcyODM0OTA0NDQ1IDM3Nzk5MDQ1MTA1NTA4Njg=