Avail feature updated
[ninja.git] / application / vendor / swiftmailer / classes / Swift / Encoding.php
blob1849a8295b74559a8e196d1d082dc96c55a7deca
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/DependencyContainer.php';
13 /**
14 * Provides quick access to each encoding type.
16 * @package Swift
17 * @subpackage Encoder
18 * @author Chris Corbyn
20 class Swift_Encoding
23 /**
24 * Get the Encoder that provides 7-bit encoding.
26 * @return Swift_Mime_ContentEncoder
28 public static function get7BitEncoding()
30 return self::_lookup('mime.7bitcontentencoder');
33 /**
34 * Get the Encoder that provides 8-bit encoding.
36 * @return Swift_Mime_ContentEncoder
38 public static function get8BitEncoding()
40 return self::_lookup('mime.8bitcontentencoder');
43 /**
44 * Get the Encoder that provides Quoted-Printable (QP) encoding.
46 * @return Swift_Mime_ContentEncoder
48 public static function getQpEncoding()
50 return self::_lookup('mime.qpcontentencoder');
53 /**
54 * Get the Encoder that provides Base64 encoding.
56 * @return Swift_Mime_ContentEncoder
58 public static function getBase64Encoding()
60 return self::_lookup('mime.base64contentencoder');
63 // -- Private Static Methods
65 private static function _lookup($key)
67 return Swift_DependencyContainer::getInstance()->lookup($key);