PageRenderTime 127ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/vendor/swift/lib/classes/Swift/Mime/EmbeddedFile.php

http://zoop.googlecode.com/
PHP | 51 lines | 16 code | 6 blank | 29 comment | 0 complexity | 811c16b324e0f9f69dcd23d4ad54db32 MD5 | raw file
 1<?php
 2
 3/*
 4 * This file is part of SwiftMailer.
 5 * (c) 2004-2009 Chris Corbyn
 6 *
 7 * For the full copyright and license information, please view the LICENSE
 8 * file that was distributed with this source code.
 9 */
10
11//@require 'Swift/Mime/Attachment.php';
12//@require 'Swift/Mime/ContentEncoder.php';
13//@require 'Swift/KeyCache.php';
14//@require
15
16/**
17 * An embedded file, in a multipart message.
18 * @package Swift
19 * @subpackage Mime
20 * @author Chris Corbyn
21 */
22class Swift_Mime_EmbeddedFile extends Swift_Mime_Attachment
23{
24  
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
31   */
32  public function __construct(Swift_Mime_HeaderSet $headers,
33    Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache,
34    $mimeTypes = array())
35  {
36    parent::__construct($headers, $encoder, $cache, $mimeTypes);
37    $this->setDisposition('inline');
38    $this->setId($this->getId());
39  }
40  
41  /**
42   * Get the nesting level of this EmbeddedFile.
43   * Returns {@link LEVEL_RELATED}.
44   * @return int
45   */
46  public function getNestingLevel()
47  {
48    return self::LEVEL_RELATED;
49  }
50  
51}