Avail feature updated
[ninja.git] / application / vendor / swiftmailer / classes / Swift / Mime / EmbeddedFile.php
blob983b78dacb2de0dc27fb757a5ddc7cd83333f171
1 <?php
3 /*
4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
11 //@require 'Swift/Mime/Attachment.php';
12 //@require 'Swift/Mime/ContentEncoder.php';
13 //@require 'Swift/KeyCache.php';
14 //@require
16 /**
17 * An embedded file, in a multipart message.
18 * @package Swift
19 * @subpackage Mime
20 * @author Chris Corbyn
22 class Swift_Mime_EmbeddedFile extends Swift_Mime_Attachment
25 /**
26 * Creates a new Attachment with $headers and $encoder.
27 * @param Swift_Mime_HeaderSet $headers
28 * @param Swift_Mime_ContentEncoder $encoder
29 * @param Swift_KeyCache $cache
30 * @param array $mimeTypes optional
32 public function __construct(Swift_Mime_HeaderSet $headers,
33 Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache,
34 $mimeTypes = array())
36 parent::__construct($headers, $encoder, $cache, $mimeTypes);
37 $this->setDisposition('inline');
38 $this->setId($this->getId());
41 /**
42 * Get the nesting level of this EmbeddedFile.
43 * Returns {@link LEVEL_RELATED}.
44 * @return int
46 public function getNestingLevel()
48 return self::LEVEL_RELATED;