|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* 00004 * This file is part of SwiftMailer. 00005 * (c) 2004-2009 Chris Corbyn 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00011 //@require 'Swift/Mime/Attachment.php'; 00012 //@require 'Swift/Mime/ContentEncoder.php'; 00013 //@require 'Swift/KeyCache.php'; 00014 //@require 00015 00016 /** 00017 * An embedded file, in a multipart message. 00018 * @package Swift 00019 * @subpackage Mime 00020 * @author Chris Corbyn 00021 */ 00022 class Swift_Mime_EmbeddedFile extends Swift_Mime_Attachment 00023 { 00024 00025 /** 00026 * Creates a new Attachment with $headers and $encoder. 00027 * @param Swift_Mime_HeaderSet $headers 00028 * @param Swift_Mime_ContentEncoder $encoder 00029 * @param Swift_KeyCache $cache 00030 * @param array $mimeTypes optional 00031 */ 00032 public function __construct(Swift_Mime_HeaderSet $headers, 00033 Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, 00034 $mimeTypes = array()) 00035 { 00036 parent::__construct($headers, $encoder, $cache, $mimeTypes); 00037 $this->setDisposition('inline'); 00038 $this->setId($this->getId()); 00039 } 00040 00041 /** 00042 * Get the nesting level of this EmbeddedFile. 00043 * Returns {@link LEVEL_RELATED}. 00044 * @return int 00045 */ 00046 public function getNestingLevel() 00047 { 00048 return self::LEVEL_RELATED; 00049 } 00050 00051 }
1.8.0