[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ -> EmbeddedFile.php (source)

   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  /**
  12   * An embedded file, in a multipart message.
  13   *
  14   * @author Chris Corbyn
  15   */
  16  class Swift_Mime_EmbeddedFile extends Swift_Mime_Attachment
  17  {
  18      /**
  19       * Creates a new Attachment with $headers and $encoder.
  20       *
  21       * @param array $mimeTypes optional
  22       */
  23      public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_IdGenerator $idGenerator, $mimeTypes = [])
  24      {
  25          parent::__construct($headers, $encoder, $cache, $idGenerator, $mimeTypes);
  26          $this->setDisposition('inline');
  27          $this->setId($this->getId());
  28      }
  29  
  30      /**
  31       * Get the nesting level of this EmbeddedFile.
  32       *
  33       * Returns {@see LEVEL_RELATED}.
  34       *
  35       * @return int
  36       */
  37      public function getNestingLevel()
  38      {
  39          return self::LEVEL_RELATED;
  40      }
  41  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1